aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-12-30 13:04:58 +0200
committerEli Zaretskii2023-12-30 13:04:58 +0200
commit06f2bb9c24104b87b458506f3bdee1aaba7bbf97 (patch)
tree7c9f9d32c4f7d948d2808b72899c487d6357b524
parent46a93aa7b0753e7e1ba7c557709b2680ebb24fde (diff)
downloademacs-06f2bb9c24104b87b458506f3bdee1aaba7bbf97.tar.gz
emacs-06f2bb9c24104b87b458506f3bdee1aaba7bbf97.zip
; * lisp/files.el (find-buffer-visiting): Fix whitespace of last change.
-rw-r--r--lisp/files.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 78e2bca3cff..006163823ae 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2221,14 +2221,16 @@ If there is no such live buffer, return nil."
2221 (and buffer-file-numbers-unique 2221 (and buffer-file-numbers-unique
2222 (car-safe number) ;Make sure the inode is not just nil. 2222 (car-safe number) ;Make sure the inode is not just nil.
2223 (let* ((buf (find-buffer 'buffer-file-number number)) 2223 (let* ((buf (find-buffer 'buffer-file-number number))
2224 (buf-file-name (and buf (buffer-local-value 'buffer-file-name buf)))) 2224 (buf-file-name
2225 (and buf (buffer-local-value 'buffer-file-name buf))))
2225 (when (and buf-file-name 2226 (when (and buf-file-name
2226 ;; Verify this buffer's file number 2227 ;; Verify this buffer's file number
2227 ;; still belongs to its file. 2228 ;; still belongs to its file.
2228 (file-exists-p buf-file-name) 2229 (file-exists-p buf-file-name)
2229 (equal 2230 (equal (file-attributes
2230 (file-attributes (buffer-local-value 'buffer-file-truename buf)) 2231 (buffer-local-value
2231 attributes) 2232 'buffer-file-truename buf))
2233 attributes)
2232 (or (not predicate) 2234 (or (not predicate)
2233 (funcall predicate buf))) 2235 (funcall predicate buf)))
2234 buf)))))))) 2236 buf))))))))