diff options
| author | Richard M. Stallman | 1994-09-13 04:14:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-13 04:14:00 +0000 |
| commit | c7b5ca27bfb9ef17ebfb456021f543a5308651bb (patch) | |
| tree | ff10482c7b711513d1c1748772e223fcb9ed152b | |
| parent | 81931ba19aee66ac9e0d3df948858a42048453a5 (diff) | |
| download | emacs-c7b5ca27bfb9ef17ebfb456021f543a5308651bb.tar.gz emacs-c7b5ca27bfb9ef17ebfb456021f543a5308651bb.zip | |
(rmail-summary-goto-msg): Preserve the current buffer.
| -rw-r--r-- | lisp/mail/rmailsum.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 5a009ce55dc..46ea888fe06 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -780,7 +780,8 @@ Commands for sorting the summary: | |||
| 780 | (if (consp n) (setq n (prefix-numeric-value n))) | 780 | (if (consp n) (setq n (prefix-numeric-value n))) |
| 781 | (if (eobp) (forward-line -1)) | 781 | (if (eobp) (forward-line -1)) |
| 782 | (beginning-of-line) | 782 | (beginning-of-line) |
| 783 | (let ((buf rmail-buffer) | 783 | (let ((obuf (current-buffer)) |
| 784 | (buf rmail-buffer) | ||
| 784 | (cur (point)) | 785 | (cur (point)) |
| 785 | message-not-found | 786 | message-not-found |
| 786 | (curmsg (string-to-int | 787 | (curmsg (string-to-int |
| @@ -832,7 +833,9 @@ Commands for sorting the summary: | |||
| 832 | (unwind-protect | 833 | (unwind-protect |
| 833 | (progn (pop-to-buffer buf) | 834 | (progn (pop-to-buffer buf) |
| 834 | (rmail-show-message n)) | 835 | (rmail-show-message n)) |
| 835 | (select-window selwin)))))) | 836 | (select-window selwin) |
| 837 | ;; The actions above can alter the current buffer. Preserve it. | ||
| 838 | (set-buffer obuf)))))) | ||
| 836 | 839 | ||
| 837 | (defun rmail-summary-scroll-msg-up (&optional dist) | 840 | (defun rmail-summary-scroll-msg-up (&optional dist) |
| 838 | "Scroll the Rmail window forward." | 841 | "Scroll the Rmail window forward." |