From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Can `org-element-map' act on secondary-strings? Date: Mon, 08 Jul 2013 15:00:33 +0200 Message-ID: <87pputdx5a.fsf@gmail.com> References: <87li5jrbx3.fsf@gmail.com> <871u7bfw4x.fsf@gmail.com> <87obada5ck.fsf@gmail.com> <87wqp1ec0b.fsf@gmail.com> <87ip0l9rxu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwB3J-0002UR-T1 for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:00:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwB3F-0002OD-1B for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:00:25 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:35693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwB3E-0002O9-Oq for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:00:20 -0400 Received: by mail-we0-f176.google.com with SMTP id t56so3574257wes.7 for ; Mon, 08 Jul 2013 06:00:20 -0700 (PDT) In-Reply-To: <87ip0l9rxu.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 08 Jul 2013 14:06:37 +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: > Thanks, the 'plain-text type was what I missed. I used > > #+begin_src emacs-lisp > (append '(org-data) > org-element-all-elements > org-element-all-objects) > #+end_src > > as types for mapping, but need to add '(plain-text) to the types to access > those :parent properties inside text-strings. You don't need `org-data' type. The tree root doesn't have any property anyway. > My use case is to turn a parse tree that is a circular list into a regular > list, and it seems that I achieved it now, e.g. using your minimal example [...] > I have a special use for this, but maybe this can be useful in other > cases too, e.g. when people want to operate directly on the parse-tree > and find it more difficult to handle circular-lists than 'normal' > lists. I don't know why you would want that nor why it would make things easier, but as long as it suits you, that's fine. Regards, -- Nicolas Goaziou