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

(find-file-noselect): Verify other buffers' file numbers are still valid.

parent e407986c
......@@ -480,7 +480,11 @@ The buffer is not selected, just returned to the caller."
(while (and (not found) list)
(set-buffer (car list))
(if (equal buffer-file-number number)
(if (and (equal buffer-file-number number)
;; Verify this buffer's file number
;; still belongs to its file.
(file-exists-p buffer-file-name)
(equal (nthcdr 10 (file-attributes buffer-file-name)) number))
(setq found (car list))))
(setq list (cdr list)))
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