aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-06-13 02:35:37 +0000
committerKarl Heuer1999-06-13 02:35:37 +0000
commitfc35b9101a533039902105fa3b65c500906effcb (patch)
tree22a8dc40d2e13721e926fa09ccf594f11d22af3f
parent48afa9cd7be7a827f2034cf95f783c6bf21c1f64 (diff)
downloademacs-fc35b9101a533039902105fa3b65c500906effcb.tar.gz
emacs-fc35b9101a533039902105fa3b65c500906effcb.zip
(rmail-output-read-rmail-file-name): If in
rmail-summary buffer, search for pattern in rmail-file.
-rw-r--r--lisp/mail/rmailout.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index 6b32c055839..c9232401133 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -50,6 +50,8 @@ Set `rmail-default-rmail-file' to this name as well as returning it."
50 ;; Suggest a file based on a pattern match. 50 ;; Suggest a file based on a pattern match.
51 (while (and tail (not answer)) 51 (while (and tail (not answer))
52 (save-excursion 52 (save-excursion
53 (if (eq major-mode 'rmail-summary-mode)
54 (set-buffer rmail-buffer))
53 (goto-char (point-min)) 55 (goto-char (point-min))
54 (if (re-search-forward (car (car tail)) nil t) 56 (if (re-search-forward (car (car tail)) nil t)
55 (setq answer (eval (cdr (car tail))))) 57 (setq answer (eval (cdr (car tail)))))