Prevent kill-emacs-hook running after byte-compile
Prevents harmless errors after byte-compiling, or recentf needlessly saving its cache to file.
This commit is contained in:
parent
7a98919597
commit
e069139b1c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
;; Assemble el files we want to compile; taking into account that
|
||||||
;; MODULES may be a list of MODULE/SUBMODULE strings from the command
|
;; MODULES may be a list of MODULE/SUBMODULE strings from the command
|
||||||
;; line.
|
;; 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
|
(unless target-files
|
||||||
(if targets
|
(if targets
|
||||||
(message "Couldn't find any valid targets")
|
(message "Couldn't find any valid targets")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue