Previous: , Up: Tools   [Index]


18.3.3.9 org-element-lineage

Function: org-element-lineage datum &optional types with-self

List all ancestors of a given element or object.

DATUM

is an object or element.

TYPES

when a list of symbols, return the first element or object in the lineage whose type belongs to that list instead.

WITH-SELF

when non-nil, lineage includes DATUM itself as the first element, and TYPES, if provided, also apply to it.