]> git.eshelyaron.com Git - emacs.git/commit
Check daemon is initialized before suppressing its init errors
authorSpencer Baugh <sbaugh@janestreet.com>
Tue, 13 Feb 2024 17:20:39 +0000 (12:20 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:51:39 +0000 (18:51 +0100)
commit7923828362c20ecb3b112deb17306ed30d9f96a5
tree4bd04ea3e475ae2897f019c28c5bb24069594e31
parent8a4059ae94309b329cba5e8ac688cc91ce667d01
Check daemon is initialized before suppressing its init errors

Previously, the default error handler would correctly suppress
unhandled errors raised when IS_DAEMON and the initial frame
was current, since this is the normal state of operation for a
daemon-mode Emacs.  However, this also incorrectly suppressed
errors raised while a daemon-mode Emacs was starting up.

Now, errors raised while a daemon-mode Emacs is starting up will be
handled just like errors when a non-daemon Emacs is starting up.

This was previously the case before changes for bug#1310 and
bug#1836, which added the suppression of errors when IS_DAEMON.
DAEMON_RUNNING didn't exist at the time of those changes, but now
it does, so we can do better.

* src/keyboard.c (Fcommand_error_default_function): Check
!DAEMON_RUNNING in addition to IS_DAEMON.  (Bug#68799)
* src/lisp.h (DAEMON_RUNNING): Add a clarifying comment about
what this #define means.

(cherry picked from commit 526c262149839702b94253d5eff195054ac5cd9e)
src/keyboard.c
src/lisp.h