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:
Henrik Lissner
2017-12-23 03:26:27 -05:00
parent e1e658145e
commit 9924a43506

View File

@ -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."
(unless (hash-table-p doom-modules)
(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 ()
(message "Doom loaded %s packages across %d modules in %.03fs"