mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-12-27 10:55:04 +00:00
org-element.el (org-element-context): Prevent an error when getting the context of a table rule
* org-element.el (org-element-context): Prevent an error when getting the context of a table rule. Thanks to Eric Abrahamsen for reporting this bug.
This commit is contained in:
parent
d3361ce350
commit
a5a676e609
@ -4751,7 +4751,8 @@ Providing it allows for quicker computation."
|
|||||||
:contents-begin element))
|
:contents-begin element))
|
||||||
(cend (org-element-property
|
(cend (org-element-property
|
||||||
:contents-end element)))
|
:contents-end element)))
|
||||||
(and (>= origin cbeg)
|
(and cbeg cend ; cbeg is nil for table rules
|
||||||
|
(>= origin cbeg)
|
||||||
(<= origin cend)
|
(<= origin cend)
|
||||||
(progn (goto-char cbeg) (setq end cend)))))
|
(progn (goto-char cbeg) (setq end cend)))))
|
||||||
(and (eq type 'keyword)
|
(and (eq type 'keyword)
|
||||||
|
Loading…
Reference in New Issue
Block a user