forked from mirrors/org-mode
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.
This commit is contained in:
parent
6c1ff952fe
commit
bf45090f4c
|
@ -6942,7 +6942,7 @@ known element in cache (it may start after END)."
|
||||||
(let ((current (org-with-point-at (org-element-property :begin up)
|
(let ((current (org-with-point-at (org-element-property :begin up)
|
||||||
(org-element-with-disabled-cache
|
(org-element-with-disabled-cache
|
||||||
(and (looking-at-p org-element-headline-re)
|
(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))
|
(when (eq 'headline (org-element-type current))
|
||||||
(org-element--cache-log-message
|
(org-element--cache-log-message
|
||||||
"Found non-robust headline that can be updated individually: %S"
|
"Found non-robust headline that can be updated individually: %S"
|
||||||
|
|
Loading…
Reference in a new issue