org-element: Fix `org-element-context' at eob
commit13691bde32a2ee336642783b88554017cdb73954
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 23 Feb 2014 11:42:08 +0000 (23 12:42 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 23 Feb 2014 12:49:41 +0000 (23 13:49 +0100)
tree270089579ac8e5c5e95adc9d4a8e12970bcce50a
parent3f55b452807c16c900c125063bac938e43860c64
org-element: Fix `org-element-context' at eob

* lisp/org-element.el (org-element-context): If function is called at
  the end of buffer, return any object that ends there.
* testing/lisp/test-org-element.el (test-org-element/context): Add
  test.
lisp/org-element.el
testing/lisp/test-org-element.el