From: Chong Yidong <cyd@stupidchicken.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: 3 bugs in Rmail
Date: Mon, 10 Jan 2011 15:02:31 -0500 [thread overview]
Message-ID: <871v4kzfvs.fsf@stupidchicken.com> (raw)
In-Reply-To: <8362twk3js.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Jan 2011 20:37:59 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
> http://lists.gnu.org/archive/html/help-gnu-emacs/2011-01/msg00315.html
In mail-mode, C-c C-c deletes the window and returns to the Rmail buffer
because of this specialized code in mail-bury:
(with-current-buffer
(window-buffer (next-window (selected-window) 'not))
(setq rmail-flag (eq major-mode 'rmail-mode))
...)
(if rmail-flag
;; If the Rmail buffer has a summary, show that.
(if summary-buffer (switch-to-buffer summary-buffer)
(delete-window))
(switch-to-buffer newbuf))))))
So, one solution is to add this to message-bury, or make message-bury an
alias for mail-bury. But this code doesn't seem terribly clean.
A better alternative may be to specify a `mail-bury-function' variable,
let Rmail set that variable, and change both mail-mode and message-mode
to respect `mail-bury-function'. Anyone have any better ideas?
next prev parent reply other threads:[~2011-01-10 20:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-10 18:37 3 bugs in Rmail Eli Zaretskii
2011-01-10 20:02 ` Chong Yidong [this message]
2011-01-10 21:28 ` Stefan Monnier
2011-01-12 17:25 ` Chong Yidong
2011-01-12 20:40 ` Stefan Monnier
2011-01-12 21:48 ` Chong Yidong
2011-01-10 22:47 ` Glenn Morris
2011-01-11 4:09 ` Eli Zaretskii
2011-01-11 7:39 ` Glenn Morris
2011-01-11 7:44 ` Glenn Morris
2011-01-11 7:55 ` Glenn Morris
2011-01-12 3:53 ` Glenn Morris
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=871v4kzfvs.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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).