From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Re: Exit hooks not run at logout on w32 Date: Thu, 29 Jun 2006 18:16:13 +0200 Message-ID: <44A3FCCD.4040203@student.lu.se> References: <44A005B7.2080904@student.lu.se> <44A01733.4010600@gnu.org> <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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151618815 20995 80.91.229.2 (29 Jun 2006 22:06:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2006 22:06:55 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Emacs Devel Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Fri Jun 30 00:06:54 2006 Return-path: Envelope-to: gebp-emacs-pretest-bug@gmane.org Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fw4e9-0005TR-CV for gebp-emacs-pretest-bug@gmane.org; Fri, 30 Jun 2006 00:06:02 +0200 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.6/8.13.1/GN) with ESMTP id k5TGJc1b014387 for ; Thu, 29 Jun 2006 18:19:38 +0200 (CEST) (envelope-from emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FvzBt-00037K-1N for gebp-emacs-pretest-bug@gmane.org; Thu, 29 Jun 2006 12:16:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FvzBk-00032o-DP for emacs-pretest-bug@gnu.org; Thu, 29 Jun 2006 12:16:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FvzBi-0002zm-Gu for emacs-pretest-bug@gnu.org; Thu, 29 Jun 2006 12:16:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FvzBi-0002zV-DL; Thu, 29 Jun 2006 12:16:18 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FvzOG-0006yk-SG; Thu, 29 Jun 2006 12:29:17 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.075) id 44A135F10009AD85; Thu, 29 Jun 2006 18:16:15 +0200 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: David Kastrup In-Reply-To: <85lkrg3t3a.fsf@lola.goethe.zz> X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for CVS Emacs." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_50,UNPARSEABLE_RELAY autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on antispam.kq.no Xref: news.gmane.org gmane.emacs.pretest.bugs:12696 gmane.emacs.devel:56310 Archived-At: David Kastrup wrote: > Lennart Borgman writes: > > >> Jason Rumney wrote: >> >> >>> As I said at the start of the thread, it would be correct for Emacs >>> to flush its autosave buffers to disk at this point, but not to >>> start asking all the questions that save-buffers-kill-emacs >>> does. What if Emacs is on a secondary monitor, and the Graphics >>> driver shuts it off when it receives the shutdown message? Emacs >>> will be delaying shutdown waiting for a response, while the user >>> cannot see it. >>> >> The problem with autosave is that data might be lost if the user >> happens to use some other tool to edit the files afterwards. >> > > Tough. That's what "editing" means. I don't want changes saved > without my saying so: that might end up the file in a terminally ill > state, like when I cut out a large region for the purpose of pasting > it somewhere else, and then Emacs shuts down. > > Recovering a session is good enough for me. > I think this must be a misunderstanding. No one is talking about saving changes without the user saying so. The purpose of the patch is that Emacs should be able to ask the user at logooff/shutdown to save the changes. The situation now is that the changes are thrown away if they are not saved before. This patch is only for w32 but I really hope the situation is better on other platforms. If not I would encourage change.