Nicolas Goaziou writes: > Marcin Antczak <marcin.antc...@neutrico-themes.pl> 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