mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix bug#70900
* lisp/net/tramp.el (tramp-handle-unlock-file): Be quiet if user isn't interested in lock files. Bug#70900
This commit is contained in:
parent
66a12698ab
commit
af526f8856
1 changed files with 5 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue