]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-output-read-rmail-file-name): If in
authorKarl Heuer <kwzh@gnu.org>
Sun, 13 Jun 1999 02:35:37 +0000 (02:35 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 13 Jun 1999 02:35:37 +0000 (02:35 +0000)
rmail-summary buffer, search for pattern in rmail-file.

lisp/mail/rmailout.el

index 6b32c055839941ac032bf8911aed0620082dbcb5..c9232401133edf10fcbc50a7568ae9daf932d080 100644 (file)
@@ -50,6 +50,8 @@ Set `rmail-default-rmail-file' to this name as well as returning it."
            ;; Suggest a file based on a pattern match.
            (while (and tail (not answer))
              (save-excursion
+               (if (eq major-mode 'rmail-summary-mode)
+                   (set-buffer rmail-buffer)) 
                (goto-char (point-min))
                (if (re-search-forward (car (car tail)) nil t)
                    (setq answer (eval (cdr (car tail)))))