# HG changeset patch # User Richard M. Stallman # Date 734563355 0 # Node ID 63c5ea74bbb9760405467f785b8b63e9d7a8b100 # Parent ef643dbb7d40b5c920d03aa46d977d6ec1505390 (find-file-noselect): Verify other buffers' file numbers are still valid. diff -r ef643dbb7d40 -r 63c5ea74bbb9 lisp/files.el --- a/lisp/files.el Sun Apr 11 04:02:23 1993 +0000 +++ b/lisp/files.el Sun Apr 11 21:22:35 1993 +0000 @@ -480,7 +480,11 @@ (while (and (not found) list) (save-excursion (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))) found))))