From f14e7907f63bfade786d930dcbe452069cab7587 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 5 Feb 2024 15:22:31 -0500 Subject: [PATCH] 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: 3bea4f66a844 --- lisp/doom-modules.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/doom-modules.el b/lisp/doom-modules.el index 24e8f70f8..bafce77a3 100644 --- a/lisp/doom-modules.el +++ b/lisp/doom-modules.el @@ -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))