diff options
| author | Richard M. Stallman | 1994-10-11 04:42:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-11 04:42:10 +0000 |
| commit | bdf0360080cf821616311c70bceaf7e80a7e84c8 (patch) | |
| tree | 31f21d6d33b9a3cf65fb7a47fd9d370832e28ace | |
| parent | ca5906261029cd2295b74523f125d846942a28be (diff) | |
| download | emacs-bdf0360080cf821616311c70bceaf7e80a7e84c8.tar.gz emacs-bdf0360080cf821616311c70bceaf7e80a7e84c8.zip | |
(rmail-show-message): New argument no-summary.
| -rw-r--r-- | lisp/mail/rmail.el | 12 |
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. |
| 1446 | If summary buffer is currently displayed, update current message there also." | 1446 | If 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 | ||