diff options
| author | Richard M. Stallman | 1994-07-29 03:45:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-29 03:45:49 +0000 |
| commit | b505828b091f062e976ec88868729b89d9d7dceb (patch) | |
| tree | 86f3ed5e0aa61c3d02151eaf3e24124cc322701d | |
| parent | f3ec183ee86a60681df26744e21515dd413ce022 (diff) | |
| download | emacs-b505828b091f062e976ec88868729b89d9d7dceb.tar.gz emacs-b505828b091f062e976ec88868729b89d9d7dceb.zip | |
(file-truename): Temporarily get rid of the
ange-ftp completion handler.
| -rw-r--r-- | lisp/files.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 0eadeb94dd2..7350d73dfee 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -351,8 +351,15 @@ Do not specify them in other calls." | |||
| 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) |