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

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

Re: Background colors in font-lock-keywords


From: Oliver Scholz
Subject: Re: Background colors in font-lock-keywords
Date: Wed, 28 May 2003 09:32:42 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

lawrence mitchell <address@hidden> writes:

> Oliver Scholz wrote:
>
> [...]
>
>> (defvar example-font-lock-keywords
>>   '(("\\<lirum\\>" . 'font-lock-warning-face)
>>     ("\\<larum\\>" . 'font-lock-keyword-face)
>>     ("\\<l\\w+" (0 'example-l-word-face append))))
>                                           ^^^^^^
> Surely this wants to be prepend.  At least, my reading of the
> font-lock-keywords docstring, and some testing would indicate
> so.
[...]

Erm, this code was just example code, so I am personally not so sure
which one should take precedence, the old fontification or the new
one. It's hard for me to make an educated guess, because the major
mode has no meaning, and so the fontification has no meaning.

But maybe you have a more general reason to say this. Could you
please elaborate?

    Oliver
-- 
9 Prairial an 211 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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