bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11242: 24.1.50; Switching to rmai view buffer


From: martin rudalics
Subject: bug#11242: 24.1.50; Switching to rmai view buffer
Date: Mon, 16 Apr 2012 10:15:54 +0200

>     which calls `mail-bury' where we have two options to show a buffer whose
>     name starts with a space, namely
>
>     (defun mail-bury (&optional arg)
>        ...
>     (bury-buffer (current-buffer)) <---------- HERE
>     ...
>       (switch-to-buffer newbuf)))) <----------- OR HERE
>
> It's neither one.  It's done by this code.
>
>     ;; If there is an Rmail buffer, return to it nicely
>     ;; even if this message was not started by an Rmail command.
>     (unless return-action
>       (dolist (buffer (buffer-list))
>    (if (eq (buffer-local-value 'major-mode buffer) 'rmail-mode)
>        (setq return-action `(rmail-mail-return ,newbuf)))))

Maybe.  But how can you be sure that `bury-buffer' has no effect?  Do
you have a buffer in rmail-mode at that time?  Is `rmail-mail-return'
definitely called?  Is NEWBUF really a buffer starting with a space?

martin





reply via email to

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