Re: [O] org-export: how to copy the parsed tree?

2014-03-02 Thread Nicolas Goaziou
Hello, Vitalie Spinu writes: > Is there an idiomatic way to do this? Like constructors of org elements? > Or, one just starts with an empty '(headline) list You can even start with '(org-data nil). > and populate it with org-element-set-contents and > org-element-put-property? I would use `or

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Vitalie Spinu
>>> Nicolas Goaziou on Sat, 01 Mar 2014 22:02:55 +0100 wrote: [...] > In this case, I think I would build the tree, since data is duplicated > (e.g. "* H1"), not moved. Is there an idiomatic way to do this? Like constructors of org elements? Or, one just starts with an empty '(headline) list

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Nicolas Goaziou
Vitalie Spinu writes: > Thanks Nocolas. I need to copy only a subtree associated with a > headline. In a nutshell I need to "flatten" the tree of headlines for > the csv type exporter. That is, I need to replicate the parent headlines > across the children. For example > >* H1 > bla

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Vitalie Spinu
>>> Nicolas Goaziou on Sat, 01 Mar 2014 12:36:30 +0100 wrote: > Hello, > Vitalie Spinu writes: >> Is there an easy way to copy org sub-tree in :filter-parse-tree? >> >> The structure of the parsed tree is somewhat complicated with recursive >> references to parents in multiple places. So

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Nicolas Goaziou
Hello, Vitalie Spinu writes: > Is there an easy way to copy org sub-tree in :filter-parse-tree? > > The structure of the parsed tree is somewhat complicated with recursive > references to parents in multiple places. So, copy-tree infloops. This is not really an answer to your question, but do y

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Vitalie Spinu writes: > >> Is there an easy way to copy org sub-tree in :filter-parse-tree? >> >> The structure of the parsed tree is somewhat complicated with recursive >> references to parents in multiple places. So, copy-tree infloops. > > You will get a better answe

Re: [O] org-export: how to copy the parsed tree?

2014-03-01 Thread Thorsten Jolitz
Vitalie Spinu writes: > Is there an easy way to copy org sub-tree in :filter-parse-tree? > > The structure of the parsed tree is somewhat complicated with recursive > references to parents in multiple places. So, copy-tree infloops. You will get a better answer most likely, but with (org-no-prop

[O] org-export: how to copy the parsed tree?

2014-02-28 Thread Vitalie Spinu
Hi, Is there an easy way to copy org sub-tree in :filter-parse-tree? The structure of the parsed tree is somewhat complicated with recursive references to parents in multiple places. So, copy-tree infloops. Thanks, Vitalie