* sent mail buffers not thoroughly buried
@ 2014-01-07 0:39 Ken Olum
2014-01-09 20:02 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Ken Olum @ 2014-01-07 0:39 UTC (permalink / raw)
To: emacs-devel
After you have sent a message in message mode, sometimes the sent mail
buffer gets reselected when it shouldn't. A specific sequence of
events that causes the problem is this:
Read mail in rmail.
Push "m" or "r" so that you have one window with your inbox and one
with your unsent mail.
Change buffers in the window with the inbox.
Send the mail that you're composing. Now you get your inbox back in
the window in which you were composing the mail.
Quit rmail. The window that used to have your inbox will now have
your sent mail.
The problem is in message-bury. If you don't do anything special,
this function calls (with-current-buffer buffer (bury-buffer)), which
not only buries the buffer but removes it from the window-prev-buffers
list. But rmail sets message-return-action so that your inbox gets
reselected when you're done sending the mail. In that case,
message-bury calls (bury-buffer buffer), which does not remove the
buffer from the window-prev-buffers list. Thus when you're done with
your inbox, that window goes back to what it was viewing before, which
is your sent mail.
Is there any good reason for this behavior in message-bury? I propose
to change it to always do (with-current-buffer buffer (bury-buffer)).
Ken
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-09 20:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 0:39 sent mail buffers not thoroughly buried Ken Olum
2014-01-09 20:02 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.