; * lisp/files.el (find-buffer-visiting): Fix whitespace of last change.

This commit is contained in:
Eli Zaretskii 2023-12-30 13:04:58 +02:00
parent 46a93aa7b0
commit 06f2bb9c24

View file

@ -2221,14 +2221,16 @@ If there is no such live buffer, return nil."
(and buffer-file-numbers-unique
(car-safe number) ;Make sure the inode is not just nil.
(let* ((buf (find-buffer 'buffer-file-number number))
(buf-file-name (and buf (buffer-local-value 'buffer-file-name buf))))
(buf-file-name
(and buf (buffer-local-value 'buffer-file-name buf))))
(when (and buf-file-name
;; Verify this buffer's file number
;; still belongs to its file.
(file-exists-p buf-file-name)
(equal
(file-attributes (buffer-local-value 'buffer-file-truename buf))
attributes)
(equal (file-attributes
(buffer-local-value
'buffer-file-truename buf))
attributes)
(or (not predicate)
(funcall predicate buf)))
buf))))))))