From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Exit hooks not run at logout on w32 Date: Wed, 5 Jul 2006 08:36:35 -0700 (PDT) Message-ID: <43780.128.165.123.18.1152113795.squirrel@webmail.lanl.gov> References: <44A005B7.2080904@student.lu.se> <44A03B61.8080501@student.lu.se><44A2B99B.1020002@student.lu.se> <44A2F974.7040609@gnu.org><44A31C19.5050000@student.lu.se> <44A3A2DE.4040507@gnu.org><44A3E918.5000304@student.lu.se> <85lkrg3t3a.fsf@lola.goethe.zz><44A3FCCD.4040203@student.lu.se><7dbe73ed0606291440r15b9f5pd1c7f35344d79c42@mail.gmail.com><44A4576F.7060004@student.lu.se> <44AA10EC.2080503@student.lu.se> <44AA233E.8080000@gnu.org> Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1152113831 11762 80.91.229.2 (5 Jul 2006 15:37:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 15:37:11 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Mathias Dahl , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 05 17:37:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fy9Qx-0005v3-Af for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 17:36:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fy9Qw-0001Wk-JP for ged-emacs-devel@m.gmane.org; Wed, 05 Jul 2006 11:36:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fy9Qj-0001Ug-Rq for emacs-devel@gnu.org; Wed, 05 Jul 2006 11:36:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fy9Qi-0001Sb-5V for emacs-devel@gnu.org; Wed, 05 Jul 2006 11:36:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fy9Qh-0001SS-U0; Wed, 05 Jul 2006 11:36:43 -0400 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fy9ea-0006w6-Ng; Wed, 05 Jul 2006 11:51:05 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k65FabHV020389; Wed, 5 Jul 2006 09:36:37 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k65FaaAH014168; Wed, 5 Jul 2006 09:36:36 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id k65FaaIP030629; Wed, 5 Jul 2006 09:36:36 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id k65FaZ2n030627; Wed, 5 Jul 2006 08:36:35 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434); by webmail.lanl.gov with HTTP; Wed, 5 Jul 2006 08:36:35 -0700 (PDT) In-Reply-To: <44AA233E.8080000@gnu.org> Original-To: "Jason Rumney" User-Agent: SquirrelMail/1.4.3a-11.EL3 X-Mailer: SquirrelMail/1.4.3a-11.EL3 X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56570 gmane.emacs.pretest.bugs:12771 Archived-At: >> Could the problem that users unsaved data are not saved on w32 in this >> situation be put in FOR-RELEASE? I think it is a serious bug. > The user has requested a shutdown of the system, without saving their > data first. How is it a bug that Emacs respects their wishes? It's worth considering that the user may have requested the shutdown without remembering that Emacs was open (or that data remained unsaved in it), or that something else (e.g., an installer program) may have initiated the shutdown unexpectedly. I believe that the question of "save or discard data" has an obvious answer. It's just a question of 1) Auto-save, to protect files from bad unsaved edits 2) Save really, assuming that the user didn't break things and then shut down, and avoiding the issue of recovering the files 3) Ask the user (probably best, but is it in line with the UI guidelines?) For what it's worth, all sorts of W32 applications interrupt a normal shutdown just to offer to save files, IIRC. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.