I want to display a colored string of text in the minibuffer, but when I use the 'message' function, the text-properties of are stripped.
views:
52answers:
1
+2
A:
Works for me:
(message "%s" (propertize "foo" 'face '(:foreground "red")))
You probably had (message (propertize ...))
, which interprets the propertized string as a format control string, hence stripped of its properties.
huaiyuan
2010-04-30 07:10:29
Ahh, works like a charm. Thanks!
Aemon Cannon
2010-04-30 08:42:40