Commit 537562fa authored by Luc Teirlinck's avatar Luc Teirlinck
Browse files

(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.
parent c26ec07f
......@@ -1316,8 +1316,8 @@ the designated part of OBJECT. */)
properties PROPERTIES. OBJECT is the buffer or string containing
the text. OBJECT nil means use the current buffer.
SIGNAL_AFTER_CHANGE_P nil means don't signal after changes. Value
is non-nil if properties were replaced; it is nil if there weren't
any properties to replace. */
is nil if the function _detected_ that it did not replace any
properties, non-nil otherwise. */
set_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)
&& XFASTINT (end) == SCHARS (object))
if (! STRING_INTERVALS (object))
return Qt;
return Qnil;
return Qt;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment