Don't prompt when byte-compiling plugins

The warning only applies to full byte-compilation of your config.
This commit is contained in:
Henrik Lissner 2018-06-04 15:03:27 +02:00
parent c96086d426
commit 8762129e8d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -294,6 +294,10 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(intern (match-string 2 module)))
targets))))
(cl-block 'byte-compile
;; If we're just here to byte-compile our plugins, we're done!
(and (not modules)
compile-plugins-p
(cl-return-from 'byte-compile t))
(unless (or (equal modules '(":core"))
recompile-p)
(unless (and (not doom-auto-accept)
@ -308,10 +312,6 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
"Byte-compile anyway?")))
(message "Aborting.")
(cl-return-from 'byte-compile)))
;; If we're just here to byte-compile our plugins, we're done!
(and (not modules)
compile-plugins-p
(cl-return-from 'byte-compile t))
(unless recompile-p
(doom//clean-byte-compiled-files))
(unless targets