Update modules library: message! => print!

This commit is contained in:
Henrik Lissner 2018-05-20 12:14:56 +02:00
parent b82ef2cee6
commit 5c101f1909
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -244,16 +244,16 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(abbreviate-file-name target)))) (abbreviate-file-name target))))
(cl-incf (cl-incf
(cond ((eq result 'no-byte-compile) (cond ((eq result 'no-byte-compile)
(message! (dark (white "⚠ Ignored %s" short-name))) (print! (dark (white "⚠ Ignored %s" short-name)))
total-noop) total-noop)
((null result) ((null result)
(message! (red "✕ Failed to compile %s" short-name)) (print! (red "✕ Failed to compile %s" short-name))
total-fail) total-fail)
(t (t
(message! (green "✓ Compiled %s" short-name)) (print! (green "✓ Compiled %s" short-name))
(quiet! (load target t t)) (quiet! (load target t t))
total-ok)))))) total-ok))))))
(message! (print!
(bold (bold
(color (if (= total-fail 0) 'green 'red) (color (if (= total-fail 0) 'green 'red)
"%s %d/%d file(s) (%d ignored)" "%s %d/%d file(s) (%d ignored)"
@ -261,12 +261,12 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
total-ok (- (length compile-targets) total-noop) total-ok (- (length compile-targets) total-noop)
total-noop)))) total-noop))))
(error (error
(message! (red "\n%%s\n\n%%s\n\n%%s") (print! (red "\n%%s\n\n%%s\n\n%%s")
"There were breaking errors." "There were breaking errors."
(error-message-string ex) (error-message-string ex)
"Reverting changes...") "Reverting changes...")
(quiet! (doom//clean-byte-compiled-files)) (quiet! (doom//clean-byte-compiled-files))
(message! (green "Finished (nothing was byte-compiled)"))))))))) (print! (green "Finished (nothing was byte-compiled)")))))))))
;;;###autoload ;;;###autoload
(defun doom//clean-byte-compiled-files () (defun doom//clean-byte-compiled-files ()