aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuc Teirlinck2005-12-30 23:15:03 +0000
committerLuc Teirlinck2005-12-30 23:15:03 +0000
commit537562fa4424691e6361df4fc700113faee2b533 (patch)
tree73e8deef5e86de2f23d93d749d7cf0811df56c1e /src
parentc26ec07faf3d0b605442fe00baadded9444b5fdb (diff)
downloademacs-537562fa4424691e6361df4fc700113faee2b533.tar.gz
emacs-537562fa4424691e6361df4fc700113faee2b533.zip
(set_text_properties): Reword description of return value.
Return Qnil if caller wants to remove all text properties from a string and the string already has no intervals.
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textprop.c b/src/textprop.c
index fa9b0e498c5..029f2f41031 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1316,8 +1316,8 @@ the designated part of OBJECT. */)
1316 properties PROPERTIES. OBJECT is the buffer or string containing 1316 properties PROPERTIES. OBJECT is the buffer or string containing
1317 the text. OBJECT nil means use the current buffer. 1317 the text. OBJECT nil means use the current buffer.
1318 SIGNAL_AFTER_CHANGE_P nil means don't signal after changes. Value 1318 SIGNAL_AFTER_CHANGE_P nil means don't signal after changes. Value
1319 is non-nil if properties were replaced; it is nil if there weren't 1319 is nil if the function _detected_ that it did not replace any
1320 any properties to replace. */ 1320 properties, non-nil otherwise. */
1321 1321
1322Lisp_Object 1322Lisp_Object
1323set_text_properties (start, end, properties, object, signal_after_change_p) 1323set_text_properties (start, end, properties, object, signal_after_change_p)
@@ -1341,7 +1341,7 @@ set_text_properties (start, end, properties, object, signal_after_change_p)
1341 && XFASTINT (end) == SCHARS (object)) 1341 && XFASTINT (end) == SCHARS (object))
1342 { 1342 {
1343 if (! STRING_INTERVALS (object)) 1343 if (! STRING_INTERVALS (object))
1344 return Qt; 1344 return Qnil;
1345 1345
1346 STRING_SET_INTERVALS (object, NULL_INTERVAL); 1346 STRING_SET_INTERVALS (object, NULL_INTERVAL);
1347 return Qt; 1347 return Qt;