aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-05-08 11:18:20 +0000
committerGerd Moellmann2001-05-08 11:18:20 +0000
commitc96b208d6dd74a7d4011aae1b3e4881b74ca0842 (patch)
tree4e44704c05c474e2042c0e5f898345447c4b18f4
parenteba7fdff4bf1df07e233c146d478b41360d5658b (diff)
downloademacs-c96b208d6dd74a7d4011aae1b3e4881b74ca0842.tar.gz
emacs-c96b208d6dd74a7d4011aae1b3e4881b74ca0842.zip
(rmail-output-read-rmail-file-name): Be sure to
set-buffer to the Rmail buffer. (rmail-output-to-rmail-file): Likewise. (rmail-output): Likewise.
-rw-r--r--lisp/mail/rmailout.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el
index d3fd35916cd..9cf9a8f15e7 100644
--- a/lisp/mail/rmailout.el
+++ b/lisp/mail/rmailout.el
@@ -1,6 +1,6 @@
1;;; rmailout.el --- "RMAIL" mail reader for Emacs: output message to a file. 1;;; rmailout.el --- "RMAIL" mail reader for Emacs: output message to a file.
2 2
3;; Copyright (C) 1985, 1987, 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1987, 1993, 1994, 2001 Free Software Foundation, Inc.
4 4
5;; Maintainer: FSF 5;; Maintainer: FSF
6;; Keywords: mail 6;; Keywords: mail
@@ -50,8 +50,7 @@ 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) 53 (set-buffer rmail-buffer)
54 (set-buffer rmail-buffer))
55 (goto-char (point-min)) 54 (goto-char (point-min))
56 (if (re-search-forward (car (car tail)) nil t) 55 (if (re-search-forward (car (car tail)) nil t)
57 (setq answer (eval (cdr (car tail))))) 56 (setq answer (eval (cdr (car tail)))))
@@ -156,6 +155,7 @@ mesasge up instead of moving forward to the next non-deleted message."
156 (let (redelete) 155 (let (redelete)
157 (unwind-protect 156 (unwind-protect
158 (progn 157 (progn
158 (set-buffer rmail-buffer)
159 ;; Temporarily turn off Deleted attribute. 159 ;; Temporarily turn off Deleted attribute.
160 ;; Do this outside the save-restriction, since it would 160 ;; Do this outside the save-restriction, since it would
161 ;; shift the place in the buffer where the visible text starts. 161 ;; shift the place in the buffer where the visible text starts.
@@ -287,6 +287,7 @@ The optional fourth argument FROM-GNUS is set when called from GNUS."
287 (file-name-directory rmail-default-file)))) 287 (file-name-directory rmail-default-file))))
288 (if (and (file-readable-p file-name) (mail-file-babyl-p file-name)) 288 (if (and (file-readable-p file-name) (mail-file-babyl-p file-name))
289 (rmail-output-to-rmail-file file-name count) 289 (rmail-output-to-rmail-file file-name count)
290 (set-buffer rmail-buffer)
290 (let ((orig-count count) 291 (let ((orig-count count)
291 (rmailbuf (current-buffer)) 292 (rmailbuf (current-buffer))
292 (case-fold-search t) 293 (case-fold-search t)