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

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 21833 <at> debbugs.gnu.org, Glenn Morris <rgm <at> gnu.org>, 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 11:14:57 +0100
[Message part 1 (text/plain, inline)]
On Fri, Nov 13, 2015 at 11:01 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:

> Sorry, I don't understand: what frames?  We are talking about
> non-interactive situations, no?

There's nothing non-interactive in the OP use case. And desktop.el already
contains

  (unless noninteractive
    (add-hook 'kill-emacs-hook 'desktop-kill))

Try

  emacs -Q --batch --eval "(progn (desktop-save-mode 1) (kill-emacs))"

so what I'm discussing is whether desktop.el should try to protect the
desktop when the user, or some code, runs `kill-emacs'.

> Why?  In "emacs -Q", the desktop you have is ephemeral

Obviously, I'm not talking about the -Q case, and I don't thing the OP is,
either. That's just a recipe to show that kill-emacs asks an interactive
question.
[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.