From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: remember all the little quits before you do the big quit :) Date: Sun, 26 Aug 2018 17:55:03 +0200 Organization: my virtual residence Message-ID: <87d0u52kdk.fsf@himinbjorg.adminart.net> References: <8xxsh35dw7q.fsf@macross.sdf.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535316688 9163 195.159.176.226 (26 Aug 2018 20:51:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2018 20:51:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 22:51:24 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 1fu20K-0002Hp-Ax for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 22:51:24 +0200 Original-Received: from localhost ([::1]:50366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu22Q-0004hB-Lq for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 16:53:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu00L-0004HW-3Y for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:43:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftzmj-00067r-A5 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:29:14 -0400 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::4]:21612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ftzmi-00066i-N9 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535308151; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=qeUdVRCx0+VLMwnmug9RL2uKa3+QbtFdwjfqOEIROvY=; b=oGWVmFwlBrqhe9hWjQR3e87C1//jxx3QXDvAlU2qX00MYPStgat6lXRBbH6WaWBT3I ssv7kBV3w5epaxjemvfrPra5UmZm6B688Uvxf2RhzcqXFeTk1RMSUx2O/X1fjD4Qg2RU 82bl9byuYOatpgGc0KpZiizxLZk1yN2lxlmn0xSuvb3m3/qYGYNRSWuCzKqcYwHsTwFN Ruo6H6f3yn/2gpfFxuXjqQ+PnfRoX8ZxStt6sx4lq2G19dYh4AfUjtatP6F9OLheRL5d kE4Hfv8n30Dxpi13r7ir2umnfAyRYNlmN6ac9xwvYKdRzAOfkIwe79euxFf6qXVHOphV cDuA== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1ftzmg-0000eH-1C for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 20:29:10 +0200 In-Reply-To: (Andy Moreton's message of "Thu, 23 Aug 2018 17:28:00 +0100") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::4 X-Mailman-Approved-At: Sun, 26 Aug 2018 16:52:33 -0400 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:117758 Archived-At: Andy Moreton writes: > On Thu 23 Aug 2018, Hikaru Ichijyo wrote: > >> 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. > > I have this snippet in .gnus to do that: > > (defun ajm-kill-emacs-exit-gnus () > (when (gnus-alive-p) > (with-current-buffer (get-buffer "*Group*") > (let ((gnus-expert-user t) > (gnus-interactive-exit 'quiet)) > (gnus-group-exit))))) > (add-hook 'kill-emacs-hook #'ajm-kill-emacs-exit-gnus)) Awesome! What is the minimum Emacs version for this to work? I asked for something like this a couple years ago and was told it's impossible.