Subject: Re: bug#21833: 24.4; desktop-kill, which is interactive, is in kill-emacs-hook

From: Eli Zaretskii <[email-masked]>
Date: Fri, 13 Nov 2015 09:56:53 +0200

> From: Juanma Barranquero <[email-masked]>
> Date: Fri, 13 Nov 2015 00:53:56 +0100
> Cc: Eli Zaretskii <[email-masked]>, [email-masked], Stelian Iancu <[email-masked]>
> 
> > 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.
> 
> I'd agree, but in some cases, the "sensible non-interactive behaviour" is just
> to abort killing Emacs

Why not decide that the sensible non-interactive behavior is to behave
as if the answer is NO?  Can you think up a use cases where this would
be terribly wrong?

FWIW, IME, whenever I see this question (interactively, of course),
the correct answer is always NO.  So even if the above strategy errs,
it does so in a very small fraction of use cases, at least IME.