Lennart Borgman (gmail) wrote:
Thanks, I did not know about that. Does the shutdown handler take care
of the WM_QUERYMESSAGE behind the scenes in some way that Emacs can
ask the user to save data (which the action that message is supposed
to result in)?
No, applications are not supposed to ask the user anything during
shutdown if they can possibly avoid it by doing autosaves. See the
previous thread on the subject, and the dire warnings in Microsoft's new
documentation about the changes they made in Vista to avoid the all too
common situation where some mystery program prevents your machine
shutting down by either opening a dialog somewhere where you cannot see
it, or not opening one at all and telling the system not to shut down at
this time.