Merge pull request #4334 from rgrinberg/byte-compiler-improve-message

Improve byte compilation message
This commit is contained in:
Henrik Lissner 2020-11-29 01:28:51 -05:00 committed by GitHub
commit a57a18e4d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))
'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)