Commit 4269ed64 authored by Roland McGrath's avatar Roland McGrath
Browse files

(find-file-noselect): Never set SAME-TRUENAME to a buffer whose

buffer-file-name is nil.
parent a292c99f
......@@ -468,7 +468,8 @@ The buffer is not selected, just returned to the caller."
(while (and (not found) list)
(save-excursion
(set-buffer (car list))
(if (string= buffer-file-truename truename)
(if (and buffer-file-name
(string= buffer-file-truename truename))
(setq found (car list))))
(setq list (cdr list)))
found)))
......
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