help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preparing colored text


From: Matthew Kennedy
Subject: Re: preparing colored text
Date: Thu, 03 Apr 2003 16:52:24 GMT
User-agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (gnu/linux)

kai.grossjohann@gmx.net (Kai Großjohann) writes:

>
> (insert (propertize "warning" 'face 'font-lock-warning-face))
>
> ... easier to maintain in case the strings change :-)
>

Kai, this was my first attempt also. I copied this example into
*scratch* and evaluated it, it appears to just insert "warning"
without changing any text properties.

I ran M-: (get-text-property (point) 'face) with the point on the
inserted warning text. That expression returns nil. I'm confused
(like always)...

BTW, where'd you find Oort 0.18? :D

Matt

-- 
Matthew Kennedy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]