From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: emacs-pretest-bug@gnu.org, David Kastrup <dak@gnu.org>,
Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Exit hooks not run at logout on w32
Date: Fri, 30 Jun 2006 00:42:55 +0200 [thread overview]
Message-ID: <44A4576F.7060004@student.lu.se> (raw)
In-Reply-To: <7dbe73ed0606291440r15b9f5pd1c7f35344d79c42@mail.gmail.com>
Mathias Dahl wrote:
>> I think this must be a misunderstanding. No one is talking about saving
>> changes without the user saying so. The purpose of the patch is that
>> Emacs should be able to ask the user at logooff/shutdown to save the
>> changes. The situation now is that the changes are thrown away if they
>> are not saved before.
>
> If Microsoft's guide lines are what someone stated here, maybe the
> reason for them is that the shutdown process is considered to have
> higher priority than a user's unsaved data? If that is the case,
> halting that process maybe isn't such a good idea. Someone said that
> the autosave is enough and I agree. Your argument against it, that
> someone might edit the file from some other program before using the
> auto save data, does not seem like a very likely scenario. Or is it?
I am unsure about that guideline since I have never seen it. However the
InitiateSystemShutdown API has a parameter called bForceAppsClosed with
the following description:
If this parameter is TRUE, applications with unsaved changes are to
be forcibly closed. Note that this can result in data loss.
If this parameter is FALSE, the system displays a dialog box
instructing the user to close the applications.
(See http://windowssdk.msdn.microsoft.com/en-us/library/ms723171.aspx)
So the system can be rebooted or shutdown whatever the software running
on it does. During normal system shutdown however the parameter is TRUE
as far as I can see from the behaviour.
next prev parent reply other threads:[~2006-06-29 22:42 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 [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44A4576F.7060004@student.lu.se \
--to=lennart.borgman.073@student.lu.se \
--cc=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).