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 <me@rgrinberg.com>
This commit is contained in:
Rudi Grinberg 2020-11-28 21:44:46 -08:00
parent 7febca1988
commit 0b78fe3fbb

View file

@ -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)) (pcase (if (not (doom-file-cookie-p target "if" t))
'no-byte-compile 'no-byte-compile
(unless (equal last-module (car module-files)) (unless (equal last-module (car module-files))
(print! (success "(% 3d/%d) Compiling %s %s module...") (print! (success "(% 3d/%d) Compiling %s")
i total-modules (caar module-files) (cdar module-files)) 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))) (setq last-module (car module-files)))
(if verbose-p (if verbose-p
(byte-compile-file target) (byte-compile-file target)