Function: org-element-property-raw

org-element-property-raw is a byte-compiled function defined in org-element-ast.el.gz.

Signature

(org-element-property-raw PROPERTY NODE &optional DFLT)

Documentation

Extract the value for PROPERTY of an NODE.

Do not resolve deferred values. If PROPERTY is not present, return DFLT.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-element-ast.el.gz
(define-inline org-element-property-raw (property node &optional dflt)
  "Extract the value for PROPERTY of an NODE.
Do not resolve deferred values.
If PROPERTY is not present, return DFLT."
  (declare (pure t))
  (inline-letevals (node property)
    (let ((idx (org-element--property-idx (inline-const-val property))))
      (inline-quote
       (let ((idx (or ,idx (org-element--property-idx ,property))))
         (if-let* ((parray (and idx (org-element--parray ,node))))
             (pcase (aref parray idx)
               (`org-element-ast--nil ,dflt)
               (val val))
           ;; No property array exists.  Fall back to `plist-get'.
           (org-element--plist-property ,property ,node ,dflt)))))))