mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(lib): incorrect &user markers in doom-info
M-x doom/info marks modules that live in $DOOMDIR with &user, but what if the user has moved their ~/.emacs.d into $DOOMDIR? As this seems to happen often with Chemacs users, I've made this check a little more procise.
This commit is contained in:
@ -182,13 +182,15 @@ ready to be pasted in a bug report on github."
|
|||||||
collect
|
collect
|
||||||
(let* ((flags (doom-module-get cat (cdr key) :flags))
|
(let* ((flags (doom-module-get cat (cdr key) :flags))
|
||||||
(path (doom-module-get cat (cdr key) :path))
|
(path (doom-module-get cat (cdr key) :path))
|
||||||
(module (append (cond ((null path)
|
(module
|
||||||
(list '&nopath))
|
(append
|
||||||
((file-in-directory-p path doom-private-dir)
|
(cond ((null path)
|
||||||
(list '&user)))
|
(list '&nopath))
|
||||||
(if flags
|
((not (file-in-directory-p path doom-modules-dir))
|
||||||
`(,(cdr key) ,@flags)
|
(list '&user)))
|
||||||
(list (cdr key))))))
|
(if flags
|
||||||
|
`(,(cdr key) ,@flags)
|
||||||
|
(list (cdr key))))))
|
||||||
(if (= (length module) 1)
|
(if (= (length module) 1)
|
||||||
(car module)
|
(car module)
|
||||||
module)))
|
module)))
|
||||||
|
Reference in New Issue
Block a user