From unknown Thu Jun 19 14:04:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26862 <26862@debbugs.gnu.org> To: bug#26862 <26862@debbugs.gnu.org> Subject: Status: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts Reply-To: bug#26862 <26862@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:46 +0000 retitle 26862 Quit Gnus prompts about unsent messages, but messages can't b= e saved as drafts reassign 26862 emacs,gnus submitter 26862 Eric Abrahamsen severity 26862 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 00:00:19 2017 Received: (at submit) by debbugs.gnu.org; 10 May 2017 04:00:19 +0000 Received: from localhost ([127.0.0.1]:34859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8InT-00080S-1S for submit@debbugs.gnu.org; Wed, 10 May 2017 00:00:19 -0400 Received: from mail.ericabrahamsen.net ([50.56.99.223]:38968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8InR-00080L-VD for submit@debbugs.gnu.org; Wed, 10 May 2017 00:00:18 -0400 Received: from localhost (unknown [123.118.83.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id F08F4BEFF2 for ; Wed, 10 May 2017 04:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1494388817; bh=iUAxnJZYmolwOe7qn2ufVJE9Nr283MaXS1mrl5hm2jc=; h=From:To:Subject:Date:From; b=CCB8uZCG+I3w/0526fCFIgwfdlOttKSy9g1lyB7o6OK+X+IYW8aIPuWtON0u9esAj ajbazm4WVW5Hn0UiQKAvwhOEZ3I9xtu/VQC/UmpGxNiW4HEI6cu+OcoIvwAfhV4uaL ujMCfBiLO4PrxSxUeW+pTnc6sUxwu4nSmDIP1gfw= From: Eric Abrahamsen To: submit@debbugs.gnu.org (The Gnus Bugfixing Girls + Boys) Subject: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts X-Debbugs-Version: 5.13 X-Debbugs-Package: emacs,gnus Date: Wed, 10 May 2017 11:59:44 +0800 Message-ID: <8737cdpdjj.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) What I mean is: 1. With unfinished/unsent messages open, you quit Gnus. 2. Gnus says you have unsent messages, quit anyway? 3. You say no. 4. You go to the unsaved message, and run "C-c C-d" to save as draft. 5. Gnus says "selecting deleted buffer" 6. You can't save the draft. I'll probably get around to figuring this out, but I'm hanging it up here in the meantime. Gnus v5.13 GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.12) of 2017-05-09 200 news.gmane.org InterNetNews NNRP server INN 2.5.4 ready (posting ok) 100 Legal commands ARTICLE [message-ID|number] AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...] BODY [message-ID|number] CAPABILITIES [keyword] DATE GROUP newsgroup HDR header [message-ID|range] HEAD [message-ID|number] HELP IHAVE message-ID LAST LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]] LISTGROUP [newsgroup [range]] MODE READER NEWGROUPS [yy]yymmdd hhmmss [GMT] NEWNEWS wildmat [yy]yymmdd hhmmss [GMT] NEXT OVER [range] POST QUIT STARTTLS STAT [message-ID|number] XGTITLE [wildmat] XHDR header [message-ID|range] XOVER [range] XPAT header message-ID|range pattern [pattern ...] Report problems to . . 382 Begin TLS negotiation now 100 Legal commands ARTICLE [message-ID|number] AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...] BODY [message-ID|number] CAPABILITIES [keyword] DATE GROUP newsgroup HDR header [message-ID|range] HEAD [message-ID|number] HELP IHAVE message-ID LAST LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]] LISTGROUP [newsgroup [range]] MODE READER NEWGROUPS [yy]yymmdd hhmmss [GMT] NEWNEWS wildmat [yy]yymmdd hhmmss [GMT] NEXT OVER [range] POST QUIT STARTTLS STAT [message-ID|number] XGTITLE [wildmat] XHDR header [message-ID|range] XOVER [range] XPAT header message-ID|range pattern [pattern ...] Report problems to . . From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 05:29:02 2017 Received: (at 26862) by debbugs.gnu.org; 10 May 2017 09:29:02 +0000 Received: from localhost ([127.0.0.1]:35079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Nva-0000dV-Gt for submit@debbugs.gnu.org; Wed, 10 May 2017 05:29:02 -0400 Received: from mout.gmx.net ([212.227.15.15]:56907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8NvX-0000d0-J7 for 26862@debbugs.gnu.org; Wed, 10 May 2017 05:29:00 -0400 Received: from rosalinde ([83.135.4.123]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MKIEQ-1d8vt413GY-001fxk; Wed, 10 May 2017 11:28:44 +0200 From: Stephen Berman To: Eric Abrahamsen Subject: Re: bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts In-Reply-To: <8737cdpdjj.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 10 May 2017 11:59:44 +0800") Date: Wed, 10 May 2017 11:27:05 +0200 Message-ID: <874lwt6p06.fsf@rosalinde> References: <8737cdpdjj.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:gqFxpxH7XZWiZMdhBtwcHRr3tA38YwXhwZnIoy3DDtdoP5xnnyg p5BD0zE00hHwQblqpFFeVOw6Beg17zGlc6S8Pf2p+zck0fdspnXAn/cEFL9nB5fe07NJVFc Le2lYLlUo3w48eQO8IOjHY1cL6KY188ZW4K6o7CUzZ+XUknKpWR9EoIOpVVmqpzY/bnlwXy SpPD8sunanZ+7dknvfrHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:N4CuOfJpZDI=:+/HdZKYmTDuPuEpnRAkTI3 cZWmJ6RLEHq4nIpeZtjwDTwwpBVRrH5dhIq0SScQqM5Lu443T8hHnfu+JEUt4tQ2O8oKye7P/ 4Mq0hhGzQn0DV0Z+txIjeoDpoob4R3Rm7/Smn9vRHLaWdyET00JruUUhiE55F3Hd9wiuE+i6p RQEonMENECrx0tfaXrj0/zWPfnwssZTsiz6PxbvBfgmxlbP30UJqArOjy01HHVnZLjSjuqTBe pqT1LRSmHOtZMBWG/hGpfutM7qwVt4CoOQP7SIobBnzH/zQmHJKVv+BZVNn2ioC4Fip8TVeBH bj/lMc1TkVDsRvgMob3QHAw207CcvddicVQ5RSDL2cOdiGJ6443kPo7HQn6tT29fWxDhbffpK fW0/wUac8VkTQiSraxv7ZNGdDM5OMASqEiSOY+lNUBkm2bwP1F/9IVAdIqqwrcYiu2JUlugB+ O9dPUxPI69mh/MV+ZlxCLhT3dlSDXTpOXnoSlrYTXUSNHQvabr7Q+ysN4SuNhF18c7mGAdZNp R3WvaE8mUzQo9ycXPh/4WBHp3oBVqE4TMBsU14O05yfRAxncljVzqvFPUIO+I8yqh2oVjyaBF S7IkTkMsAItLRvTa9TTMvpusuUqUPI+H/kMClx5J07sTwJR8cJxHrGbBLRXrqkhe6vZYcjnIu oEhJTFk8X2K15QRST1rL56XmylebsowleDnh/x2miTL+bZDAjSR7ZwHFAFd39GHE3WdziQlIe KvrwlnuWsEb6aGMiuAWOtjAqhgfsM7CInlPcdlajZoXf/I1Xu/auC0GWxqE2+zXS6lnaBwe0u 60k4sd4 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 26862 Cc: 26862@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) On Wed, 10 May 2017 11:59:44 +0800 Eric Abrahamsen wrote: > What I mean is: > > 1. With unfinished/unsent messages open, you quit Gnus. > 2. Gnus says you have unsent messages, quit anyway? > 3. You say no. > 4. You go to the unsaved message, and run "C-c C-d" to save as draft. > 5. Gnus says "selecting deleted buffer" This happens here too. > 6. You can't save the draft. However, when I restart Gnus, I see that that unsent message is in the Drafts group, i.e., Gnus in fact saved it. So it's a UI bug but doesn't lose data. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 05:42:24 2017 Received: (at 26862) by debbugs.gnu.org; 10 May 2017 09:42:24 +0000 Received: from localhost ([127.0.0.1]:35086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8O8V-0000wG-Ol for submit@debbugs.gnu.org; Wed, 10 May 2017 05:42:23 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:53181 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8O8U-0000w4-FN for 26862@debbugs.gnu.org; Wed, 10 May 2017 05:42:23 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1d8O8N-00372r-GD; Wed, 10 May 2017 04:42:16 -0500 Date: Wed, 10 May 2017 18:42:33 +0900 Message-ID: From: Katsumi Yamaoka To: Eric Abrahamsen Subject: Re: bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts References: <8737cdpdjj.fsf@ericabrahamsen.net> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:Efh/kPITT1oWyeJTO7R0QJwRcNw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26862 Cc: 26862@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Wed, 10 May 2017 11:59:44 +0800, Eric Abrahamsen wrote: > What I mean is: > 1. With unfinished/unsent messages open, you quit Gnus. > 2. Gnus says you have unsent messages, quit anyway? > 3. You say no. > 4. You go to the unsaved message, and run "C-c C-d" to save as draft. > 5. Gnus says "selecting deleted buffer" > 6. You can't save the draft. > I'll probably get around to figuring this out, but I'm hanging it up > here in the meantime. It seems hard to make `C-c C-d' work in such a case. Instead, how about killing those modified message buffers unconditionally? --- gnus-start.el~ 2017-04-02 22:09:06.371709200 +0000 +++ gnus-start.el 2017-05-10 09:37:13.366771900 +0000 @@ -732,6 +732,9 @@ (gnus-kill-buffer nntp-server-buffer) ;; Kill Gnus buffers. (dolist (buffer (gnus-buffers)) + (when (gnus-buffer-exists-p buffer) + (with-current-buffer buffer + (set-buffer-modified-p nil))) (gnus-kill-buffer buffer)) ;; Remove Gnus frames. (gnus-kill-gnus-frames)) From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 02:01:23 2017 Received: (at 26862) by debbugs.gnu.org; 11 May 2017 06:01:24 +0000 Received: from localhost ([127.0.0.1]:37495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8hAB-0001iT-NY for submit@debbugs.gnu.org; Thu, 11 May 2017 02:01:23 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:56148 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8hA8-0001iF-Oa for 26862@debbugs.gnu.org; Thu, 11 May 2017 02:01:21 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1d8h9w-0039O4-RY; Thu, 11 May 2017 01:01:13 -0500 Date: Thu, 11 May 2017 15:01:29 +0900 Message-ID: From: Katsumi Yamaoka To: Stephen Berman Subject: Re: bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts References: <8737cdpdjj.fsf@ericabrahamsen.net> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:5i19Gl9yJEvFak+xlIsV63n1BdM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 26862 Cc: Eric Abrahamsen , 26862@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Wed, 10 May 2017 11:27:05 +0200, Stephen Berman wrote: > However, when I restart Gnus, I see that that unsent message is in the > Drafts group, i.e., Gnus in fact saved it. So it's a UI bug but doesn't > lose data. Good point. Yes, nndraft runs the auto-save on a modified draft with a certain period. Prompting a user for a modified draft is a normal operation of `kill-buffer', not Gnus' intention. So we may kill those buffers safely and silently. On Wed, 10 May 2017 18:42:33 +0900, Katsumi Yamaoka wrote: > It seems hard to make `C-c C-d' work in such a case. Instead, > how about killing those modified message buffers unconditionally? Thanks Eric for suggestions and verifying a revised patch. I've committed it in master: Where `do-auto-save' makes sure that latest drafts are saved. (set-buffer-modified-p nil) is necessary to kill modified buffers silently. (setq kill-buffer-hook nil) assumes that a user might set it for a certain purpose (I do it ;-), that might issue a useless prompt. Regards, From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 18:54:24 2017 Received: (at control) by debbugs.gnu.org; 11 May 2017 22:54:24 +0000 Received: from localhost ([127.0.0.1]:39360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8wyV-0006dJ-Vu for submit@debbugs.gnu.org; Thu, 11 May 2017 18:54:24 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:57745 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8wyU-0006d6-EE for control@debbugs.gnu.org; Thu, 11 May 2017 18:54:22 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1d8wyM-003sJ5-5I; Thu, 11 May 2017 17:54:15 -0500 Date: Fri, 12 May 2017 07:54:35 +0900 Message-ID: From: Katsumi Yamaoka To: control@debbugs.gnu.org Subject: Re: bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts References: <8737cdpdjj.fsf@ericabrahamsen.net> Organization: Emacsen advocacy group User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:q66KtQMHjsL7oEdgtvagcd1zJ3o= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) close 26862 quit From unknown Thu Jun 19 14:04:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Jun 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator