tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tramp-run-real-handler question


From: Kai Großjohann
Subject: tramp-run-real-handler question
Date: Wed, 02 Jul 2003 21:40:53 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Why does tramp-run-real-handler include a conditional let-binding of
inhibit-file-name-handlers?  Why doesn't it *always* just prepend its
own list of handlers to inhibit-file-name-handlers?

Would things break with the following definition?

(defun tramp-run-real-handler (operation args)
  "Invoke normal file name handler for OPERATION.
First arg specifies the OPERATION, second arg is a list of arguments to
pass to the OPERATION."
  (let* ((inhibit-file-name-handlers
          `(tramp-file-name-handler
            tramp-completion-file-name-handler
            cygwin-mount-name-hook-function
            cygwin-mount-map-drive-hook-function
            .
            ,inhibit-file-name-handlers)) ;conditional removed
         (inhibit-file-name-operation operation))
    (apply operation args)))

-- 
~/.signature




reply via email to

[Prev in Thread] Current Thread [Next in Thread]