Function: rmail-search-backwards
rmail-search-backwards is an interactive and byte-compiled function
defined in rmail.el.gz.
Signature
(rmail-search-backwards REGEXP &optional N)
Documentation
Show message containing previous match for REGEXP.
Prefix argument gives repeat count; negative argument means search forward (through later messages). Interactively, empty argument means use same regexp used last time.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defun rmail-search-backwards (regexp &optional n)
"Show message containing previous match for REGEXP.
Prefix argument gives repeat count; negative argument means search
forward (through later 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))))
(rmail-search regexp (- (or n 1))))