On Sun, Apr 13, 2008 at 4:04 PM, Lennart Borgman (gmail)
<address@hidden> wrote:
I would expect that the message sent to the Emacs when clicking on the
upper left [X] would terminate any loop, just like C-g terminates a loop in
a command.
keyboard-quit's function is to signal a `quit' condition, so it does it.
Clicking the upper left [X] sends a WM_CLOSE message to Emacs, which
tells it to do an orderly exit. That includes executing Lisp code, and
potentially doing a lot of things: writing files, asking the user,
killing subprocesses, etc. If some of these things take forever, how
it is Emacs to know that it is a bug and not expected behavior? For
example, if something in kill-emacs-query-functions asks me and I
don't answer, I wouldn't want Emacs to assume it can proceed...