Function: rmail-summary-next-msg
rmail-summary-next-msg is an interactive and byte-compiled function
defined in rmailsum.el.gz.
Signature
(rmail-summary-next-msg &optional NUMBER)
Documentation
Display next non-deleted msg from rmail file.
With optional prefix argument NUMBER, moves forward this number of non-deleted messages, or backward if NUMBER is negative.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-summary-next-msg (&optional number)
"Display next non-deleted msg from rmail file.
With optional prefix argument NUMBER, moves forward this number of non-deleted
messages, or backward if NUMBER is negative."
(interactive "p")
(or number (setq number 1))
(forward-line 0)
(and (> number 0) (end-of-line))
(let ((count (if (< number 0) (- number) number))
(search (if (> number 0) 're-search-forward 're-search-backward))
(non-del-msg-found nil))
(while (and (> count 0) (setq non-del-msg-found
(or (funcall search "^.....[^D]" nil t)
non-del-msg-found)))
(setq count (1- count))))
(beginning-of-line)
(display-buffer rmail-buffer))