From e069139b1c30c716db6af9cf8a649d7945c25f6a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 Jun 2018 20:51:14 +0200 Subject: [PATCH] Prevent kill-emacs-hook running after byte-compile Prevents harmless errors after byte-compiling, or recentf needlessly saving its cache to file. --- core/core-dispatcher.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-dispatcher.el b/core/core-dispatcher.el index c086be793..ce980ad42 100644 --- a/core/core-dispatcher.el +++ b/core/core-dispatcher.el @@ -739,7 +739,9 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files." ;; Assemble el files we want to compile; taking into account that ;; MODULES may be a list of MODULE/SUBMODULE strings from the command ;; line. - (let ((target-files (doom-files-in targets :depth 1 :match "\\.el$"))) + (let ((target-files (doom-files-in targets :depth 1 :match "\\.el$")) + (load-path load-path) + kill-emacs-hook kill-buffer-query-functions) (unless target-files (if targets (message "Couldn't find any valid targets")