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
1 changed files with 1 additions and 1 deletions

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))))))