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.
This commit is contained in:
parent
f93003a9a2
commit
4a2cbc903d
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ returns nil, otherwise an absolute path."
|
||||||
(if file
|
(if file
|
||||||
;; PERF: locate-file-internal is a little faster for finding files,
|
;; PERF: locate-file-internal is a little faster for finding files,
|
||||||
;; but its interface for finding directories is clumsy.
|
;; 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
|
(cl-loop for default-directory in doom-modules-dirs
|
||||||
if (file-exists-p path)
|
if (file-exists-p path)
|
||||||
return (expand-file-name path)))))))
|
return (expand-file-name path)))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue