From 64497fb8cc62c9c8302a20d54fc52e3113b0983e Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 18 Nov 2021 22:06:50 -0500 Subject: [PATCH] * lisp/files.el (file-has-changed-p): Index the cache with absolute file names --- lisp/files.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/files.el b/lisp/files.el index 49bf06bfc1b..1979f1bbe3d 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -6224,8 +6224,7 @@ of `file-has-changed-p' always returns non-nil when FILE exists. The optional argument TAG, which must be a symbol, can be used to limit the comparison to invocations with identical tags; it can be the symbol of the calling function, for example." - (let* (;; FIXME: Shall we use `file-truename'? - (file (directory-file-name file)) + (let* ((file (directory-file-name (expand-file-name file))) (remote-file-name-inhibit-cache t) (fileattr (file-attributes file 'integer)) (attr (and fileattr -- 2.39.5