Function: rmail-show-message
rmail-show-message is an interactive and byte-compiled function
defined in rmail.el.gz.
Signature
(rmail-show-message &optional N NO-SUMMARY)
Documentation
Show message number N (prefix argument), counting from start of file.
If summary buffer is currently displayed, update current message there also. N defaults to the current message.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defun rmail-show-message (&optional n no-summary)
"Show message number N (prefix argument), counting from start of file.
If summary buffer is currently displayed, update current message there also.
N defaults to the current message."
(interactive "p")
(or (eq major-mode 'rmail-mode)
(switch-to-buffer rmail-buffer))
;; FIXME: Why do we swap the raw data back in?
(rmail-swap-buffers-maybe)
(rmail-maybe-set-message-counters)
(widen)
(let ((blurb (rmail-show-message-1 n)))
(or (zerop rmail-total-messages)
(progn
(when mail-mailing-lists
(rmail-unknown-mail-followup-to))
(if transient-mark-mode (deactivate-mark))
;; If there is a summary buffer, try to move to this message
;; in that buffer. But don't complain if this message is
;; not mentioned in the summary. Don't do this at all if we
;; were called on behalf of cursor motion in the summary
;; buffer.
(and (rmail-summary-exists) (not no-summary)
(let ((curr-msg rmail-current-message))
(rmail-select-summary
(rmail-summary-goto-msg curr-msg t t))))
(with-current-buffer rmail-buffer
(rmail-auto-file))))
(if blurb
(message blurb))))