[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: First fontification of a buffer happens before font lock is fully in
Re: First fontification of a buffer happens before font lock is fully initialised.
Wed, 25 Jan 2012 18:26:51 +0000
On Wed, Jan 25, 2012 at 12:46:04PM -0500, Stefan Monnier wrote:
> > This situation was found and analysed by Hannu Koivisto after CC Mode
> > crashed for this reason on a C++ buffer. Why it doesn't happen for
> > every CC Mode buffer is not yet clear.
> I think the behavior depends on the use of font-lock-support-mode.
> With jit-lock, fontification takes place after running the mode-hook,
> whereas without it, fontification takes place before.
Surely this cannot be - the hooks are run at the end of the
define-minor-mode expansion no matter what. Surely the hooks are not
being run twice. Though I admit I haven't tracked down the stages in
Hannu's bug report said nothing about disabling jit-lock, so I presume it
Alan Mackenzie (Nuremberg, Germany).