org-element: Generalize `org-element-adopt-element' into `org-element-adopt-elements'
commit3f57803fb4cbbcc5b7f1c38d6c6c7a287f847753
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 18 Aug 2012 08:13:35 +0000 (18 10:13 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 18 Aug 2012 08:13:35 +0000 (18 10:13 +0200)
tree90be6eb4bb2260ca3a8c5abacab9a9f9685ceea5
parent445a90ceeb30b0edf57dc79564cd3fa5fb4e0087
org-element: Generalize `org-element-adopt-element' into `org-element-adopt-elements'

* lisp/org-element.el (org-element-set-element): Rewrite function.
(org-element-adopt-elements): New function.
(org-element-adopt-element): Removed function.
(org-element--parse-elements, org-element--parse-objects): Use new function.
* testing/lisp/test-org-element.el: Update tests.
lisp/org-element.el
testing/lisp/test-org-element.el