changeset 7142:2b445c15563e

(ange-ftp-completion-hook-function): Use new inhibit vars.
author Richard M. Stallman <rms@gnu.org>
date Wed, 27 Apr 1994 23:43:46 +0000
parents 3d4e66b17fe5
children fa1ae50e55b3
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Apr 27 22:33:52 1994 +0000
+++ b/lisp/files.el	Wed Apr 27 23:43:46 1994 +0000
@@ -244,7 +244,11 @@
 (defun ange-ftp-completion-hook-function (op &rest args)
   (if (memq op '(file-name-completion file-name-all-completions))
       (apply 'ange-ftp-hook-function op args)
-    (let (file-name-handler-alist)
+    (let ((inhibit-file-name-handlers
+	   (cons 'ange-ftp-completion-hook-function
+		 (and (eq inhibit-file-name-operation op)
+		      inhibit-file-name-handlers)))
+	  (inhibit-file-name-operation op))
       (apply op args))))
 
 (defun pwd ()