Function: org-element-secondary-p

org-element-secondary-p is a byte-compiled function defined in org-element.el.gz.

Signature

(org-element-secondary-p OBJECT)

Documentation

Non-nil when OBJECT directly belongs to a secondary string.

Return value is the property name, as a keyword, or nil.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-element.el.gz
(defun org-element-secondary-p (object)
  "Non-nil when OBJECT directly belongs to a secondary string.
Return value is the property name, as a keyword, or nil."
  (let* ((parent (org-element-property :parent object))
	 (properties (cdr (assq (org-element-type parent)
				org-element-secondary-value-alist))))
    (catch 'exit
      (dolist (p properties)
	(and (memq object (org-element-property p parent))
	     (throw 'exit p))))))