Fix doom-module-pairs returning pairs in arbitrary order
This causes errors because of arbitrary module load order. This happens in Emacs 25.x, because hash-table-keys there uses maphash, while in Emacs 26+ it uses cl-loop.
This commit is contained in:
parent
e1e658145e
commit
9924a43506
1 changed files with 2 additions and 1 deletions
|
@ -276,7 +276,8 @@ is sorted by order of insertion unless ALL-P is non-nil. If ALL-P is non-nil,
|
||||||
include all modules, enabled or otherwise."
|
include all modules, enabled or otherwise."
|
||||||
(unless (hash-table-p doom-modules)
|
(unless (hash-table-p doom-modules)
|
||||||
(error "doom-modules is uninitialized"))
|
(error "doom-modules is uninitialized"))
|
||||||
(hash-table-keys doom-modules))
|
(cl-loop for key being the hash-keys of doom-modules
|
||||||
|
collect key))
|
||||||
|
|
||||||
(defun doom-packages--display-benchmark ()
|
(defun doom-packages--display-benchmark ()
|
||||||
(message "Doom loaded %s packages across %d modules in %.03fs"
|
(message "Doom loaded %s packages across %d modules in %.03fs"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue