From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77516 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: too easy to quit emacs without proper saving of gnus files Date: Sat, 05 Mar 2011 12:00:29 +0100 Message-ID: <87vczxsugi.fsf@randomsample.de> References: <8739n3jjml.fsf@jidanni.org> <87ipvzdt33.fsf@member.fsf.org> <87ipvxlv7u.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299322892 23153 80.91.229.12 (5 Mar 2011 11:01:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 11:01:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25839@lists.math.uh.edu Sat Mar 05 12:01:28 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvpEl-0005eI-Rl for ding-account@gmane.org; Sat, 05 Mar 2011 12:01:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PvpEi-0007C5-9C; Sat, 05 Mar 2011 05:01:24 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PvpEg-0007Bg-LN for ding@lists.math.uh.edu; Sat, 05 Mar 2011 05:01:22 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PvpEf-00011e-RK for ding@lists.math.uh.edu; Sat, 05 Mar 2011 05:01:22 -0600 Original-Received: from v3-1008.vxen.de ([79.140.41.8]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PvpEf-0000uo-35 for ding@gnus.org; Sat, 05 Mar 2011 12:01:21 +0100 Original-Received: from dslc-082-082-187-113.pools.arcor-ip.net ([82.82.187.113] helo=spaten) by v3-1008.vxen.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1PvpEe-0000h6-FY for ding@gnus.org; Sat, 05 Mar 2011 12:01:20 +0100 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 05 Mar 2011 11:39:05 +0100") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77516 Archived-At: Lars Magne Ingebrigtsen writes: > David Engster writes: > >> My suggestion would be to add a function to the kill-emacs-hook which >> checks if Gnus is still running. This should be customizable, of course. > > I'm slightly wary of adding stuff to `kill-emacs-hook', since if you do > something wrong there, then you can't ever kill Emacs... Oh yes, I know exactly what you mean. Currently, my kill-emacs-hook has 12 functions in it from all kinds of packages... I also wonder if you can cleanly return from the kill-emacs-hook. Probably not. So please forget what I said. -David