org-element--cache-submit-request: Re-enable future-change
* lisp/org-element.el (org-element--cache-submit-request): Re-enable FUTURE-CHANGE argument in `org-element--cache-sync' call. Without this argument, cache can be processed incorrectly because elements within changed region may be shifted and not deleted in subsequent phase 0 request.
This commit is contained in:
parent
a78282746d
commit
f7403e56eb
|
@ -6668,9 +6668,7 @@ change, as an integer."
|
||||||
;; yet to the otherwise correct part of the cache (i.e, before
|
;; yet to the otherwise correct part of the cache (i.e, before
|
||||||
;; the first request).
|
;; the first request).
|
||||||
(org-element--cache-log-message "Adding new phase 0 request")
|
(org-element--cache-log-message "Adding new phase 0 request")
|
||||||
;; FIXME: Disabling this optimisation to hunt errors.
|
(when next (org-element--cache-sync (current-buffer) end beg))
|
||||||
;; (when next (org-element--cache-sync (current-buffer) end beg))
|
|
||||||
(when next (org-element--cache-sync (current-buffer) end))
|
|
||||||
(let ((first (org-element--cache-for-removal beg end offset)))
|
(let ((first (org-element--cache-for-removal beg end offset)))
|
||||||
(if first
|
(if first
|
||||||
(push (let ((first-beg (org-element-property :begin first))
|
(push (let ((first-beg (org-element-property :begin first))
|
||||||
|
|
Loading…
Reference in New Issue