org-element: Fix `org-element-context' when in recursive objects
commitdaf8cf030c21260b2615c303653913cdf2907e00
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 5 Oct 2012 12:24:45 +0000 (5 14:24 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 5 Oct 2012 13:02:55 +0000 (5 15:02 +0200)
treefd0a548dbac4f903e849183cfe27c32dc2ae334e
parent21478e1733e01cdf3a3f91e8b56f0d3aa3617fd5
org-element: Fix `org-element-context' when in recursive objects

* lisp/org-element.el (org-element-context,
  org-element--get-next-object-candidates): Fix `org-element-context'.
  In particular, the restrictions for an object may be different from
  those of its container (i.e. table rows and table cells).
* testing/lisp/test-org-element.el: Add tests.
lisp/org-element.el
testing/lisp/test-org-element.el