(rmail): Use find-buffer-visiting instead of
get-file-buffer to check for rmail buffer existence.
This commit is contained in:
parent
40189bd6e9
commit
85eba33954
1 changed files with 3 additions and 1 deletions
|
@ -625,7 +625,9 @@ If `rmail-display-summary' is non-nil, make a summary for this RMAIL file."
|
|||
(list (read-file-name "Run rmail on RMAIL file: "))))
|
||||
(rmail-require-mime-maybe)
|
||||
(let* ((file-name (expand-file-name (or file-name-arg rmail-file-name)))
|
||||
(existed (get-file-buffer file-name))
|
||||
;; Use find-buffer-visiting, not get-file-buffer, for those users
|
||||
;; who have find-file-visit-truename set to t.
|
||||
(existed (find-buffer-visiting file-name))
|
||||
;; This binding is necessary because we must decide if we
|
||||
;; need code conversion while the buffer is unibyte
|
||||
;; (i.e. enable-multibyte-characters is nil).
|
||||
|
|
Loading…
Add table
Reference in a new issue