emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exit hooks not run at logout on w32


From: Mathias Dahl
Subject: Re: Exit hooks not run at logout on w32
Date: Tue, 04 Jul 2006 10:36:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Lennart Borgman <address@hidden> writes:

> Lennart Borgman wrote:

> I have already sent a patch for this, but I have got no response on
> that. There is possibly disagreement on what to do, but something
> should be done and I do believe that the correct fix should make Emacs
> follow the guidelines on w32. Jason said he had read them. I asked for
> a link to them, but I have not seen it yet. Instead I provided the
> above snippet.

I found a document that hopefully will end this discussion:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shutdown/base/shutting_down.asp

IMHO, a relevant part from that page:

    Shutdown Notifications

    Applications with a window and message queue receive shutdown
    notifications through the WM_QUERYENDSESSION message. These
    applications should perform any required cleanup while processing
    this message and return TRUE to indicate that they can be
    terminated. 

    Applications should not block system shutdown unless it is
    absolutely necessary to prevent corrupting the system or media
    that is being burned. 

This section is especially interesting:

    Applications that have unsaved data ***could save the data to a
    temporary location and restore it the next time the application
    starts***...

So, I conclude that displaying a dialog box ("Do you want to save bla
bla?") would violate the "rules" above, wouldn't they?

/Mathias





reply via email to

[Prev in Thread] Current Thread [Next in Thread]