[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: preparing colored text
From: |
Oliver Scholz |
Subject: |
Re: preparing colored text |
Date: |
Thu, 03 Apr 2003 20:05:36 +0200 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (windows-nt) |
Matthew Kennedy <mbkennedy@austin.rr.com> writes:
> 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.
[...]
Probably you have font-lock turned on. It removes all "foreign" text
properties. Try it in a buffer without font-lock, for example in
text-mode.
In CVS Emacs you can use something like this
(insert (propertize "lirum larum" 'font-lock-face
'font-lock-warning-face))
even in buffers with font-lock.
Oliver
--
14 Germinal an 211 de la Révolution
Liberté, Egalité, Fraternité!
- 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