diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 3ee1169139..3905aeba70 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2476,6 +2476,7 @@ tramp-file-name-for-operation It does not always return a Tramp file name, for example if the first argument of `expand-file-name' is absolute and not remote. Must be handled by the callers." + (let (signal-hook-function) (cond ;; FILE resp DIRECTORY. ((member operation @@ -2558,7 +2559,7 @@ tramp-file-name-for-operation ((member operation '(tramp-get-remote-gid tramp-get-remote-uid)) (tramp-make-tramp-file-name (nth 0 args))) ;; Unknown file primitive. - (t (error "Unknown file I/O primitive: %s" operation)))) + (t (error "Unknown file I/O primitive: %s" operation))))) (defun tramp-find-foreign-file-name-handler (filename &optional _operation) "Return foreign file name handler if exists."