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 #23 received at 21833 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
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: Fri, 13 Nov 2015 00:04:13 +0100
[Message part 1 (text/plain, inline)]
I think the key words are "should not". For example, emacs-lock sets both
kill-emacs-hook and kill-emacs-query-functions. If the user goes to the
trouble of exit-locking a buffer, they won't be happy if M-x kill-emacs
bypasses the protection.

I think something similar applies to desktop. Setting up a desktop can be
time consuming. Best to err in the side of safety.

After all, kill-emacs doesn't even guarantee that it will kill Emacs.
Nothing forbids doing

(add-hook 'kill-emacs-hook (lambda () (error ""))
[Message part 2 (text/html, inline)]

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.