1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/doc
Matt Armstrong c4ab173df3 File unlock errors now issue warnings (Bug#46397)
The primary idea is to allow `kill-buffer' and `kill-emacs' to
complete even if Emacs has trouble unlocking the buffer's file.

* lisp/userlock.el (userlock--handle-unlock-error): New function, call
`display-error'.
* src/filelock.c (unlock_file_body): New function, do what
'unlock_file' used to.
(unlock_file_handle_error): New function, call
`userlock--handle-unlock-error' with the captured error.
(unlock_file): Handle `file-error' conditions by calling the handler
defined above.
* test/src/filelock-tests.el (filelock-tests-kill-buffer-spoiled):
(filelock-tests-unlock-spoiled): Modify to test new behavior.
2021-03-27 12:17:31 +03:00
..
emacs * doc/emacs/maintaining.texi (Managing Projects): Fixes and copyedits. 2021-03-24 20:15:46 -07:00
lispintro Make tags tables from Texinfo sources 2021-03-11 16:42:57 +02:00
lispref File unlock errors now issue warnings (Bug#46397) 2021-03-27 12:17:31 +03:00
man Update copyright year to 2021 2021-01-01 01:13:56 -08:00
misc Convert many more links to use HTTPS 2021-03-24 10:20:18 +01:00