initialize to nil for windows-nt.
(find-buffer-visiting): Skip search for buffer based
on buffer-file-number if these are not unique.
(make-variable-buffer-local 'buffer-file-number)
(put 'buffer-file-number 'permanent-local t)
+(defvar buffer-file-numbers-unique (not (memq system-type '(windows-nt)))
+ "Non-nil means that buffer-file-number uniquely identifies files.")
+
(defconst file-precious-flag nil
"*Non-nil means protect against I/O errors while saving files.
Some modes set this non-nil in particular buffers.
found)
(let ((number (nthcdr 10 (file-attributes truename)))
(list (buffer-list)) found)
- (and number
+ (and buffer-file-numbers-unique
+ number
(while (and (not found) list)
(save-excursion
(set-buffer (car list))