[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 bugs in Rmail

From: Chong Yidong
Subject: Re: 3 bugs in Rmail
Date: Mon, 10 Jan 2011 15:02:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> 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:

            (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)
     (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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]