Function: rmail-summary-show-message
rmail-summary-show-message is a byte-compiled function defined in
rmailsum.el.gz.
Signature
(rmail-summary-show-message WHERE)
Documentation
Show current mail message.
Position it according to WHERE which can be BEG or END.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-summary-show-message (where)
"Show current mail message.
Position it according to WHERE which can be BEG or END."
(if (and (one-window-p) (not pop-up-frames))
;; If there is just one window, put the summary on the top.
(let ((buffer rmail-buffer))
(split-window (selected-window) rmail-summary-window-size)
(select-window (frame-first-window))
(rmail-pop-to-buffer rmail-buffer)
;; If pop-to-buffer did not use that window, delete that
;; window. (This can happen if it uses another frame.)
(or (eq buffer (window-buffer (next-window (frame-first-window))))
(delete-other-windows)))
(rmail-pop-to-buffer rmail-buffer))
(cond
((eq where 'BEG)
(goto-char (point-min))
(search-forward "\n\n"))
((eq where 'END)
(goto-char (point-max))
(recenter (1- (window-height))))
)
(rmail-pop-to-buffer rmail-summary-buffer))