mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 07:32:52 +00:00
org-element--cache-process-request: Fix edge case
* lisp/org-element.el (org-element--cache-process-request): Avoid applying OFFSET during Phase 3 twice in already offseted elements that are before an obsolete element. Reported-by: Sharon Kimble
This commit is contained in:
parent
65def05f6c
commit
a5e3a06b2e
|
@ -6382,6 +6382,10 @@ completing the request."
|
|||
;; We altered the tree structure. The tree
|
||||
;; traversal needs to be restarted.
|
||||
(setf (org-element--request-key request) key)
|
||||
;; Make sure that we restart tree traversal
|
||||
;; past already shifted elements (before the
|
||||
;; removed DATA).
|
||||
(setq start key)
|
||||
(setf (org-element--request-parent request) parent)
|
||||
;; Restart tree traversal.
|
||||
(setq node (org-element--cache-root)
|
||||
|
|
Loading…
Reference in a new issue