Function: rmail-next-same-subject
rmail-next-same-subject is an interactive and byte-compiled function
defined in rmail.el.gz.
Signature
(rmail-next-same-subject N)
Documentation
Go to the next mail message having the same subject header.
With prefix argument N, do this N times. If N is negative, go backwards instead.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defun rmail-next-same-subject (n)
"Go to the next mail message having the same subject header.
With prefix argument N, do this N times.
If N is negative, go backwards instead."
(interactive "p")
(let ((subject (rmail-simplified-subject))
(forward (> n 0))
(i rmail-current-message)
found)
(while (and (/= n 0)
(if forward
(< i rmail-total-messages)
(> i 1)))
(let (done)
(while (and (not done)
(if forward
(< i rmail-total-messages)
(> i 1)))
(setq i (if forward (1+ i) (1- i)))
(setq done (string-equal subject (rmail-simplified-subject i))))
(if done (setq found i)))
(setq n (if forward (1- n) (1+ n))))
(if found
(rmail-show-message found)
(error "No %s message with same subject"
(if forward "following" "previous")))))