emacs-devel
[Top][All Lists]
Advanced

[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


From: Alan Mackenzie
Subject: Re: First fontification of a buffer happens before font lock is fully initialised.
Date: Wed, 25 Jan 2012 18:26:51 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, Stefan.

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
initialising jit-lock-mode.

Hannu's bug report said nothing about disabling jit-lock, so I presume it
was enabled.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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