emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 5840e4d 6/9: org-element-cache Do not make headline


From: ELPA Syncer
Subject: [elpa] externals/org 5840e4d 6/9: org-element-cache Do not make headline non-robust after changes at :end
Date: Wed, 15 Dec 2021 23:57:30 -0500 (EST)

branch: externals/org
commit 5840e4d61abc9238c87e67e001fc79cef29100e6
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    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.
---
 lisp/org-element.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 2e1c108..4ed2408 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -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))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]