From: Michael Albinus Date: Sun, 9 Apr 2023 14:18:41 +0000 (+0200) Subject: Fix scoping error in Tramp X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9e13048bb9b1b5fb156fb128b32030ae2f1003b;p=emacs.git Fix scoping error in Tramp * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-insert-file-contents): Move result out of unwindform. --- diff --git a/lisp/net/tramp-sshfs.el b/lisp/net/tramp-sshfs.el index 6b788c00ba6..a4f6246ec23 100644 --- a/lisp/net/tramp-sshfs.el +++ b/lisp/net/tramp-sshfs.el @@ -244,8 +244,8 @@ arguments to pass to the OPERATION." (setq result (insert-file-contents (tramp-fuse-local-file-name filename) visit beg end replace)) - (when visit (setq buffer-file-name filename)) - (cons filename (cdr result))))) + (when visit (setq buffer-file-name filename))) + (cons filename (cdr result)))) (defun tramp-sshfs-handle-process-file (program &optional infile destination display &rest args)