Mercurial > emacs
changeset 67947:7538cafcf9f7
(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.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Fri, 30 Dec 2005 23:15:03 +0000 |
parents | ec6bcc17dae2 |
children | 5bf588b1a01e |
files | src/textprop.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textprop.c Fri Dec 30 23:13:54 2005 +0000 +++ b/src/textprop.c Fri Dec 30 23:15:03 2005 +0000 @@ -1316,8 +1316,8 @@ 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. */ Lisp_Object set_text_properties (start, end, properties, object, signal_after_change_p) @@ -1341,7 +1341,7 @@ && XFASTINT (end) == SCHARS (object)) { if (! STRING_INTERVALS (object)) - return Qt; + return Qnil; STRING_SET_INTERVALS (object, NULL_INTERVAL); return Qt;