Next: , Previous: , Up: Local Parsing   [Index]


18.2.2.2 org-element-context

Function: org-element-context &optional element

Returns the smallest element or object around point.

ELEMENT

Optional argument ELEMENT, when non-nil, is the closest element containing point, as returned by org-element-at-point.

When it is provided, it allows for quicker computation.

RETURN VALUE

a list like (TYPE PROPS) where :

TYPE

is the type of the element or object and

PROPS

is a plist of properties associated with it.