From a44e9153d32f023614cdd2e898e6cd6bdbf35457 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 8 Sep 2019 20:52:30 -0400 Subject: [PATCH] Fix #1764: 'doom autoload' generating broken autoloads.pkg.el Due to missing straight state that is properly initialized for 'doom refresh' (by doom-packages-install), but not for 'doom autoloads'. --- core/cli/autoloads.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/cli/autoloads.el b/core/cli/autoloads.el index b28fed6c1..eb164c7b9 100644 --- a/core/cli/autoloads.el +++ b/core/cli/autoloads.el @@ -27,6 +27,8 @@ byte-compiles `doom-autoload-file', as well as `doom-package-autoload-file' It also caches `load-path', `Info-directory-list', `doom-disabled-packages', `package-activated-list' and `auto-mode-alist'." + ;; REVIEW Can we avoid calling `straight-check-all' everywhere? + (straight-check-all) (doom-reload-autoloads nil 'force))