Hello,

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?

Something like:

  (let ((element (org-element-at-point)))
    (while (and element
                (not (memq (org-element-type element) '(drawer 
property-drawer))))
      (setq element (org-element-property :parent element)))
    element)

which should return containing drawer or nil.


Regards,

-- 
Nicolas Goaziou

Reply via email to