org-element: Fix `org-element-context'
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 23 Nov 2012 22:46:52 +0000 (23:46 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 23 Nov 2012 22:46:52 +0000 (23:46 +0100)
commit89b8a8ca6daa3ccafa818a7085620eeee1ab9752
tree98e1568238e8c7961b05013c2241aafb8b9616ed
parent5dbccdb432a6cae66f0866a30379a352873ed15e
org-element: Fix `org-element-context'

* lisp/org-element.el (org-element-context): When point is between two
  objects, be sure to return the second one.
* testing/lisp/test-org-element.el: Add test.
lisp/org-element.el
testing/lisp/test-org-element.el