[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Can `org-element-map' act on secondary-strings?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Can `org-element-map' act on secondary-strings? |
Date: |
Mon, 08 Jul 2013 15:00:33 +0200 |
Thorsten Jolitz <address@hidden> writes:
> Nicolas Goaziou <address@hidden> 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
- [O] Can `org-element-map' act on secondary-strings?, Thorsten Jolitz, 2013/07/06
- Re: [O] Can `org-element-map' act on secondary-strings?, Nicolas Goaziou, 2013/07/06
- Re: [O] Can `org-element-map' act on secondary-strings?, Thorsten Jolitz, 2013/07/08
- Re: [O] Can `org-element-map' act on secondary-strings?, Nicolas Goaziou, 2013/07/08
- Re: [O] Can `org-element-map' act on secondary-strings?, Thorsten Jolitz, 2013/07/08
- Re: [O] Can `org-element-map' act on secondary-strings?,
Nicolas Goaziou <=
- Re: [O] Can `org-element-map' act on secondary-strings?, Thorsten Jolitz, 2013/07/08
- Re: [O] Can `org-element-map' act on secondary-strings?, Jambunathan K, 2013/07/08
- Re: [O] Can `org-element-map' act on secondary-strings?, Thorsten Jolitz, 2013/07/08