Hi, XEmacs!
In syntax.c, update_syntax_cache calls
next_previous_single_property_change.  This function searches for a
property change WITHIN THE ACCESSIBLE REGION.
However, when it drops off the end, update_syntax_cache wrongly sets its
boundary positions to the ABSOLUTE BEGINNING/END of buffer.  This is
clearly wrong.
Here is a patch to fix this.  Would somebody please check it and commit
it.  This fix is necessary for CC Mode to work.
Thanks!
diff -r 1b054bc2ac40 src/syntax.c
--- a/src/syntax.c	Sun Jul 03 14:17:39 2011 +0100
+++ b/src/syntax.c	Sun Aug 07 10:17:22 2011 +0000
@@ -423,7 +424,7 @@
 					      cache->object, -1, 1, 0);
   if (lim < 0)
     {
-      next = buffer_or_string_absolute_end_byte (cache->object);
+      next = buffer_or_string_accessible_end_byte (cache->object);
       at_begin = 1;
     }
   else
@@ -435,7 +436,7 @@
 					      cache->object, -1, 0, 0);
   if (lim < 0)
     {
-      prev = buffer_or_string_absolute_begin_byte (cache->object);
+      prev = buffer_or_string_accessible_begin_byte (cache->object);
       at_end = 1;
     }
   else
-- 
Alan Mackenzie (Nuremberg, Germany).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta