mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user