Variable: org-element--standard-properties-idxs
org-element--standard-properties-idxs is a variable defined in
org-element-ast.el.
Value
(:begin 0 :post-affiliated 1 :contents-begin 2 :contents-end 3 :end 4 :post-blank 5 :secondary 6 :mode 7 :granularity 8 :cached 9 :org-element--cache-sync-key 10 :robust-begin 11 :robust-end 12 :true-level 13 :buffer 14 :deferred 15 :structure 16 :parent 17)
Documentation
Property list holding standard indexes for org-element--standard-properties.
Source Code
;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-element-ast.el
;;;; Object properties
(eval-and-compile ; make available during inline expansion
(defconst org-element--standard-properties
'( :begin :post-affiliated :contents-begin :contents-end :end :post-blank
:secondary :mode :granularity
:cached :org-element--cache-sync-key
:robust-begin :robust-end
:true-level
:buffer :deferred
:structure :parent)
"Standard properties stored in every syntax node structure.
These properties are stored in an array pre-allocated every time a new
object is created. Two exceptions are `anonymous' and `plain-text'
node types.")
(defconst org-element--standard-properties-idxs
(let (plist)
(seq-do-indexed
(lambda (property idx)
(setq plist (plist-put plist property idx)))
org-element--standard-properties)
plist)
"Property list holding standard indexes for `org-element--standard-properties'.")
(define-inline org-element--property-idx (property)
"Return standard property index or nil."
(declare (pure t))
(inline-letevals (property)
(plist-get
org-element--standard-properties-idxs
(inline-const-val property)))))