[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
- preparing colored text, Jonathan Epstein, 2003/04/02
- Re: preparing colored text, Bijan Soleymani, 2003/04/02
- Re: preparing colored text, Kevin Rodgers, 2003/04/02
- Re: preparing colored text, Kai Großjohann, 2003/04/02
- Re: preparing colored text, Colin Marquardt, 2003/04/03
- Re: preparing colored text, Jonathan Epstein, 2003/04/03