[Top][All Lists]
[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: |
Julien Danjou |
Subject: |
Re: [PATCH 2/2] Make font-lock honor parents mode of current major-mode |
Date: |
Wed, 09 Feb 2011 18:15:31 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
On Wed, Feb 09 2011, Stefan Monnier wrote:
>> 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.
I may not have enough knowledge of modes and font-lock to understand the
way you describe. Would you mind ellaboring a bit so I can maybe work on
that? :)
--
Julien Danjou
❱ http://julien.danjou.info
pgpmESfH7uGmH.pgp
Description: PGP signature
Re: [PATCH 1/2] Add new function derived-mode-parents, Stefan Monnier, 2011/02/08