From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.help Subject: Re: Graceful Gnus exit on Emacs exit Date: Thu, 23 Apr 2020 01:12:34 +0300 Message-ID: <87y2qnrwz1.fsf@osv.gnss.ru> References: <87pnc0vfq2.fsf@osv.gnss.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66354"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Bob Newell Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 23 00:13:08 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRNcB-000H9M-JD for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Apr 2020 00:13:07 +0200 Original-Received: from localhost ([::1]:58730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRNcA-0001wz-Lp for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 22 Apr 2020 18:13:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60916) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRNbj-0001wo-NJ for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 18:12:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRNbj-00080v-6v for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 18:12:39 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:40891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRNbi-00080k-Qt for help-gnu-emacs@gnu.org; Wed, 22 Apr 2020 18:12:38 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id y4so4108410ljn.7 for ; Wed, 22 Apr 2020 15:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=zDOZ2JcD/7fjFUAzZ4cI8RDxHj2eMxxrxQXBWZkppjA=; b=c7gI0hnCo1baT1j5TG++NTbdR2JxzO3f7Z58xpjPftEjkYYqMe76XcsAMWuye0GCSA wYxLQola7XXXejU7ONx8UtX9eu8YcOsLFvYI58EowX9OvIoqL51Tor1rlHHo0UbY+U/D VCvIWrfAPvsqdugpccYXzNlrMJySpS5jYK2JRiYabszhuQeQUOGtJ+0NobmZwSse9amG fxbyqPby+yl18WqPmhEk6qz7iED1d8D7Q062cRVbH/8dY6LHs9PQrkUmfuriw2nq92sf Kx0UTr212kTXdCZsNQ9HlcUholmTqY2AZK1susKqYdiPbkBChMk+A8R0sP8zdLV62JRJ lpIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=zDOZ2JcD/7fjFUAzZ4cI8RDxHj2eMxxrxQXBWZkppjA=; b=hvSbTOkZWJNYytyyIVZVLEFFSfLeH1+vHbc4gqBHkhTgqnTsp9rI/tT9eBU2EUQKTt XUqg3Bcm59/ghH1+p0qv8YYuJxjne65YgIgMzRJ7s2YLAhq7t3/B+fvXLPPdhAQJLj15 5sUQeI/fjVD91JAyvcnuZ7+pKYjNdQWRVz5JJM8JiC2zNCEiEBNOom/XmBD7ilIz0iwp 5tvOdwyylKrKDtTgBpDM8g5ZoyAyXwa3tHnY78mJ1uThnbTnr3VBU7TovMryDGIwNncw 643QuH5Wu2gWtVu3EN218YCIADJ0U5yi7GRK74tVY+wJObYEFAhQmB5XZzdI+/gELVCJ IEcg== X-Gm-Message-State: AGi0PuZilGw8AuvAopx+ZQ1SmaJRQYfoFNxvQIaQv/d9pMT15xdQwXcj tGGl51Vmav4MQ8imWYwt9ZhMHdVr X-Google-Smtp-Source: APiQypJGz3CLKJh5qBUbLsP/4m1/unVQpia3o9kWpHV/fBKagIOvr5+Mn15TP+e09zqoaT9YR4EmBw== X-Received: by 2002:a2e:b44c:: with SMTP id o12mr524497ljm.240.1587593556417; Wed, 22 Apr 2020 15:12:36 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id q6sm478537ljg.67.2020.04.22.15.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 15:12:35 -0700 (PDT) In-Reply-To: (Bob Newell's message of "Wed, 22 Apr 2020 07:38:40 -1000") Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=sorganov@gmail.com; helo=mail-lj1-x235.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122922 Archived-At: Bob Newell writes: >> (defun gnus-exit () >> "Exit gnus without confirmation and return 't" >> (let ((noninteractive 't) >> (gnus-expert-user 't) >> (gnus-interactive-exit 'quiet)) >> (gnus-group-exit) 't)) >> >> (add-hook 'kill-emacs-hook 'gnus-exit) > > If it's any consolation, I do what amounts to the exact same thing, > including avoiding the prompts. It sure is, thanks for sharing! > I've noticed one undesirable side effect (and very likely it's just > the rest of my setup causing it) ... if I should happen to exit Gnus > during my Emacs session, when I terminate Emacs, Gnus starts up again > just so it can shut down ! Tried it here, but didn't notice Gnus start, so it's likely something in your setup indeed, as I do need to wait a little when Gnus actually starts. -- Sergey