Fix interactive usage of doom//byte-compile-core

This commit is contained in:
Henrik Lissner 2017-12-31 18:28:42 -05:00
parent 9628b21d22
commit 79ca2b2911
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -680,7 +680,11 @@ likely change core files directly).
If RECOMPILE-P is non-nil, only recompile out-of-date core files."
(interactive "P")
(doom//byte-compile (list "core") recompile-p))
(if (not noninteractive)
;; This is done in another instance to protect the current session's
;; state. `doom-initialize-packages' will have side effects otherwise.
(doom-packages--async-run 'doom//byte-compile-core)
(doom//byte-compile (list "core") recompile-p)))
(defun doom//byte-recompile-plugins ()
"Recompile all installed plugins. If you're getting odd errors after upgrading