From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 26862@debbugs.gnu.org
Subject: bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts
Date: Wed, 10 May 2017 18:42:33 +0900 [thread overview]
Message-ID: <b4mshkd3v5i.fsf@jpl.org> (raw)
In-Reply-To: <8737cdpdjj.fsf@ericabrahamsen.net>
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))
next prev parent reply other threads:[~2017-05-10 9:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-10 3:59 bug#26862: Quit Gnus prompts about unsent messages, but messages can't be saved as drafts Eric Abrahamsen
2017-05-10 9:27 ` Stephen Berman
2017-05-10 9:42 ` Katsumi Yamaoka [this message]
2017-05-11 6:01 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mshkd3v5i.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=26862@debbugs.gnu.org \
--cc=eric@ericabrahamsen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).