[Top][All Lists]

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

Re: font-lock-add-keywords in hi-lock.el

From: Stefan Monnier
Subject: Re: font-lock-add-keywords in hi-lock.el
Date: Thu, 29 Dec 2005 23:38:24 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>> Is that enough information to find the culprit, or is there a watch I
>>> can put on the global value of font-lock-keywords which will print a
>>> stacktrace or enter the debugger when it is changed?
>> ...
>> Before fixing it, it would be useful to know how it gets called.
>> In the buffer list you sent earlier there is the *Occur* buffer.
>> Do you remember on what buffer you called `occur'?  Very likely
>> `occur' forced fontification on a non-font-lock buffer.

I've added a sanity check in font-lock-compile-keywords which should at
least catch the offenders before they wreak havoc (hopefully the offenders
are not font-lock itself).


reply via email to

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