[Top][All Lists]

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

Re: font-lock-keywords uses only facename

From: Miles Bader
Subject: Re: font-lock-keywords uses only facename
Date: Thu, 3 Jun 2004 19:55:08 -0400
User-agent: Mutt/1.3.28i

On Fri, Jun 04, 2004 at 01:48:10AM +0200, Alex Schroeder wrote:
> Is this on purpose?  Would it break anything if using faces were
> allowed directly?

It's just historical stupidity.  If it were being designed today, it would
probably just use face names directly, but font-lock is _really_ old...

I presume you're asking whether it could do something like:

   (if (and (symbolp expr) (not (boundp expr)))
       expr        ; use face name directly
     (eval expr))  ; evaluate EXPR to get face name


It seems like it would work, though I wonder if it could cause more

Occam's razor split hairs so well, I bought the whole argument!

reply via email to

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