Function: org--update-property-plist

org--update-property-plist is a byte-compiled function defined in org.el.gz.

Signature

(org--update-property-plist KEY VAL PROPS)

Documentation

Associate KEY to VAL in alist PROPS.

Modifications are made by side-effect. Return new alist.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--update-property-plist (key val props)
  "Associate KEY to VAL in alist PROPS.
Modifications are made by side-effect.  Return new alist."
  (let* ((appending (string= (substring key -1) "+"))
	 (key (if appending (substring key 0 -1) key))
	 (old (assoc-string key props t)))
    (if (not old) (cons (cons key val) props)
      (setcdr old (if appending (concat (cdr old) " " val) val))
      props)))