emacs-pretest-bug
[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: Jason Rumney
Subject: Re: Exit hooks not run at logout on w32
Date: Thu, 29 Jun 2006 10:52:30 +0100
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Lennart Borgman wrote:
Thanks. I did a post_msg and it works as I want it now. My concern was that data was lost on reboots and logouts (that has happened to me). Now it works like for other w32 apps:

What other w32 apps are you talking about? The Windows programming guidelines are pretty clear that the only time to interrupt shutdown is when you are performing an operation that cannot be interrupted - CD burning is given as an example. In that case you are supposed to ask the user one Yes/No question about whether they want to abort the shutdown.

As I said at the start of the thread, it would be correct for Emacs to flush its autosave buffers to disk at this point, but not to start asking all the questions that save-buffers-kill-emacs does. What if Emacs is on a secondary monitor, and the Graphics driver shuts it off when it receives the shutdown message? Emacs will be delaying shutdown waiting for a response, while the user cannot see it.





reply via email to

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