From c3734603f5264f592e09ec4cfc0bf5c2bc5a9b2d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Jan 2020 18:15:56 -0500 Subject: [PATCH] Don't strip out vars from doom module autoloads Doom's autoloads generator will strip out forms that modify variables in doom-autoload-cached-vars (load-path, auto-mode-alist, etc). These are undesireable in package autoloads, but may be desireable in Doom module autoloads. --- core/cli/autoloads.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cli/autoloads.el b/core/cli/autoloads.el index e7373ed10..92ef89fe2 100644 --- a/core/cli/autoloads.el +++ b/core/cli/autoloads.el @@ -27,7 +27,8 @@ one wants that.") (defun doom-cli-reload-core-autoloads (&optional file) (print! (start "(Re)generating core autoloads...")) (print-group! - (let ((file (or file doom-autoload-file))) + (let ((file (or file doom-autoload-file)) + doom-autoload-cached-vars) (cl-check-type file string) (and (print! (start "Generating core autoloads...")) (doom-cli--write-autoloads