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

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

Re: Levels of font lock – Dired, Dired+ and Diredful


From: Stefan Monnier
Subject: Re: Levels of font lock – Dired, Dired+ and Diredful
Date: Mon, 22 May 2017 23:22:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> There is a concept of levels of font lock. A major mode sets up three
> lists of keywords in a buffer-local ‘font-lock-defaults’ variable.

Yes, but it's poorly supported, as you've seen.

Personally I find it to be misguided, anyway: it'd be better for the
"font-lock-keywords" to depend on config vars so you can affect the
various parts independently.  But this requires a redesign of
font-lock-keywords and noone's been very interested in going down
that route.  Such a redesign could be very useful, tho, e.g. allowing
better debugging (or even edebug-ing).


        Stefan




reply via email to

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