From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: remember all the little quits before you do the big quit :) Date: Fri, 24 Aug 2018 18:04:32 +0800 Message-ID: <87bm9s84i7.fsf@ericabrahamsen.net> References: <8xxsh35dw7q.fsf@macross.sdf.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1535105986 12444 195.159.176.226 (24 Aug 2018 10:19:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2018 10:19:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 24 12:19:42 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ft9Bt-00036M-8k for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Aug 2018 12:19:41 +0200 Original-Received: from localhost ([::1]:40914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ft9Dy-00049U-E5 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Aug 2018 06:21:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ft8xX-0004Fz-NR for help-gnu-emacs@gnu.org; Fri, 24 Aug 2018 06:04:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ft8xQ-0006H1-Oo for help-gnu-emacs@gnu.org; Fri, 24 Aug 2018 06:04:49 -0400 Original-Received: from [195.159.176.226] (port=60012 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ft8xQ-0006Ga-Hk for help-gnu-emacs@gnu.org; Fri, 24 Aug 2018 06:04:44 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ft8vH-0007Kj-HV for help-gnu-emacs@gnu.org; Fri, 24 Aug 2018 12:02:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:9opc66xWAtRdkQ4TpQVF8XatvFc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117730 Archived-At: Hikaru Ichijyo writes: > In the Gnus manual, it says: > > This message means that the last time you used Gnus, it wasn’t properly > exited and therefore couldn’t write its information to disk (e.g., which > messages you read), you are now asked if you want to restore that > information from the auto-save file. > > To prevent this message make sure you exit Gnus via ‘q’ in group > buffer instead of just killing Emacs. > > This is a good idea to avoid getting prompted about autosave files next > time you start Gnus. Emacs-W3M and ERC have their own quit commands, > and seem also to prefer you didn't just quit your whole Emacs session > while they're still around. > > Emacs checks to see if you have unsaved buffers at exit, and will prompt > you if there are running subordinate processes...but it's a little picky > about what it considers a "process," mostly meaning that in the sense of > processes in the underlying OS, not Lisp programs like Gnus or > Emacs-W3M. > > It would be nice if Emacs would give options on shutdown to terminate > Lisp applications in the same fashion it checks for unsaved buffers and > subordinate Unix processes. I know there are probably ways people have > hacked together solutions for this in their ~/.emacs files (and I'd love > to see them, if anybody wants to post snippets), but it just seems like > if Emacs is taking the effort to warn me of things I need to take care > of before shutdown, it shouldn't be forgetting about its own running > applications just because they're not OS processes. Not too long ago I put in a patch that allows non-file-visiting buffers to advertise themselves as savable to `save-some-buffers'. If you set the buffer-local variable `buffer-offer-save' to the symbol `always', and add a function to `write-contents-functions' that handles the save, it will happen as part of the `save-buffers-kill-emacs' process. That's pretty recent, though. Eric