]> git.eshelyaron.com Git - emacs.git/commit
(debug): Don't `kill-emacs` upon exit when in batch mode
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 Mar 2025 18:02:37 +0000 (13:02 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:19:52 +0000 (11:19 +0100)
commitee1f5d32a00be976d2185d37631edb2812c25a6b
tree35d2f50812cfdbf9cb571ba9888b14f2298db979
parentdb1ed30b123ae1f0c962ec565f93a6c29f5494ff
(debug): Don't `kill-emacs` upon exit when in batch mode

AFAICT this is a left over code from many years ago before
the `debug` special case was added to `condition-case` and
at a time where exiting from `debug` did not proceed to handle
remaining handlers.

In the usual case where we indeed want to kill Emacs,
`signal_or_quit` does it for us.

* lisp/emacs-lisp/debug.el (debug): Don't `kill-emacs` upon exit
when in batch mode (bug#76786)

(cherry picked from commit 82affcaeff8b7a0ed1f30adbf5905f934c4cebaf)
lisp/emacs-lisp/debug.el