Fix autoloads load order
Trying to start doom-example after enabling `scheme +guile` confirmed we have at least one package (geiser-guile) that requires its dependency's autoloads are loaded before its own are. Fix it by assuming `package-activated-list` is in reverse order of activation. That behavior is (as far as I could find) not documented, but sufficiently obvious it seems safe enough to rely on it.
This commit is contained in:
parent
9fea22f0c5
commit
d05ecd9b19
1 changed files with 11 additions and 3 deletions
10
cli2.el
10
cli2.el
|
|
@ -39,9 +39,17 @@ it. Just skip it entirely."
|
|||
(mapcar (lambda (s)
|
||||
(format "%s.el"
|
||||
(package--autoloads-file-name (package-get-descriptor s))))
|
||||
;; Packages are (currently...) pushed onto package-activated-list as
|
||||
;; they are activated. Reverse the list here so packages activated
|
||||
;; first get their autoloads loaded first.
|
||||
;;
|
||||
;; An example package that requires this is geiser-guile: it calls
|
||||
;; geiser-activate-implementation from autoloads, requiring geiser's
|
||||
;; autoloads are loaded first.
|
||||
(nreverse
|
||||
(seq-difference package-activated-list
|
||||
(mapcar #'intern-soft
|
||||
doom-autoloads-excluded-packages)))
|
||||
doom-autoloads-excluded-packages))))
|
||||
doom-autoloads-excluded-files
|
||||
'literal))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue