Function: org-export-get-node-property
org-export-get-node-property is a byte-compiled function defined in
ox.el.gz.
Signature
(org-export-get-node-property PROPERTY DATUM &optional INHERITED)
Documentation
Return node PROPERTY value for DATUM.
PROPERTY is an upcase symbol (e.g., :COOKIE_DATA). DATUM is an element or object.
If optional argument INHERITED is non-nil, the value can be inherited from a parent headline.
Return value is a string or nil.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-get-node-property (property datum &optional inherited)
"Return node PROPERTY value for DATUM.
PROPERTY is an upcase symbol (e.g., `:COOKIE_DATA'). DATUM is an
element or object.
If optional argument INHERITED is non-nil, the value can be
inherited from a parent headline.
Return value is a string or nil."
(let ((headline (if (eq (org-element-type datum) 'headline) datum
(org-export-get-parent-headline datum))))
(if (not inherited) (org-element-property property datum)
(let ((parent headline))
(catch 'found
(while parent
(when (plist-member (nth 1 parent) property)
(throw 'found (org-element-property property parent)))
(setq parent (org-element-property :parent parent))))))))