From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23483: 24.5; cygwin emacs w32 doesn not ask to save files when windows shuts down Date: Sat, 14 May 2016 10:22:34 +0300 Message-ID: <83eg9585ol.fsf@gnu.org> References: <83a8k0e6l3.fsf@gnu.org> <83y47hc1r9.fsf@gnu.org> <86773dca-93da-e643-74df-a80cafcbf716@cornell.edu> <83shxn9pv7.fsf@gnu.org> <83inyh97g8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463210669 17162 80.91.229.3 (14 May 2016 07:24:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 May 2016 07:24:29 +0000 (UTC) Cc: 23483@debbugs.gnu.org To: "Strozzi\, David J." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 14 09:24:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b1Tvo-0005EY-5q for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 09:24:12 +0200 Original-Received: from localhost ([::1]:36969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Tvn-0006RW-90 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 03:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Tvi-0006Mg-TI for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1Tve-0005pH-JT for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Tve-0005p7-Gt for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b1Tve-00027n-DC for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 May 2016 07:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23483 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23483-submit@debbugs.gnu.org id=B23483.14632105998113 (code B ref 23483); Sat, 14 May 2016 07:24:02 +0000 Original-Received: (at 23483) by debbugs.gnu.org; 14 May 2016 07:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:50400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1Tux-00026n-4T for submit@debbugs.gnu.org; Sat, 14 May 2016 03:23:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1Tuu-00026a-TR for 23483@debbugs.gnu.org; Sat, 14 May 2016 03:23:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1Tum-0005cq-Jw for 23483@debbugs.gnu.org; Sat, 14 May 2016 03:23:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1Tum-0005cm-Ge; Sat, 14 May 2016 03:23:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1397 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b1Tty-00056a-Pe; Sat, 14 May 2016 03:23:07 -0400 In-reply-to: (strozzi2@llnl.gov) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118228 Archived-At: > From: "Strozzi, David J." > CC: "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.