From 50f924bcfc27367729742b0a20752a16ec1cf914 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 23 Jun 2017 13:06:28 +0200 Subject: [PATCH] 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). --- core/autoload/message.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/autoload/message.el b/core/autoload/message.el index 7fbe7ee25..8924264ca 100644 --- a/core/autoload/message.el +++ b/core/autoload/message.el @@ -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