Fix doom-ansi-apply alias to autoload in format!

A wrong-type-argument: symbolp error occurs when core files are
byte-compiled and the expanded message!/format! macros are trying to
cl-flet-alias 'color to doom-ansi-apply (which hasn't been loaded yet).
This commit is contained in:
Henrik Lissner 2017-06-23 13:06:28 +02:00
parent 769c870af6
commit 50f924bcfc

View file

@ -46,7 +46,9 @@ interactive session."
`(,(car rule)
(lambda (message &rest args)
(apply #'doom-ansi-apply ',(car rule) message args))))
(color (symbol-function 'doom-ansi-apply)))
(color
(lambda (code format &rest args)
(apply #'doom-ansi-apply code format args))))
(format ,message ,@args)))
;;;###autoload