0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

org-element-cache Do not make headline non-robust after changes at :end

* lisp/org-element.el (org-element--cache-for-removal): When changes
involve :end of a headline, allow it to be re-parsed synchronously.
This commit is contained in:
Ihor Radchenko 2021-12-16 11:33:56 +08:00
parent 69985367cd
commit 5840e4d61a
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -6716,7 +6716,7 @@ known element in cache (it may start after END)."
;; The change is not inside headline. Not
;; updating here.
(not (<= beg (org-element-property :begin up)))
(not (>= end (org-element-property :end up)))
(not (> end (org-element-property :end up)))
(let ((current (org-with-point-at (org-element-property :begin up)
(org-element-with-disabled-cache
(org-element--current-element (point-max))))))