1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
emacs/test/src
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-module-resources Update copyright year to 2021 2021-01-01 01:13:56 -08:00
lread-resources Move some test data to follow our conventions 2020-10-23 16:29:46 +02:00
regex-resources ; Fix more typos 2020-10-03 12:53:51 +02:00
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
buffer-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callint-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callproc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
casefiddle-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
charset-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
chartab-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cmds-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
coding-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
data-tests.el Assert not local-variable-p after setq in let_default binding 2021-03-25 12:39:26 -04:00
decompress-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00
editfns-tests.el Improve wrong number of args error message in propertize 2021-02-22 11:56:12 +01:00
emacs-module-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
eval-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fileio-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
filelock-tests.el File unlock errors now issue warnings (Bug#46397) 2021-03-27 12:17:31 +03:00
floatfns-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fns-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
font-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
indent-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
inotify-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
json-tests.el Allow any JSON value at the top level (Bug#42994). 2021-02-13 14:37:19 +01:00
keyboard-tests.el * test/lisp/emacs-lisp/edebug-tests.el: Adjust to new edebug-eval-defun. 2021-02-19 12:08:00 -05:00
keymap-tests.el Add some new tests for keymap.c 2021-03-06 04:10:45 +01:00
lcms-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
lread-tests.el Add a new variable `inhibit-interaction' 2021-01-12 15:12:38 +01:00
marker-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
minibuf-tests.el * test/src/minibuf-tests.el (test-inhibit-interaction): Fix test. 2021-02-01 12:29:10 +01:00
print-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
process-tests.el Remove unnecessary requires of rx 2021-03-22 01:06:32 +01:00
regex-emacs-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
syntax-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
textprop-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
thread-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
timefns-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
undo-tests.el Fix a warning due to not preloading facemenu.el 2021-03-19 02:12:01 +01:00
xdisp-tests.el * test/src/xdisp-tests.el: Fix tests to work in batch mode 2021-01-18 19:03:01 +02:00
xfaces-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
xml-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00