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:56:42 +0300 Message-ID: <8360uh843p.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> <8f6dd645-859e-a03a-2e5c-3a119b453b0e@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463212650 12460 80.91.229.3 (14 May 2016 07:57:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 May 2016 07:57:30 +0000 (UTC) Cc: strozzi2@llnl.gov, 23483@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 14 09:57:19 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 1b1URj-0004Mp-9D for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 09:57:11 +0200 Original-Received: from localhost ([::1]:37029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1URi-00012K-Sm for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 May 2016 03:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1URe-0000zO-WA for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1URZ-0003CL-Rq for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1URZ-0003CF-Of for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b1URZ-0002vD-JY for bug-gnu-emacs@gnu.org; Sat, 14 May 2016 03:57:01 -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:57:01 +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.146321260111205 (code B ref 23483); Sat, 14 May 2016 07:57:01 +0000 Original-Received: (at 23483) by debbugs.gnu.org; 14 May 2016 07:56:41 +0000 Original-Received: from localhost ([127.0.0.1]:50418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1URE-0002uf-L7 for submit@debbugs.gnu.org; Sat, 14 May 2016 03:56:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b1URC-0002uQ-M4 for 23483@debbugs.gnu.org; Sat, 14 May 2016 03:56:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1UR3-00039U-I8 for 23483@debbugs.gnu.org; Sat, 14 May 2016 03:56:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1UR3-00039O-Ez; Sat, 14 May 2016 03:56:29 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1461 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b1UR1-00078U-Hv; Sat, 14 May 2016 03:56:28 -0400 In-reply-to: <8f6dd645-859e-a03a-2e5c-3a119b453b0e@cornell.edu> (message from Ken Brown on Fri, 13 May 2016 19:12:14 -0400) 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:118232 Archived-At: > Cc: "23483@debbugs.gnu.org" <23483@debbugs.gnu.org> > From: Ken Brown > Date: Fri, 13 May 2016 19:12:14 -0400 > > > 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. AFAIK, doing what David wants is tricky technically (because our message pump runs in a separate thread, which cannot run Lisp), and is IMO not important enough for us to try getting out of our way. Like I said, having to answer all those questions always annoys me. Thanks.