[Top][All Lists]

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

Re: 3 bugs in Rmail

From: Stefan Monnier
Subject: Re: 3 bugs in Rmail
Date: Mon, 10 Jan 2011 16:28:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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.

Yes, it's pretty hackish and ugly.

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

Maybe rather than mail-bury-function, it could be
a mail-callback-function, i.e. not meant explicitly for burying but more
generally for returning to the caller.  I guess the difference would be
only in the name, tho.


reply via email to

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