# HG changeset patch # User Richard M. Stallman # Date 779429640 0 # Node ID b30c35c8e7ed430e134b969ff746efa08da316e6 # Parent 592bbf02e29db7ab7ba5bc98d449e8ef3a9eac37 (rmail-summary-goto-msg): Preserve the current buffer. diff -r 592bbf02e29d -r b30c35c8e7ed lisp/mail/rmailsum.el --- 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."