[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Font Lock on-the-fly misfontification in C++]
From: |
Stefan Monnier |
Subject: |
Re: address@hidden: Font Lock on-the-fly misfontification in C++] |
Date: |
Sun, 23 Jul 2006 23:11:45 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> 3. Append a space to the fourth commented line. Bug: fontification of Foo,
>> bar, Snafu and snafu is removed from that line.
> The problem is that after a textual change, the changed line gets
> fontified as an atomic entity, i.e. yanked out of its context. The
If you placed a font-lock-multiline property on the whole thing, font-lock
would know not to yank that one line out of its context.
> solution is to determine the bounds of the region to fontify by analysing
> the surrounding text syntactically.
Presumably, at the moment when Emacs fontified it correctly, it knew the
corresponding bounds, so it could have added the font-lock-multiline
property at that time, thus avoiding the need to re-determine those bounds
later when refontifying.
Stefan
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Alan Mackenzie, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++],
Stefan Monnier <=
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Alan Mackenzie, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Stefan Monnier, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Alan Mackenzie, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Stefan Monnier, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Alan Mackenzie, 2006/07/24
- Re: address@hidden: Font Lock on-the-fly misfontification in C++], Stefan Monnier, 2006/07/24
Re: address@hidden: Font Lock on-the-fly misfontification in C++], Stefan Monnier, 2006/07/24