[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font-lock: Major mode should be able to specify region to fontify.
From: |
Stefan Monnier |
Subject: |
Re: Font-lock: Major mode should be able to specify region to fontify. |
Date: |
10 May 2002 17:31:53 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
>>>>> "Alan" == Alan Mackenzie <none@example.invalid> writes:
> I have implemented this feature in font-lock.el (and friends) by creating
> a new abnormal hook variable which, if set, is called by one of the
> font-lock after-change functions. Here is the patch. The context-diff
> is based on the source files from Emacs 21.1.
Please use the latest CVS code as a base, whenever possible.
As for other solutions to your problem:
1 - use font-lock-multiline (but this is a bit expensive)
2 - use jit-lock-defer-multiline (see the CVS' etc/NEWS file)
Solution 2 was written specifically for this kind of case.
Stefan
PS: Your changelog entries don't look right. They should look like
* filename (functionname, varname, othername): blabla.
(morefunctionchanged): blabli.