mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 20:37:38 +00:00
(rmail-output-to-rmail-file):
Use find-buffer-visiting instead of get-file-buffer.
This commit is contained in:
parent
d607b17dbe
commit
80abd2a8dc
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ starting with the current one. Deleted messages are skipped and don't count."
|
|||
(rmail-output file-name count)
|
||||
(rmail-maybe-set-message-counters)
|
||||
(setq file-name (abbreviate-file-name file-name))
|
||||
(or (get-file-buffer file-name)
|
||||
(or (find-buffer-visiting file-name)
|
||||
(file-exists-p file-name)
|
||||
(if (yes-or-no-p
|
||||
(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."
|
|||
(widen)
|
||||
;; Decide whether to append to a file or to an Emacs buffer.
|
||||
(save-excursion
|
||||
(let ((buf (get-file-buffer file-name))
|
||||
(let ((buf (find-buffer-visiting file-name))
|
||||
(cur (current-buffer))
|
||||
(beg (1+ (rmail-msgbeg rmail-current-message)))
|
||||
(end (1+ (rmail-msgend rmail-current-message))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue