aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmail.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 0675d517f36..2d409b6ea11 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1441,7 +1441,7 @@ change the invisible header text."
1441 (interactive) 1441 (interactive)
1442 (rmail-show-message rmail-current-message)) 1442 (rmail-show-message rmail-current-message))
1443 1443
1444(defun rmail-show-message (&optional n) 1444(defun rmail-show-message (&optional n no-summary)
1445 "Show message number N (prefix argument), counting from start of file. 1445 "Show message number N (prefix argument), counting from start of file.
1446If summary buffer is currently displayed, update current message there also." 1446If summary buffer is currently displayed, update current message there also."
1447 (interactive "p") 1447 (interactive "p")
@@ -1482,10 +1482,12 @@ If summary buffer is currently displayed, update current message there also."
1482 ;; If there is a summary buffer, try to move to this message 1482 ;; If there is a summary buffer, try to move to this message
1483 ;; in that buffer. But don't complain if this message 1483 ;; in that buffer. But don't complain if this message
1484 ;; is not mentioned in the summary. 1484 ;; is not mentioned in the summary.
1485 (if (rmail-summary-exists) 1485 ;; Don't do this at all if we were called on behalf
1486 (let ((curr-msg rmail-current-message)) 1486 ;; of cursor motion in the summary buffer.
1487 (rmail-select-summary 1487 (and (rmail-summary-exists) (not no-summary)
1488 (rmail-summary-goto-msg curr-msg t t)))) 1488 (let ((curr-msg rmail-current-message))
1489 (rmail-select-summary
1490 (rmail-summary-goto-msg curr-msg t t))))
1489 (if blurb 1491 (if blurb
1490 (message blurb)))))) 1492 (message blurb))))))
1491 1493