Function: org-add-props

org-add-props is a byte-compiled function defined in org-macs.el.gz.

Signature

(org-add-props STRING PLIST &rest PROPS)

Documentation

Add text properties to entire string, from beginning to end.

PLIST may be a list of properties, PROPS are individual properties and values that will be added to PLIST. Returns the string that was modified.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-macs.el.gz
(defun org-add-props (string plist &rest props)
  "Add text properties to entire string, from beginning to end.
PLIST may be a list of properties, PROPS are individual properties and values
that will be added to PLIST.  Returns the string that was modified."
  (declare (indent 2))
  (add-text-properties
   0 (length string) (if props (append plist props) plist) string)
  string)