From 8762129e8d83094c2c7244632f51799a88fb3d18 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 4 Jun 2018 15:03:27 +0200 Subject: [PATCH] Don't prompt when byte-compiling plugins The warning only applies to full byte-compilation of your config. --- core/autoload/modules.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/autoload/modules.el b/core/autoload/modules.el index 36af02fb1..459f31994 100644 --- a/core/autoload/modules.el +++ b/core/autoload/modules.el @@ -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