aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2023-08-04 06:19:57 +0200
committerMichael Albinus2023-08-04 06:19:57 +0200
commit12427976c8a8157fc2fe8ffa3a7fe157a8fe2e45 (patch)
tree5b283a494648772543a0cfce77852ef8b4328117
parente9672b147f2e1f4879752f882fb58c7dc7ce3e9b (diff)
downloademacs-12427976c8a8157fc2fe8ffa3a7fe157a8fe2e45.tar.gz
emacs-12427976c8a8157fc2fe8ffa3a7fe157a8fe2e45.zip
* lisp/net/tramp.el (tramp-skeleton-write-region): Fix scoping.
(Bug#65022)
-rw-r--r--lisp/net/tramp.el46
1 files changed, 23 insertions, 23 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 31b91b4e910..2fc54c5388b 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3527,29 +3527,29 @@ BODY is the backend specific code."
3527 3527
3528 ;; Set the ownership. 3528 ;; Set the ownership.
3529 (when need-chown 3529 (when need-chown
3530 (tramp-set-file-uid-gid filename uid gid))) 3530 (tramp-set-file-uid-gid filename uid gid))
3531 3531
3532 ;; Set extended attributes. We ignore possible errors, 3532 ;; Set extended attributes. We ignore possible errors,
3533 ;; because ACL strings could be incompatible. 3533 ;; because ACL strings could be incompatible.
3534 (when attributes 3534 (when attributes
3535 (ignore-errors 3535 (ignore-errors
3536 (set-file-extended-attributes filename attributes))) 3536 (set-file-extended-attributes filename attributes)))
3537 3537
3538 ;; Unlock file. 3538 ;; Unlock file.
3539 (when file-locked 3539 (when file-locked
3540 ;; `unlock-file' exists since Emacs 28.1. 3540 ;; `unlock-file' exists since Emacs 28.1.
3541 (tramp-compat-funcall 'unlock-file lockname)) 3541 (tramp-compat-funcall 'unlock-file lockname))
3542 3542
3543 ;; Sanity check. 3543 ;; Sanity check.
3544 (unless (equal curbuf (current-buffer)) 3544 (unless (equal curbuf (current-buffer))
3545 (tramp-error 3545 (tramp-error
3546 v 'file-error 3546 v 'file-error
3547 "Buffer has changed from `%s' to `%s'" curbuf (current-buffer))) 3547 "Buffer has changed from `%s' to `%s'" curbuf (current-buffer)))
3548 3548
3549 (when (and (null noninteractive) 3549 (when (and (null noninteractive)
3550 (or (eq ,visit t) (string-or-null-p ,visit))) 3550 (or (eq ,visit t) (string-or-null-p ,visit)))
3551 (tramp-message v 0 "Wrote %s" filename)) 3551 (tramp-message v 0 "Wrote %s" filename))
3552 (run-hooks 'tramp-handle-write-region-hook)))))) 3552 (run-hooks 'tramp-handle-write-region-hook)))))))
3553 3553
3554;;; Common file name handler functions for different backends: 3554;;; Common file name handler functions for different backends:
3555 3555