From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Invalid read syntax (#) in org-element parse tree Date: Tue, 12 Feb 2013 20:41:24 +0100 Message-ID: <87zjz99v6j.fsf@gmail.com> References: <87vc9ybt65.fsf@gmail.com> <87fw12cyka.fsf@gmail.com> <87r4kmbfon.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Lja-0002XF-2F for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 14:41:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5LjY-0007dm-MZ for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 14:41:41 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:59503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5LjY-0007dT-G5 for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 14:41:40 -0500 Received: by mail-wg0-f47.google.com with SMTP id dr13so370069wgb.14 for ; Tue, 12 Feb 2013 11:41:39 -0800 (PST) In-Reply-To: <87r4kmbfon.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 12 Feb 2013 00:20:56 +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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Thorsten Jolitz writes: >> I'm not sure about what you want to do with the parse tree. The usual >> function to work with it is `org-element-map'. You may want to have >> a look at its docstring, as it contains examples. > > I want to write an 'unusual' backend that does not need anything else > from the exporting framework but the parse-tree as a list. Then you don't want the exporting framework at all, only org-element.el. Anyway I'm confused. The parse-tree _is_ a list. To convince yourself, evaluate the following in any Org buffer: (listp (org-element-parse-buffer)) > So all I need would be a workaround for this read-error issue, i.e. > a tip how to get a version of the parse tree that can be used as list > in a Lisp program. Have you tried (setq print-circle t) ? > I could not find any explanation for the '#1' and '#2' syntax I > encountered, so I don't really know what its all about. It is explained in the info link I gave you. Regards, -- Nicolas Goaziou