Previous: , Up: Org Parser   [Index]


18.2.2 Local Parsing

Local parsing gives information about the structure at point.

The first move is to implement a way to obtain the smallest element containing point.

org-element-at-point

It basically jumps back to the beginning of section containing point and proceed, one element after the other, with org-element--current-element until the container is found. When using ‘org-element-at-point’, secondary values are never parsed since the function focuses on elements, not on objects.

~org-element-context

At a deeper level, org-element-context lists all elements and objects containing point.

org-element-nested-p and org-element-swap-A-B may be used internally by navigation and manipulation tools.

org-element-nested-p
org-element-swap-A-B