changeset 2521:63c5ea74bbb9

(find-file-noselect): Verify other buffers' file numbers are still valid.
author Richard M. Stallman <rms@gnu.org>
date Sun, 11 Apr 1993 21:22:35 +0000
parents ef643dbb7d40
children c93900809245
files lisp/files.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))))