Update modules library: message! => print!
This commit is contained in:
parent
b82ef2cee6
commit
5c101f1909
1 changed files with 6 additions and 6 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue