comparison lisp/files.el @ 8374:4c6590fc242e

(file-truename): Temporarily get rid of the ange-ftp completion handler.
author Richard M. Stallman <rms@gnu.org>
date Fri, 29 Jul 1994 03:45:49 +0000
parents 87e1b76bbd6b
children c281b470d633
comparison
equal deleted inserted replaced
8373:60904bb9d0d8 8374:4c6590fc242e
349 (progn 349 (progn
350 (setq filename (expand-file-name filename)) 350 (setq filename (expand-file-name filename))
351 (if (string= filename "") 351 (if (string= filename "")
352 (setq filename "/")))) 352 (setq filename "/"))))
353 (or counter (setq counter (list 100))) 353 (or counter (setq counter (list 100)))
354 (or prev-dirs (setq prev-dirs (list nil))) 354 (let (done
355 (let (done) 355 ;; For speed, remove the ange-ftp completion handler from the list.
356 ;; We know it's not needed here.
357 ;; For even more speed, do this only on the outermost call.
358 (file-name-handler-alist
359 (if prev-dirs file-name-handler-alist
360 (let ((tem (copy-sequence file-name-handler-alist)))
361 (delq (rassq 'ange-ftp-completion-hook-function tem) tem)))))
362 (or prev-dirs (setq prev-dirs (list nil)))
356 ;; If this file directly leads to a link, process that iteratively 363 ;; If this file directly leads to a link, process that iteratively
357 ;; so that we don't use lots of stack. 364 ;; so that we don't use lots of stack.
358 (while (not done) 365 (while (not done)
359 (setcar counter (1- (car counter))) 366 (setcar counter (1- (car counter)))
360 (if (< (car counter) 0) 367 (if (< (car counter) 0)