On Mon, Apr 14, 2008 at 3:38 AM, Juanma Barranquero <address@hidden> wrote:
> You wouldn't: when the WM_CLOSE message is put into the queue, the
> currently running Elisp code would additionally be interrupted
> "unconditionally" by setting the quit-flag.
Yes, that's what I think Lennart was suggesting.
Well, on second thought, no, not really. Lennart was suggesting that
Emacs would *always* be terminated. So after receiving WM_CLOSE, the
current elisp code would be interrupted, normal code associated with
exiting Emacs would be run (kill-emacs-hook, etc.), and that code
would *also* be terminated, in circumstances that Lennart has not yet
fully explained (presumably, with some sort of timer), if necessary.