[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master af526f88562 4/4: Fix bug#70900
From: |
Michael Albinus |
Subject: |
master af526f88562 4/4: Fix bug#70900 |
Date: |
Mon, 13 May 2024 03:24:21 -0400 (EDT) |
branch: master
commit af526f88562162ec053534eae510b9e7a85cb9eb
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Fix bug#70900
* lisp/net/tramp.el (tramp-handle-unlock-file): Be quiet if user
isn't interested in lock files. Bug#70900
---
lisp/net/tramp.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 5bb1ab66175..f024ebecfc5 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4660,8 +4660,11 @@ Do not set it manually, it is used buffer-local in
`tramp-get-lock-pid'.")
((process-live-p (tramp-get-process v)))
(lockname (tramp-compat-make-lock-file-name file)))
(delete-file lockname)
- ;; Trigger the unlock error.
- (signal 'file-error `("Cannot remove lock file for" ,file)))
+ ;; Trigger the unlock error. Be quiet if user isn't
+ ;; interested in lock files. See Bug#70900.
+ (unless (or (not create-lockfiles)
+ (bound-and-true-p remote-file-name-inhibit-locks))
+ (signal 'file-error `("Cannot remove lock file for" ,file))))
;; `userlock--handle-unlock-error' exists since Emacs 28.1. It
;; checks for `create-lockfiles' since Emacs 30.1, we don't need
;; this check here, then.