Mercurial > emacs
changeset 8728:b30c35c8e7ed
(rmail-summary-goto-msg): Preserve the current buffer.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 13 Sep 1994 04:14:00 +0000 |
parents | 592bbf02e29d |
children | d9d6f7419e2e |
files | lisp/mail/rmailsum.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el Tue Sep 13 04:13:32 1994 +0000 +++ b/lisp/mail/rmailsum.el Tue Sep 13 04:14:00 1994 +0000 @@ -780,7 +780,8 @@ (if (consp n) (setq n (prefix-numeric-value n))) (if (eobp) (forward-line -1)) (beginning-of-line) - (let ((buf rmail-buffer) + (let ((obuf (current-buffer)) + (buf rmail-buffer) (cur (point)) message-not-found (curmsg (string-to-int @@ -832,7 +833,9 @@ (unwind-protect (progn (pop-to-buffer buf) (rmail-show-message n)) - (select-window selwin)))))) + (select-window selwin) + ;; The actions above can alter the current buffer. Preserve it. + (set-buffer obuf)))))) (defun rmail-summary-scroll-msg-up (&optional dist) "Scroll the Rmail window forward."