From 35bb87edebc933dec6af51e50d4748e47f3cf33e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 5 Dec 2019 14:52:46 -0500 Subject: [PATCH] Fix unrelated errors when missing autoloads files It should warn the user that the autoloads files are missing and need to be generated, but instead displayed an unrelated error. --- core/core.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core.el b/core/core.el index 91dc7dff0..98c806e26 100644 --- a/core/core.el +++ b/core/core.el @@ -510,6 +510,12 @@ to least)." (require 'core-packages) (doom-initialize-packages))) + ;; Eagerly load these libraries because we may be in a session that hasn't been + ;; fully initialized (e.g. where autoloads files haven't been generated or + ;; `load-path' populated). + (mapc (doom-rpartial #'load nil (not doom-debug-mode) 'nosuffix) + (file-expand-wildcards (concat doom-core-dir "autoload/*.el"))) + ;; Create all our core directories to quell file errors (dolist (dir (list doom-local-dir doom-etc-dir