org-element: Fix infloop at the end of an incomplete table row
commit2b2b2c5c99753cf71309ae8a82be915875ad5186
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 17 Apr 2014 19:37:07 +0000 (17 21:37 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 17 Apr 2014 19:37:07 +0000 (17 21:37 +0200)
tree129135dbe142811343be39af0d1d24d9ba03e72b
parentdd8b3cbf3605f8be64d72ea8e49a08389d78eb80
org-element: Fix infloop at the end of an incomplete table row

* lisp/org-element.el (org-element-context): Fix infloop.  Be more
  cautious when point is at the end of buffer.

* testing/lisp/test-org-element.el (test-org-element/context): Add
  test.
lisp/org-element.el
testing/lisp/test-org-element.el