org-element: Fix re-parenting during cache synchronization
commit05be573e9212b63c2cfeced35bc68eb94c65e610
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 17 Jul 2014 16:11:49 +0000 (17 18:11 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 17 Jul 2014 16:12:59 +0000 (17 18:12 +0200)
treece0055969f1c6126bdd2433922ffd497a6af917d
parent33a344be337493d7ddce507eb43f9326ac9db077
org-element: Fix re-parenting during cache synchronization

* lisp/org-element.el (org-element--cache-process-request): Correctly
  re-parent elements in cache in some corner cases.
* testing/lisp/test-org-element.el (test-org-element/cache): Add tests.
lisp/org-element.el
testing/lisp/test-org-element.el