From edf54a398b81985f972a50dfca0f40e990292207 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 Sep 2022 13:04:24 +0200 Subject: [PATCH] tweak(profiles): suppress profile init compilation warnings It's not useful information, but should still be emitted if debug mode is on. --- lisp/doom-profiles.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/doom-profiles.el b/lisp/doom-profiles.el index 757ae8fc5..66812c57e 100644 --- a/lisp/doom-profiles.el +++ b/lisp/doom-profiles.el @@ -224,7 +224,8 @@ is non-nil, refresh the cache." (user-error "To be a bootloader, Doom must be installed in ~/.config/emacs or ~/.emacs.d")))))) :mode #o600 :printfn #'pp) - (byte-compile-file file)) + (let ((byte-compile-warnings (if init-file-debug byte-compile-warnings))) + (print-group! (byte-compile-file file)))) (defun doom-profile-p (profile-name) "Return t if PROFILE-NAME is a valid and existing profile."