unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 21833@debbugs.gnu.org, Stelian Iancu <si@siancu.net>
Subject: bug#21833: 24.4; desktop-kill, which is interactive, is in kill-emacs-hook
Date: Fri, 13 Nov 2015 00:53:56 +0100	[thread overview]
Message-ID: <CAAeL0SSW=TMzKcM4MVmXRFzOefL-_T_QrdGpWow_LqdA+ch0-Q@mail.gmail.com> (raw)
In-Reply-To: <do1tbudbzr.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

On Fri, Nov 13, 2015 at 12:38 AM, Glenn Morris <rgm@gnu.org> wrote:

> 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.

Yes, I understand. My point being, kill-emacs does *not* guarantee that it
will kill Emacs (as my simple hook example shows). It could be designed to
offer that guarantee, but it doesn't currently. So the possibility of
having to forcibly kill Emacs is always there.

> 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 (that's what emacs-lock does, for example, if
it has one or more exit-locked buffers). Which is conceptually different of
asking the user and never getting an answer...? OK, it is, but Emacs will
"hang and have to be forcibly killed" anyway. Same difference.

I suppose what I'm trying to say is that "should not" is a recommendation,
nothing more and nothing less. But certainly I won't argue this point to
exhaustion.

[-- Attachment #2: Type: text/html, Size: 1640 bytes --]

  reply	other threads:[~2015-11-12 23:53 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 22:43 bug#21833: 24.4; desktop-kill, which is interactive, is in kill-emacs-hook Michael Arntzenius
2015-11-12 20:07 ` Stelian Iancu
2015-11-12 20:11   ` Glenn Morris
2015-11-12 20:24     ` Stelian Iancu
2015-11-12 20:50       ` Eli Zaretskii
2015-11-12 21:38         ` Glenn Morris
2015-11-12 23:04           ` Juanma Barranquero
2015-11-12 23:38             ` Glenn Morris
2015-11-12 23:53               ` Juanma Barranquero [this message]
2015-11-13  0:27                 ` Juanma Barranquero
2015-11-13  7:59                   ` Eli Zaretskii
2015-11-13  9:39                     ` Juanma Barranquero
2015-11-13 10:03                       ` Eli Zaretskii
2015-11-13 10:17                         ` Juanma Barranquero
2015-11-13 14:07                           ` Eli Zaretskii
2015-11-13 14:36                             ` Juanma Barranquero
2015-11-13  7:56                 ` Eli Zaretskii
2015-11-13  9:30                   ` Juanma Barranquero
2015-11-13 10:01                     ` Eli Zaretskii
2015-11-13 10:14                       ` Juanma Barranquero
2015-11-13 14:05                         ` Eli Zaretskii
2015-11-13 14:35                           ` Juanma Barranquero
2015-11-13 18:55                             ` Eli Zaretskii
2015-11-15 11:54                               ` Juanma Barranquero
2015-11-15 19:40                                 ` Eli Zaretskii
2015-11-13  8:36           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeL0SSW=TMzKcM4MVmXRFzOefL-_T_QrdGpWow_LqdA+ch0-Q@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=21833@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --cc=si@siancu.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).