On Sun, Aug 07, 2011 at 10:05:58PM +0900, Stephen J. Turnbull wrote:
Alan Mackenzie writes:
> However, when it drops off the end, update_syntax_cache wrongly
> its boundary positions to the ABSOLUTE BEGINNING/END of buffer.
> This is clearly wrong.
Do you have a test case that shows actual erroneous behavior fixed
Yes. My patch is a solution to the C-M-f/b problems with the AWK file in
the other thread. I shouldn't have started a new thread here. Sorry for
While I agree with your intuition, the syntax cache has a ton of
unintuitive code, and the specification for its behavior is completely
undocumented. Patches based on intuition make me very nervous.
In the AWK file, a looking-at was done with the buffer narrowed. This
did an update_syntax_cache which spuriously set the cache over the entire
buffer, rather than the pertinent piece of the accessible portion. This
cache masked out the sytax-table properties on the slashes.
> Here is a patch to fix this. Would somebody please check it
> it. This fix is necessary for CC Mode to work.
Does CC mode use narrowing internally?
A great deal.
Alan Mackenzie (Nuremberg, Germany).
XEmacs-Beta mailing list