No, this does not help - I get exactly the same crash using the sample
file that I posted. :(
Vladimir Vukicevic <vladimir(a)Intrepid.Com> wrote:
> There seems to be a fencepost error in syntax.c. You could try
> Vladimir Vukicevic's patch. This is (hopefully) being reviewed by
> Matt Tucker now, and may not go in in its current form, but it might
> help you get some work done.
Actually, now that I've looked at my code again, I realized that it wasn't
right -- the code does indeed need to know if the last matching comment element
came at the end of the passed in region, not the space before it. With
my patch, a visual glitch appears if you're typing a string in a font-locked
mode; the font-locking will lag one character behind the end of the string.
So, a more correct patch follows... I've been working with this for a while
yesterday with no crashes.
- Vlad
Index: syntax.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/syntax.c,v
retrieving revision 1.7.2.18
diff -u -r1.7.2.18 syntax.c
--- syntax.c 2001/02/09 16:00:37 1.7.2.18
+++ syntax.c 2001/02/16 16:34:57
@@ -831,7 +831,11 @@
section */
{
from++;
- UPDATE_SYNTAX_CACHE_FORWARD (from);
+ UPDATE_SYNTAX_CACHE_FORWARD (from);
+ if (from == stop)
+ {
+ return -1;
+ }
break;
}
}
--
Cheers,
-Dima.