Function: set-text-properties
set-text-properties is a function defined in textprop.c.
Signature
(set-text-properties START END PROPERTIES &optional OBJECT)
Documentation
Completely replace properties of text from START to END.
The third argument PROPERTIES is the new property list. If the optional fourth argument OBJECT is a buffer (or nil, which means the current buffer), START and END are buffer positions (integers or markers). If OBJECT is a string, START and END are 0-based indices into it. If PROPERTIES is nil, the effect is to remove all properties from the designated part of OBJECT.
Other relevant functions are documented in the text-properties group.
Probably introduced at or before Emacs version 21.1.
Shortdoc
;; text-properties
(set-text-properties (point) (1+ (point)) '(face error))
Source Code
// Defined in /usr/src/emacs/src/textprop.c
{
return set_text_properties (start, end, properties, object, Qt);
}