emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ivan Tadeu Ferreira Antunes Filho
Subject: [O] org-element-adopt-elements, append before children
Date: Sun, 2 Sep 2018 02:52:08 -0400

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 before or after the children, i.e.
(if append-before
  (nconc children (org-element-contents parent)) 
  (nconc (org-element-contents parent) children))

Would this be okay?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]