GNU bug report logs - #21833
24.4; desktop-kill, which is interactive, is in kill-emacs-hook

Previous Next

Package: emacs;

Reported by: Michael Arntzenius <daekharel <at> gmail.com>

Date: Wed, 4 Nov 2015 23:09:02 UTC

Severity: minor

Merged with 28943

Found in versions 24.4, 25.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 21833 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 21833 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Stelian Iancu <si <at> siancu.net>
Subject: Re: bug#21833: 24.4;
 desktop-kill, which is interactive, is in kill-emacs-hook
Date: Thu, 12 Nov 2015 18:38:48 -0500
The point is, kill-emacs-hook can run in situations where it is
impossible for Emacs to interact with the user.
Any yes-or-no-p questions will never be answered.
Emacs will hang and have to be forcibly killed.
Exactly as it says in the OP.

So don't put anything on kill-emacs-hook that needs an interactive
response from the user. Decide on a sensible non-interactive behaviour,
and for the interactive case use kill-emacs-query-functions.
The documentation seems clear to me.




This bug report was last modified 4 years and 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.