]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix scoping error in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 9 Apr 2023 14:18:41 +0000 (16:18 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 9 Apr 2023 14:18:41 +0000 (16:18 +0200)
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-insert-file-contents):
Move result out of unwindform.

lisp/net/tramp-sshfs.el

index 6b788c00ba6cef9891ba04d2c23b1d42b2a6340c..a4f6246ec236ff63617f7bd01d7f6998ca022f8f 100644 (file)
@@ -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)