Re: [O] org-element-adopt-elements, append before children

2018-09-03 Thread Nicolas Goaziou
Hello, Ivan Tadeu Ferreira Antunes Filho writes: > Org element insert before would insert the new element before the selected > element, not as the first element child (I think) > > > At the moment I'm finding the first child, checking if it is non nil, and > if it is not nil, dolist insert befo

Re: [O] org-element-adopt-elements, append before children

2018-09-02 Thread Ivan Tadeu Ferreira Antunes Filho
Org element insert before would insert the new element before the selected element, not as the first element child (I think) At the moment I'm finding the first child, checking if it is non nil, and if it is not nil, dolist insert before the first child, else, adopt the elements. Which is a fairl

Re: [O] org-element-adopt-elements, append before children

2018-09-02 Thread Nicolas Goaziou
Hello, Ivan Tadeu Ferreira Antunes Filho writes: > At the moment org-element-adopt-elements always appends the new elements > after the elements original children. In many cases one might want to > append before the original children. > > I want to propose adding an argument to org-element-ado

[O] org-element-adopt-elements, append before children

2018-09-01 Thread Ivan Tadeu Ferreira Antunes Filho
At the moment org-element-adopt-elements always appends the new elements after the elements original children. In many cases one might want to append before the original children. I want to propose adding an argument to org-element-adopt-elements that defines if the elements should be added befo