Function: add-text-properties
add-text-properties is a function defined in textprop.c.
Signature
(add-text-properties START END PROPERTIES &optional OBJECT)
Documentation
Add properties to the text from START to END.
The third argument PROPERTIES is a property list specifying the property values to add. 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. Return t if any property value actually changed, nil otherwise.
Other relevant functions are documented in the text-properties group.
Shortdoc
;; text-properties
(add-text-properties (point) (1+ (point)) '(face error))
Source Code
// Defined in /usr/src/emacs/src/textprop.c
{
return add_text_properties_1 (start, end, properties, object,
TEXT_PROPERTY_REPLACE, true);
}