changeset 71499:51f7fe4f6552

* textprop.c (text_property_stickiness): doc fix.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 28 Jun 2006 00:02:57 +0000
parents 36c0b042a602
children fd5f866a10be
files src/textprop.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/textprop.c	Wed Jun 28 00:00:57 2006 +0000
+++ b/src/textprop.c	Wed Jun 28 00:02:57 2006 +0000
@@ -1787,8 +1787,12 @@
 	/* PROP is rear-non-sticky.  */
 	is_rear_sticky = 0;
     }
+  else
+    return 0;
 
   /* Consider following character.  */
+  /* This signals an arg-out-of-range error if pos is outside the
+     buffer's accessible range.  */
   front_sticky = Fget_text_property (pos, Qfront_sticky, buffer);
 
   if (EQ (front_sticky, Qt)