From 1af08011df5944b393158d5e1311be928ae8b57f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 20 Mar 2023 20:15:46 -0400 Subject: [PATCH] fix(lib): doom/help-modules: omit nil in module list Some psuedo module categories (like :core and :user) don't have a module component. Rather than display them as ':core nil' or ':user nil' in module listings (like doom/help-modules), omit the nil entirely. --- lisp/lib/help.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/help.el b/lisp/lib/help.el index a5dc7018b..c5f4ca115 100644 --- a/lisp/lib/help.el +++ b/lisp/lib/help.el @@ -345,7 +345,7 @@ without needing to check if they are available." (cl-loop for (cat . mod) in (doom-module-list 'all) for readme-path = (or (doom-module-locate-path cat mod "README.org") (doom-module-locate-path cat mod)) - for format = (format "%s %s" cat mod) + for format = (if mod (format "%s %s" cat mod) (format "%s" cat)) if (doom-module-p cat mod) collect (list format readme-path) else if (and cat mod)