]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-buffer-visiting): Don't check buffer-file-number
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 Apr 1994 02:27:36 +0000 (02:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 Apr 1994 02:27:36 +0000 (02:27 +0000)
unless buffer-file-name is non-nil.

lisp/files.el

index 2b3590176f3cf040c19973deed27a8cb00329b42..f36dc409e467b4b6be424e0f70777cb838f814d8 100644 (file)
@@ -596,7 +596,8 @@ If there is no such live buffer, return nil."
               (while (and (not found) list)
                 (save-excursion
                   (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
                            ;; still belongs to its file.
                            (file-exists-p buffer-file-name)