emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] Make font-lock honor parents mode of current major-mode


From: Stefan Monnier
Subject: Re: [PATCH 2/2] Make font-lock honor parents mode of current major-mode
Date: Wed, 09 Feb 2011 11:37:48 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> This allows to add font-lock keyword to prog-mode directly, so every other
> children mode will use them.

Making inheritance work with font-lock keywords is a good idea, but this
is the wrong way to do it.  The right way is to take advantage of the
way inheritance works.  E.g. use a variable which modes would
*modify* rather than just set.  E.g. somehow convince all modes to use
the equivalent of font-lock-add-keywords.


        Stefan



reply via email to

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