[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to export drawer?
From: |
Marcin Antczak |
Subject: |
Re: [O] How to export drawer? |
Date: |
Sat, 05 Apr 2014 00:06:03 +0200 |
User-agent: |
mu4e 0.9.9.5; emacs 24.4.50.2 |
Nicolas Goaziou writes:
> Marcin Antczak <address@hidden> writes:
>
>> Yes. I want to hard-code these drawers and ignore them in default
>> export.
>
> OK, I get it. You want to move some drawers (relatively to the flow of
> the document) and ignore others.
>
Exactly.
I want to append LOGBOOK and CLOCKTABLE to task headline while any other
drawer should go to content as usual.
>> In this way I could attach HTML code with CLOCKTABLE drawer to headline.
>> Unfortunately as I mentioned before I don't know how to achieve this
>> without recursion. My code returns all CLOCKTABLE drawers in child
>> tasks.
>>
>> org-element-map has optional argument 'no-recursion' but I don't know
>> how to set it up properly.
>
> You can set it to `headline', like you did, but you must skip the
> current headline or `org-element-map' will never enter it:
>
> (org-element-map (org-element-contents headline) 'drawer #'identity
> info nil 'headline)
AWESOME!
Thank you very, very much.
Now I need to understand this code. But it works!
Regards,
--
Marcin