Carsten Dominik <carsten.domi...@gmail.com> writes: > Hmmm, > > what is the magic incantation to use org-element to figure out if > point is currently inside a drawer?
What about org-element-at-point? E.g. like here: * This is a headline Still outside the drawer :DRAWERNAME: This is inside the drawer. :END: After the drawer. =org-element-at-point= within the drawer: (paragraph (:begin 65 :end 95 :contents-begin 65 :contents-end 95 :post-blank 0 :post-affiliated 65 :parent (drawer (:begin 49 :end 104 :drawer-name "DRAWERNAME" :contents-begin 65 :contents-end 95 :post-blank 0 :post-affiliated 49 :parent nil)))) -- Together we'll stand, divided we'll fall