From: "Strozzi, David J." <strozzi2@llnl.gov>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "23483@debbugs.gnu.org" <23483@debbugs.gnu.org>
Subject: bug#23483: 24.5; cygwin emacs w32 doesn not ask to save files when windows shuts down
Date: Sat, 14 May 2016 20:02:08 +0000 [thread overview]
Message-ID: <B5B0B301BBD57E40B9BEBAEFFE1C3FCE011855E965@PRDEXMBX-01.the-lab.llnl.gov> (raw)
In-Reply-To: <83eg9585ol.fsf@gnu.org>
Hi,
I appreciate your viewpoint, and am glad the current improvement was made. You should feel free to close this issue and move on, but let me just say:
When _you_ quit a windows program, it asks you to save changes. Emacs does this too, when you quit with C-x C-c. or click on the X in the upper-right corner of the window. When _Windows_ closes a program as part of restart / shutdown / logout, it behaves the same way. Except for emacs. Maybe this is what I find unsettling: "I quit the program" and "Windows quits the program" behave the same way for all programs I use, except emacs.
So, what would you think about emacs doing C-x C-c when windows tells it to quit?
The advantage of the typical Windows-shutdown behavior is I can tell windows to shut down, and each program will prompt me if anything's changed, else is silently quits. Much faster than me manually switching to and quitting every program.
Dave
________________________________________
From: Eli Zaretskii [eliz@gnu.org]
Sent: Saturday, May 14, 2016 12:22 AM
To: Strozzi, David J.
Cc: kbrown@cornell.edu; 23483@debbugs.gnu.org
Subject: Re: bug#23483: 24.5; cygwin emacs w32 doesn not ask to save files when windows shuts down
> From: "Strozzi, David J." <strozzi2@llnl.gov>
> CC: "kbrown@cornell.edu" <kbrown@cornell.edu>, "23483@debbugs.gnu.org"
> <23483@debbugs.gnu.org>
> Date: Fri, 13 May 2016 20:02:08 +0000
>
> Hmmm, this doesn't sound like a great fix. It's really a "failsafe", but not what Windows users expect.
Windows users expect that a program either asks or silently does The
Right Thing. Emacs will now do the latter. I don't see why we should
emulate annoying behavior of programs that insist on asking. I have
always hated to answer gobs of these questions when I restart a busy
system. Most of those questions are redundant anyway, e.g., if I
change the size of a column in an Excel spreadsheet.
> When you open the file again, how will you know that there's another auto-save file? Will emacs tell you?
Yes, Emacs will tell you the file has auto-saved changes, and will
propose a command to restore them.
> What if you open the file in another program? Or you're editing source code / script and then make / run it, nothing will tell you about the auto-saved file.
But the system didn't just go down on its own, at least that's not
what happens frequently. _You_ shut it down, so why won't you restore
the files after it comes up (or save them before you shut down) in the
first place? It makes very little sense to me.
> Perhaps better is to have emacs simply abort a restart / shutdown and require the user to manually close emacs.
No, this is even worse. When I want to restart my system, I want it
to come up quickly enough, and I frequently turn to other things while
it restarts.
> If it doesn't behave like other windows programs (query user to save unsaved files), then we have to remember emacs is special. You could have a parameter for whether emacs aborts a windows shutdown, default to yes, and then users and consciously shut it off if they want.
The feature that got coded is a safety feature, a kind of fire escape.
Normally, you are expected to shut down Emacs before you turn off the
system. For a "fire escape", having an option that controls it makes
no sense to me, because safety features should be always active.
prev parent reply other threads:[~2016-05-14 20:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-08 13:33 bug#23483: 24.5; cygwin emacs w32 doesn not ask to save files when windows shuts down Strozzi, David J.
2016-05-08 18:40 ` Eli Zaretskii
2016-05-10 15:16 ` Ken Brown
2016-05-10 16:32 ` Eli Zaretskii
2016-05-12 13:57 ` Ken Brown
2016-05-12 16:56 ` Eli Zaretskii
2016-05-12 19:58 ` Ken Brown
2016-05-13 16:22 ` Strozzi, David J.
2016-05-13 17:46 ` Eli Zaretskii
2016-05-13 18:05 ` Ken Brown
2016-05-13 20:02 ` Strozzi, David J.
2016-05-13 23:12 ` Ken Brown
2016-05-14 7:56 ` Eli Zaretskii
2016-05-14 7:22 ` Eli Zaretskii
2016-05-14 20:02 ` Strozzi, David J. [this message]
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=B5B0B301BBD57E40B9BEBAEFFE1C3FCE011855E965@PRDEXMBX-01.the-lab.llnl.gov \
--to=strozzi2@llnl.gov \
--cc=23483@debbugs.gnu.org \
--cc=eliz@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.