Variable: org-element-object-restrictions
org-element-object-restrictions is a variable defined in
org-element.el.gz.
Value
Large value
((bold bold citation code entity export-snippet footnote-reference
inline-babel-call inline-src-block italic line-break
latex-fragment link macro radio-target statistics-cookie
strike-through subscript superscript target timestamp underline
verbatim)
(citation citation-reference)
(citation-reference bold code entity export-snippet inline-babel-call
inline-src-block italic latex-fragment macro
radio-target statistics-cookie strike-through
subscript superscript target timestamp underline
verbatim)
(footnote-reference bold citation code entity export-snippet
footnote-reference inline-babel-call
inline-src-block italic line-break latex-fragment
link macro radio-target statistics-cookie
strike-through subscript superscript target
timestamp underline verbatim)
(headline bold citation code entity export-snippet footnote-reference
inline-babel-call inline-src-block italic latex-fragment
link macro radio-target statistics-cookie strike-through
subscript superscript target timestamp underline verbatim)
(inlinetask bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim)
(italic bold citation code entity export-snippet footnote-reference
inline-babel-call inline-src-block italic line-break
latex-fragment link macro radio-target statistics-cookie
strike-through subscript superscript target timestamp
underline verbatim)
(item bold citation code entity export-snippet footnote-reference
inline-babel-call inline-src-block italic latex-fragment link
macro radio-target statistics-cookie strike-through subscript
superscript target timestamp underline verbatim)
(keyword bold citation code entity export-snippet inline-babel-call
inline-src-block italic line-break latex-fragment link macro
radio-target statistics-cookie strike-through subscript
superscript target timestamp underline verbatim)
(link export-snippet inline-babel-call inline-src-block macro
statistics-cookie bold code entity italic latex-fragment
strike-through subscript superscript underline verbatim)
(paragraph bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim)
(radio-target bold code entity italic latex-fragment strike-through
subscript superscript underline verbatim)
(strike-through bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro
radio-target statistics-cookie strike-through
subscript superscript target timestamp underline
verbatim)
(subscript bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim)
(superscript bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim)
(table-cell citation export-snippet footnote-reference link macro
radio-target target timestamp bold code entity italic
latex-fragment strike-through subscript superscript
underline verbatim)
(table-row table-cell)
(underline bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim)
(verse-block bold citation code entity export-snippet
footnote-reference inline-babel-call inline-src-block
italic line-break latex-fragment link macro radio-target
statistics-cookie strike-through subscript superscript
target timestamp underline verbatim))
Documentation
Alist of objects restrictions.
key is an element or object type containing objects and value is a list of types that can be contained within an element or object of such type.
This alist also applies to secondary string. For example, an
headline type element doesn't directly contain objects, but
still has an entry since one of its properties (:title) does.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-element.el.gz
(defconst org-element-object-restrictions
(let* ((minimal-set '(bold code entity italic latex-fragment strike-through
subscript superscript underline verbatim))
(standard-set
(remq 'citation-reference (remq 'table-cell org-element-all-objects)))
(standard-set-no-line-break (remq 'line-break standard-set))
(standard-set-for-citations (seq-difference
standard-set-no-line-break
'( citation citation-reference
footnote-reference link))))
`((bold ,@standard-set)
(citation citation-reference)
(citation-reference ,@standard-set-for-citations)
(footnote-reference ,@standard-set)
(headline ,@standard-set-no-line-break)
(inlinetask ,@standard-set-no-line-break)
(italic ,@standard-set)
(item ,@standard-set-no-line-break)
(keyword ,@(remq 'footnote-reference standard-set))
;; Ignore all links in a link description. Also ignore
;; radio-targets and line breaks.
(link export-snippet inline-babel-call inline-src-block macro
statistics-cookie ,@minimal-set)
(paragraph ,@standard-set)
;; Remove any variable object from radio target as it would
;; prevent it from being properly recognized.
(radio-target ,@minimal-set)
(strike-through ,@standard-set)
(subscript ,@standard-set)
(superscript ,@standard-set)
;; Ignore inline babel call and inline source block as formulas
;; are possible. Also ignore line breaks and statistics
;; cookies.
(table-cell citation export-snippet footnote-reference link macro
radio-target target timestamp ,@minimal-set)
(table-row table-cell)
(underline ,@standard-set)
(verse-block ,@standard-set)))
"Alist of objects restrictions.
key is an element or object type containing objects and value is
a list of types that can be contained within an element or object
of such type.
This alist also applies to secondary string. For example, an
`headline' type element doesn't directly contain objects, but
still has an entry since one of its properties (`:title') does.")