From 0b78fe3fbbc12c88433f7a7057d94df2c1c68a80 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Sat, 28 Nov 2020 21:44:46 -0800 Subject: [PATCH] Improve byte compilation message When compiling standalone files such as `init.el`, instead of saying that it belongs to module `nil nil`, say that these files are standalone. Signed-off-by: Rudi Grinberg --- core/cli/byte-compile.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/cli/byte-compile.el b/core/cli/byte-compile.el index 9b8ccd356..6857a29d8 100644 --- a/core/cli/byte-compile.el +++ b/core/cli/byte-compile.el @@ -146,8 +146,13 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files." (pcase (if (not (doom-file-cookie-p target "if" t)) 'no-byte-compile (unless (equal last-module (car module-files)) - (print! (success "(% 3d/%d) Compiling %s %s module...") - i total-modules (caar module-files) (cdar module-files)) + (print! (success "(% 3d/%d) Compiling %s") + i total-modules + (if-let (m (caar module-files)) + (format "%s %s module..." m (cdar module-files)) + (format "%d stand alone elisp files..." + (length (cdr module-files)))) + (caar module-files) (cdar module-files)) (setq last-module (car module-files))) (if verbose-p (byte-compile-file target)