From 4a2cbc903d898dbcf0502beb7641ede801498d05 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 3 Oct 2022 13:35:02 +0200 Subject: [PATCH] fix(lib): doom-module-locate-path: cannot locate exact files One such casualty of this bug is that 'SPC h d m' (doom/help-modules) could not find README.org files for disabled modules. --- lisp/doom-modules.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-modules.el b/lisp/doom-modules.el index 0ef5b0831..fa7f4ccbc 100644 --- a/lisp/doom-modules.el +++ b/lisp/doom-modules.el @@ -310,7 +310,7 @@ returns nil, otherwise an absolute path." (if file ;; PERF: locate-file-internal is a little faster for finding files, ;; but its interface for finding directories is clumsy. - (locate-file-internal path doom-modules-dirs '(".elc" ".el")) + (locate-file-internal path doom-modules-dirs '("" ".elc" ".el")) (cl-loop for default-directory in doom-modules-dirs if (file-exists-p path) return (expand-file-name path)))))))