From bf45090f4c0a9da922ae2abe6250f5405a39ba53 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Thu, 3 Aug 2023 08:28:01 +0300 Subject: [PATCH] org-element--cache-for-removal: Fix changing heading granularity * lisp/org-element.el (org-element--cache-for-removal): Do not update heading using object granularity. `org-element-at-point' parses headings without :title objects and cache updates should not change this. --- 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 df43ebcf0..e7e66927f 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -6942,7 +6942,7 @@ known element in cache (it may start after END)." (let ((current (org-with-point-at (org-element-property :begin up) (org-element-with-disabled-cache (and (looking-at-p org-element-headline-re) - (org-element-headline-parser)))))) + (org-element-headline-parser nil 'fast)))))) (when (eq 'headline (org-element-type current)) (org-element--cache-log-message "Found non-robust headline that can be updated individually: %S"