doom-info: use &nopath prefix for 404'd modules

The alternative is a stringp error.
This commit is contained in:
Henrik Lissner 2020-09-02 14:22:45 -04:00
parent b0cd0e5efe
commit ae3a2fa8c2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -157,8 +157,10 @@ ready to be pasted in a bug report on github."
collect
(let* ((flags (doom-module-get cat (cdr key) :flags))
(path (doom-module-get cat (cdr key) :path))
(module (append (if (file-in-directory-p path doom-private-dir)
(list '&user))
(module (append (cond ((null path)
(list '&nopath))
((file-in-directory-p path doom-private-dir)
(list '&user)))
(if flags
`(,(cdr key) ,@flags)
(list (cdr key))))))