summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-05 18:06:31 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-05 18:06:31 +0100
commit332da69b3c3ca222943728c20287e4ace6d40e61 (patch)
treed1e45ffac54c72d0c77ee794261e664f191128cb
parent273391c978d2e9759a9a389bf5d5eb9b03b8fe98 (diff)
downloadorg-mode-332da69b3c3ca222943728c20287e4ace6d40e61.tar.gz
element: Fix table.el parsing... again!
* lisp/org-element.el (org-element--current-element): Properly parse table.el tables ending at limit. Reported-by: Kaushal Modi <kaushal.modi@gmail.com> <http://lists.gnu.org/r/emacs-orgmode/2021-01/msg00067.html>
-rw-r--r--lisp/org-element.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-element.el b/lisp/org-element.el
index f098479..0f0e01e 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -3971,7 +3971,7 @@ element it has to parse."
(cond
;; Must end with a full rule.
((not (re-search-forward non-table.el-line limit 'move))
- (beginning-of-line)
+ (if (bolp) (forward-line -1) (beginning-of-line))
(looking-at rule-regexp))
;; Ignore pseudo-tables with a single
;; rule.