Function: org-element--parray

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

Signature

(org-element--parray NODE)

Documentation

Return standard property array for NODE.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-element-ast.el.gz
(define-inline org-element--parray (node)
  "Return standard property array for NODE."
  (declare (pure t))
  (inline-letevals (node)
    (inline-quote
     (pcase (org-element-type ,node)
       (`nil nil)
       ;; Do not use property array for strings - they usually hold
       ;; `:parent' property and nothing more.
       (`plain-text nil)
       (_
        ;; (type (:standard-properties val ...) ...)
        (if (eq :standard-properties (car (nth 1 ,node)))
            (cadr (nth 1 ,node))
          ;; Non-standard order.  Go long way.
          (plist-get (nth 1 ,node) :standard-properties)))))))