org-element: Fix `org-element-at-point' at eob
commitf75f3dd1c12f7f6fd51c46f9b31d03f3c39a49e1
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 9 Jan 2014 08:26:51 +0000 (9 09:26 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 9 Jan 2014 10:55:49 +0000 (9 11:55 +0100)
tree0a03cb41748ce4b7372757fd5d043eabaaa1772d
parente0f46e9a1da0d511ceac24202d26943fab653069
org-element: Fix `org-element-at-point' at eob

* lisp/org-element.el (org-element-at-point): Return appropriate value
  when point is at end of buffer and a cached element was found above.
lisp/org-element.el