From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#23483: 24.5; cygwin emacs w32 doesn not ask to save files when windows shuts down Date: Fri, 13 May 2016 19:12:14 -0400 Message-ID: <8f6dd645-859e-a03a-2e5c-3a119b453b0e@cornell.edu> References: <83a8k0e6l3.fsf@gnu.org> <83y47hc1r9.fsf@gnu.org> <86773dca-93da-e643-74df-a80cafcbf716@cornell.edu> <83shxn9pv7.fsf@gnu.org> <83inyh97g8.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1463181207 22273 80.91.229.3 (13 May 2016 23:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 May 2016 23:13:27 +0000 (UTC) Cc: "23483@debbugs.gnu.org" <23483@debbugs.gnu.org> To: "Strozzi, David J." , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 14 01:13:16 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 1b1MGd-0007Xr-NU for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 01:13:11 +0200 Original-Received: from localhost ([::1]:36140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1MGc-00078A-PP for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 May 2016 19:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1MGY-00073w-Rb for bug-gnu-emacs@gnu.org; Fri, 13 May 2016 19:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1MGU-0006Fx-Hy for bug-gnu-emacs@gnu.org; Fri, 13 May 2016 19:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1MGU-0006Fs-F3 for bug-gnu-emacs@gnu.org; Fri, 13 May 2016 19:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b1MGU-0007Gj-86 for bug-gnu-emacs@gnu.org; Fri, 13 May 2016 19:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2016 23:13: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.146318114827897 (code B ref 23483); Fri, 13 May 2016 23:13:02 +0000 Original-Received: (at 23483) by debbugs.gnu.org; 13 May 2016 23:12:28 +0000 Original-Received: from localhost ([127.0.0.1]:50335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1MFw-0007Ft-NF for submit@debbugs.gnu.org; Fri, 13 May 2016 19:12:28 -0400 Original-Received: from limerock01.mail.cornell.edu ([128.84.13.241]:55100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1MFu-0007Ff-Uv for 23483@debbugs.gnu.org; Fri, 13 May 2016 19:12:27 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u4DNCImO008856; Fri, 13 May 2016 19:12:18 -0400 Original-Received: from [192.168.1.3] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u4DNCDOY020164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 13 May 2016 19:12:14 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: X-PMX-Cornell-Gauge: Gauge=XXXXX 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:118224 Archived-At: On 5/13/2016 4:02 PM, Strozzi, David J. wrote: > Hmmm, this doesn't sound like a great fix. It's really a "failsafe", but not what Windows users expect. When you open the file again, how will you know that there's another auto-save file? Will emacs tell you? 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. > > Perhaps better is to have emacs simply abort a restart / shutdown and require the user to manually close emacs. 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. I'm not convinced that this is better. But as an experiment, I decided to see if I could make emacs do what you want by having a system shutdown trigger 'save-buffers-kill-emacs' instead of 'kill-emacs'. What happened was that Windows complained that emacs was preventing it from shutting down, and it gave me the choice of shutting down anyway or canceling the shutdown. I chose the latter, at which point I was faced with a non-responsive emacs that had to be killed. I don't have any further ideas. Ken