Function: rmail-summary-search-backward
rmail-summary-search-backward is an interactive and byte-compiled
function defined in rmailsum.el.gz.
Signature
(rmail-summary-search-backward REGEXP &optional N)
Documentation
Show message containing next match for REGEXP.
Prefix argument gives repeat count; negative argument means search backwards (through earlier messages). Interactively, empty argument means use same regexp used last time.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailsum.el.gz
(defun rmail-summary-search-backward (regexp &optional n)
"Show message containing next match for REGEXP.
Prefix argument gives repeat count; negative argument means search
backwards (through earlier messages).
Interactively, empty argument means use same regexp used last time."
(interactive
(let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0))
(prompt
(concat (if reversep "Reverse " "") "Rmail search (regexp"))
regexp)
(setq prompt
(concat prompt
(if rmail-search-last-regexp
(concat ", default "
rmail-search-last-regexp "): ")
"): ")))
(setq regexp (read-string prompt))
(cond ((not (equal regexp ""))
(setq rmail-search-last-regexp regexp))
((not rmail-search-last-regexp)
(error "No previous Rmail search string")))
(list rmail-search-last-regexp
(prefix-numeric-value current-prefix-arg))))
;; Don't use save-excursion because that prevents point from moving
;; properly in the summary buffer.
(with-current-buffer rmail-buffer
(rmail-search regexp (- n))))