aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2025-07-16 09:45:18 -0700
committerPaul Eggert2025-07-16 11:45:23 -0700
commitb282cb98e498ded876b87e5e48fe74b8c45156ea (patch)
treef8f88d1c009464aa1c2c139258ea30eb14afe46d
parent2074951c2adff43be49822c344d6cf3fee2e29a5 (diff)
downloademacs-b282cb98e498ded876b87e5e48fe74b8c45156ea.tar.gz
emacs-b282cb98e498ded876b87e5e48fe74b8c45156ea.zip
Avoid syscall in dir-locals--all-files
* lisp/files.el (dir-locals--all-files): Omit an unnecessary call to file-directory-p.
-rw-r--r--lisp/files.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index b258067a503..cca4455027c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4786,10 +4786,7 @@ those in the first."
4786 (list file-2 file-1))) 4786 (list file-2 file-1)))
4787 (when (and f 4787 (when (and f
4788 (file-readable-p f) 4788 (file-readable-p f)
4789 ;; FIXME: Aren't file-regular-p and 4789 (file-regular-p f))
4790 ;; file-directory-p mutually exclusive?
4791 (file-regular-p f)
4792 (not (file-directory-p f)))
4793 (push f out))) 4790 (push f out)))
4794 out))) 4791 out)))
4795 4792