Only crawl autoloads from module once
If you have a private module with the same name as a built-in module, doom-module-load-path returns two entries for that module, causing our autoloads scanner to scan it twice.
This commit is contained in:
parent
0b31c0aa36
commit
9edd4f26f3
1 changed files with 8 additions and 7 deletions
|
@ -239,13 +239,14 @@ those directories. The first returned path is always `doom-private-dir'."
|
|||
(append (list doom-private-dir)
|
||||
(if module-dirs
|
||||
(mapcar (lambda (m) (doom-module-locate-path (car m) (cdr m)))
|
||||
(doom-files-in (if (listp module-dirs)
|
||||
module-dirs
|
||||
doom-modules-dirs)
|
||||
:map #'doom-module-from-path
|
||||
:type 'dirs
|
||||
:mindepth 1
|
||||
:depth 1))
|
||||
(delete-dups
|
||||
(doom-files-in (if (listp module-dirs)
|
||||
module-dirs
|
||||
doom-modules-dirs)
|
||||
:map #'doom-module-from-path
|
||||
:type 'dirs
|
||||
:mindepth 1
|
||||
:depth 1)))
|
||||
(cl-loop for plist being the hash-values of doom-modules
|
||||
collect (plist-get plist :path)))
|
||||
nil))
|
||||
|
|
Loading…
Reference in a new issue