diff src/syntax.c @ 2506:8c96bdabcaf9

[xemacs-hg @ 2005-01-26 05:11:01 by ben] implement next-single-char-property-change and friends extents.c, extents.h, indent.c, syntax.c: Implement next/previous-single-char-property-change and make next/previous-single-property-change work like in FSF.
author ben
date Wed, 26 Jan 2005 05:11:12 +0000
parents 13a418960a88
children facf3239ba30
line wrap: on
line diff
--- a/src/syntax.c	Wed Jan 26 04:56:18 2005 +0000
+++ b/src/syntax.c	Wed Jan 26 05:11:12 2005 +0000
@@ -448,8 +448,8 @@
 
   tmp_table = get_char_property (pos, Qsyntax_table, cache->object,
 				 EXTENT_AT_AFTER, 0);
-  lim = next_single_property_change (pos, Qsyntax_table, cache->object,
-				     -1);
+  lim = next_previous_single_property_change (pos, Qsyntax_table,
+					      cache->object, -1, 1, 0);
   if (lim < 0)
     {
       next = buffer_or_string_absolute_end_byte (cache->object);
@@ -460,8 +460,8 @@
 
   if (pos < buffer_or_string_absolute_end_byte (cache->object))
     pos = next_bytexpos (cache->object, pos);
-  lim = previous_single_property_change (pos, Qsyntax_table, cache->object,
-					 -1);
+  lim = next_previous_single_property_change (pos, Qsyntax_table,
+					      cache->object, -1, 0, 0);
   if (lim < 0)
     {
       prev = buffer_or_string_absolute_begin_byte (cache->object);