[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Use org-element to figure out if I am in a drawer.
From: |
Nick Dokos |
Subject: |
Re: [O] Use org-element to figure out if I am in a drawer. |
Date: |
Tue, 26 Nov 2013 10:41:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Carsten Dominik <address@hidden> writes:
> what is the magic incantation to use org-element to figure out if
> point is currently inside a drawer?
>
(eq 'drawer (org-element-type (org-element-at-point)))
is my (untested) guess, but I don't think you can be at an arbitrary
place inside: you'll need to be on the :DRAWER: line or on the :END:
line, otherwise you'll get the type of the drawer contents.
Nick