emacs-devel
[Top][All Lists]
Advanced

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

How can I predict which regions xdisp will present me for font-locking?


From: Alan Mackenzie
Subject: How can I predict which regions xdisp will present me for font-locking?
Date: Sun, 11 Mar 2012 20:59:03 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hi, all.

I hope this isn't one of these "send complete details" questions, but:

In a file.hpp, inside a 3355 line macro (I kid you not), I type a single
character.  xdisp responds by presenting jit-lock, successively, with
four areas to fontify.  (This was determined by
trace-function-background on `font-lock-fontify-region').

None of these areas starts/stops at the top/bottom of the window.  It is the
third area which encloses the changed line.  The fourth area finishes
below the window's last line.

I can't see how this wierd sequence of fontification areas can be
being calculated by CC Mode.

This seemingly superfluous fontification seems to be causing a
performance degradation.

How can this series of fontification regions be explained?

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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