]> git.eshelyaron.com Git - emacs.git/commit
Allow shutting down Emacs even if there are errors in kill-emacs-hook
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Dec 2020 14:40:23 +0000 (15:40 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Dec 2020 14:40:23 +0000 (15:40 +0100)
commitb218c8b6b587d4f0629cbe81bf2dba95d07844d0
treef93a704f6482012ebd67571c9d3d0a03d880b655
parent9cef8fc8cdb5e6e18c9cf617eed3808d67ca340e
Allow shutting down Emacs even if there are errors in kill-emacs-hook

* lisp/subr.el (run-hook-query-error-with-timeout): New function
(bug#28542).

* src/emacs.c (Fkill_emacs): Use it to allow exiting Emacs even if
there are errors in kill-emacs-hook.
(syms_of_emacs): Define the symbol.
etc/NEWS
lisp/subr.el
src/emacs.c