auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Re: Fontifying of titles...


From: Ralf Angeli
Subject: Re: [AUCTeX-devel] Re: Fontifying of titles...
Date: Tue, 05 Apr 2005 15:23:51 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

* Ralf Angeli (2005-04-05) writes:

> As the face specification can be any sort of expression returning a
> face symbol I thought about implementing a check there which would
> return different faces for different keywords, but I don't see a way
> to check for properties of the matcher.  Global variables would work
> though, so maybe this could be a way to avoid the combinatorial
> nightmare I constructed above.
>
> We'd then get some sort of super matcher, i.e. an item in
> `font-lock-keywords' which could deal with, say, up to ten or twenty
> matches and would decide on the fly which face would have to be used
> for which match.

Oh, forgot to mention the missing link.  The match function could set
the global variable which gets checked by the expressions returning
the face symbols.  The variable could contain a list of face symbols
in the order they are to be applied to the matched keyword.

-- 
Ralf




reply via email to

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