all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathias Dahl <brakjoller@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Exit hooks not run at logout on w32
Date: Tue, 04 Jul 2006 10:36:18 +0200	[thread overview]
Message-ID: <uodw5n4vx.fsf@gmail.com> (raw)
In-Reply-To: 44AA10EC.2080503@student.lu.se

Lennart Borgman <lennart.borgman.073@student.lu.se> 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

  parent reply	other threads:[~2006-07-04  8:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <44A005B7.2080904@student.lu.se>
     [not found] ` <44A01733.4010600@gnu.org>
     [not found]   ` <44A03B61.8080501@student.lu.se>
     [not found]     ` <ufyhrva9u.fsf@jasonrumney.net>
     [not found]       ` <44A2B99B.1020002@student.lu.se>
     [not found]         ` <44A2F974.7040609@gnu.org>
     [not found]           ` <44A31C19.5050000@student.lu.se>
     [not found]             ` <44A3A2DE.4040507@gnu.org>
2006-06-29 14:52               ` Exit hooks not run at logout on w32 Lennart Borgman
2006-06-29 15:00                 ` David Kastrup
2006-06-29 16:16                   ` Lennart Borgman
2006-06-29 21:40                     ` Mathias Dahl
2006-06-29 22:42                       ` Lennart Borgman
2006-07-04  6:55                         ` Lennart Borgman
2006-07-04  8:13                           ` Jason Rumney
2006-07-05 15:36                             ` Stuart D. Herring
2006-07-04  8:36                           ` Mathias Dahl [this message]
2006-07-04  8:49                             ` Jason Rumney
2006-07-04 16:49                               ` Lennart Borgman
2006-07-04  9:24                             ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uodw5n4vx.fsf@gmail.com \
    --to=brakjoller@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.