From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Antczak Subject: Re: How to export drawer? Date: Sat, 05 Apr 2014 00:06:03 +0200 Message-ID: <87ppkw4uno.fsf@neutrico-themes.pl> References: <87mwg1xx8w.fsf@neutrico-themes.pl> <87zjk07vwu.fsf@gmail.com> <87ob0gajp8.fsf@neutrico-themes.pl> <87r45c7ojz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWCGg-0002Ct-LA for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 18:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWCGZ-0008E5-84 for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 18:07:22 -0400 Received: from 8.mo2.mail-out.ovh.net ([188.165.52.147]:45945 helo=mo2.mail-out.ovh.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWCGZ-0008C0-22 for emacs-orgmode@gnu.org; Fri, 04 Apr 2014 18:07:15 -0400 Received: from mail427.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo2.mail-out.ovh.net (Postfix) with SMTP id DA448100082B for ; Sat, 5 Apr 2014 00:07:13 +0200 (CEST) In-reply-to: <87r45c7ojz.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Marcin Antczak 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