From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to deal with 'contents' in (derived) exporter backend Date: Wed, 06 Nov 2013 15:36:32 +0100 Message-ID: <87vc05sikv.fsf@gmail.com> References: <87r4awjqmf.fsf@gmail.com> <878ux2d2g5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve4E2-0003cV-6I for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 09:37:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve4Du-0008Fi-Ld for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 09:36:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:58238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve4Du-0008FX-EY for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 09:36:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ve4Ds-0004YM-VS for emacs-orgmode@gnu.org; Wed, 06 Nov 2013 15:36:44 +0100 Received: from g231104150.adsl.alicedsl.de ([92.231.104.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Nov 2013 15:36:44 +0100 Received: from tjolitz by g231104150.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Nov 2013 15:36:44 +0100 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: emacs-orgmode@gnu.org Hello, Nicolas Goaziou writes: > Thorsten Jolitz writes: > >> But when I use something like this in the headline transcode function >> >> #+begin_src emacs-lisp >> (format "(headline %S %s) " >> [... return headline string ...] >> contents) >> #+end_src >> >> I get the parse-tree structure as output instead of elements/object >> in their original Org text syntax as expected: >> >> #+begin_src emacs-lisp >> (org-data nil "(headline (title-string \"A1\" alt-title-string \"A1\" >> category \"tmp5\" level 1 priority nil tags nil todo-keyword nil >> quotedp nil archivedp nil commentedp nil footnote-secion-p nil) >> (section (#(\"Text *A1* \" 0 5 (:parent (paragraph (:begin 6 :end 16 >> :contents-begin 6 :contents-end 16 :post-blank 0 :post-affiliated 6 >> :parent (section (:begin 6 :end 16 :contents-begin 6 :contents-end 16 >> :post-blank 0 :parent (headline (:raw-value \"A1\" :begin 1 :end 32 >> :pre-blank 0 :contents-begin 6 :contents-end 32 :level 1 :priority nil >> :tags [...] >> #+end_src > > You don't get the parse-tree structure, you get Org syntax within > a propertized string. Try (org-no-properties contents) instead. That does the trick, thank you very much, I was kind of stuck without being aware of this function. -- cheers, Thorsten