From ac876a7913c7b01f02b8f7f6a3d7f9d4580b0c46 Mon Sep 17 00:00:00 2001 From: Joseph Arceneaux Date: Sun, 30 Aug 1992 05:01:59 +0000 Subject: [PATCH] entered into RCS --- src/textprop.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/textprop.c b/src/textprop.c index 2eae895c25..e7387bd126 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -45,9 +45,12 @@ Lisp_Object Qmodification; Lisp_Object Qforeground, Qbackground, Qfont, Qunderline, Qstipple; Lisp_Object Qinvisible, Qread_only; -/* Extract the interval at position BEGIN from OBJECT, a string - or buffer. Additionally, check that BEGIN and END are within - the bounds of OBJECT. +/* Extract the interval at the position pointed to by BEGIN from + OBJECT, a string or buffer. Additionally, check that the positions + pointed to by BEGIN and END are within the bounds of OBJECT, and + reverse them if *BEGIN is greater than *END. The objects pointed + to by BEGIN and END may be integers or markers; if the latter, they + are coerced to integers. Note that buffer points don't correspond to interval indices. For example, point-max is 1 greater than the index of the last @@ -58,7 +61,9 @@ Lisp_Object Qinvisible, Qread_only; Handle this case specially. If FORCE is soft (0), it's OK to return NULL_INTERVAL. Otherwise, - create an interval tree for OBJECT if one doesn't exist. */ + create an interval tree for OBJECT if one doesn't exist, provided + the object actually contains text. In the current design, if there + is no text, there can be no text properties. */ #define soft 0 #define hard 1 -- 2.39.2