diff options
| author | Richard M. Stallman | 1997-03-30 22:23:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-30 22:23:58 +0000 |
| commit | 80abd2a8dca5dd5b49e28551d5eee6f837220bf2 (patch) | |
| tree | 644a25a9a9f6b437f19530e86789929a9c815caf | |
| parent | d607b17dbe34b7ca54c2af4e04d0e66345ba7dd3 (diff) | |
| download | emacs-80abd2a8dca5dd5b49e28551d5eee6f837220bf2.tar.gz emacs-80abd2a8dca5dd5b49e28551d5eee6f837220bf2.zip | |
(rmail-output-to-rmail-file):
Use find-buffer-visiting instead of get-file-buffer.
| -rw-r--r-- | lisp/mail/rmailout.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 533283d8884..a82a9649afb 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -87,7 +87,7 @@ starting with the current one. Deleted messages are skipped and don't count." | |||
| 87 | (rmail-output file-name count) | 87 | (rmail-output file-name count) |
| 88 | (rmail-maybe-set-message-counters) | 88 | (rmail-maybe-set-message-counters) |
| 89 | (setq file-name (abbreviate-file-name file-name)) | 89 | (setq file-name (abbreviate-file-name file-name)) |
| 90 | (or (get-file-buffer file-name) | 90 | (or (find-buffer-visiting file-name) |
| 91 | (file-exists-p file-name) | 91 | (file-exists-p file-name) |
| 92 | (if (yes-or-no-p | 92 | (if (yes-or-no-p |
| 93 | (concat "\"" file-name "\" does not exist, create it? ")) | 93 | (concat "\"" file-name "\" does not exist, create it? ")) |
| @@ -113,7 +113,7 @@ starting with the current one. Deleted messages are skipped and don't count." | |||
| 113 | (widen) | 113 | (widen) |
| 114 | ;; Decide whether to append to a file or to an Emacs buffer. | 114 | ;; Decide whether to append to a file or to an Emacs buffer. |
| 115 | (save-excursion | 115 | (save-excursion |
| 116 | (let ((buf (get-file-buffer file-name)) | 116 | (let ((buf (find-buffer-visiting file-name)) |
| 117 | (cur (current-buffer)) | 117 | (cur (current-buffer)) |
| 118 | (beg (1+ (rmail-msgbeg rmail-current-message))) | 118 | (beg (1+ (rmail-msgbeg rmail-current-message))) |
| 119 | (end (1+ (rmail-msgend rmail-current-message)))) | 119 | (end (1+ (rmail-msgend rmail-current-message)))) |