From 6480a45f848e7b8d9409dbc1abdf79662ff751aa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 1 Jun 2018 17:06:03 +0200 Subject: [PATCH] Fix reload-package-autoloads outdated detection The package autoloads generator wouldn't take module packages.el files into consideration when detecting whether the autoloads file should be regenerated. Now it does. --- core/autoload/modules.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/autoload/modules.el b/core/autoload/modules.el index 303baa235..348cbc8d2 100644 --- a/core/autoload/modules.el +++ b/core/autoload/modules.el @@ -197,7 +197,12 @@ This should be run whenever your `doom!' block or update your packages." (interactive) (if (and (not force-p) (file-exists-p doom-package-autoload-file) - (not (file-newer-than-file-p package-user-dir doom-package-autoload-file))) + (not (file-newer-than-file-p package-user-dir doom-package-autoload-file)) + (not (ignore-errors + (cl-loop for key being the hash-keys of (doom-module-table) + for path = (doom-module-path (car key) (cdr key) "packages.el") + if (file-newer-than-file-p path doom-package-autoload-file) + return t)))) (ignore (print! (green "Doom package autoloads is up-to-date")) (doom-initialize-autoloads doom-package-autoload-file)) (doom-delete-autoloads-file doom-package-autoload-file)