Commit d49ab5a0 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(find-buffer-visiting): Don't check buffer-file-number

unless buffer-file-name is non-nil.
parent cda2316f
...@@ -596,7 +596,8 @@ If there is no such live buffer, return nil." ...@@ -596,7 +596,8 @@ If there is no such live buffer, return nil."
(while (and (not found) list) (while (and (not found) list)
(save-excursion (save-excursion
(set-buffer (car list)) (set-buffer (car list))
(if (and (equal buffer-file-number number) (if (and buffer-file-name
(equal buffer-file-number number)
;; Verify this buffer's file number ;; Verify this buffer's file number
;; still belongs to its file. ;; still belongs to its file.
(file-exists-p buffer-file-name) (file-exists-p buffer-file-name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment