From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Can `org-element-map' act on secondary-strings? Date: Mon, 08 Jul 2013 19:38:50 +0530 Message-ID: <87sizpf8jx.fsf@gmail.com> References: <87li5jrbx3.fsf@gmail.com> <871u7bfw4x.fsf@gmail.com> <87obada5ck.fsf@gmail.com> <87wqp1ec0b.fsf@gmail.com> <87ip0l9rxu.fsf@gmail.com> <87pputdx5a.fsf@gmail.com> <87ehb99n86.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwC65-0005F5-6r for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 10:07:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwC60-0007cz-Ej for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 10:07:21 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:35717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwC60-0007cg-8P for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 10:07:16 -0400 Received: by mail-pa0-f44.google.com with SMTP id lj1so4397889pab.31 for ; Mon, 08 Jul 2013 07:07:15 -0700 (PDT) In-Reply-To: <87ehb99n86.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 08 Jul 2013 15:48:25 +0200") 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: > Nicolas Goaziou writes: > >> You don't need `org-data' type. The tree root doesn't have any property >> anyway. > > I used that because I wanted the whole parse-tree as return value, but > no matter what `org-element-map' returns, it changes the parse-tree by > side-effects anyway, so I can just ignore the return value and use the > modified parse-tree stored somewhere instead - right? I have a hard time trying to imagine what you are trying to do. You should try to explain to us what you are trying to accomplish. Why are you storing a parse-tree? What does the parse-tree store? Does the buffer of which it is a representation change, when the parse tree changes. How are you trying to "use" the parse tree? Is it meant for one-way or two-way conversion - i.e., interpretation or exportation.