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:
parent
769c870af6
commit
50f924bcfc
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ interactive session."
|
||||||
`(,(car rule)
|
`(,(car rule)
|
||||||
(lambda (message &rest args)
|
(lambda (message &rest args)
|
||||||
(apply #'doom-ansi-apply ',(car rule) message 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)))
|
(format ,message ,@args)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue