fix: doom-module-locate-paths: remove file-name-sans-extension call

This was preventing its usage in :lang emacs-lisp from finding demos.org
files in modules.

Amend: 3bea4f66a8
This commit is contained in:
Henrik Lissner 2024-02-05 15:22:31 -05:00
parent 343c3a82b0
commit f14e7907f6
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -335,8 +335,7 @@ returns nil, otherwise an absolute path."
MODULE-LIST is a list of cons cells (GROUP . NAME). See `doom-module-list' for
an example."
(cl-loop with file = (file-name-sans-extension file)
for (group . name) in module-list
(cl-loop for (group . name) in (or module-list (doom-module-list))
if (doom-module-locate-path group name file)
collect it))