branch: externals/org-transclusion
commit 8f35f9e778325529d7233e8ff6252c9f90a80ee8
Author: Andreas Matthias <[email protected]>
Commit: Andreas Matthias <[email protected]>
fix: Reset org-element-cache before exiting live-sync
---
org-transclusion.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/org-transclusion.el b/org-transclusion.el
index 898dcdf926..0b97a62680 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -732,6 +732,10 @@ the state before live-sync started."
(if (not (org-transclusion-within-live-sync-p))
(user-error "Not within a transclusion in live-sync")
(text-clone-delete-overlays)
+ (let* ((src-ov (car (org-transclusion-live-sync-buffers)))
+ (src-buf (overlay-buffer src-ov)))
+ (with-current-buffer src-buf
+ (org-element-cache-reset)))
;; Re-activate hooks inactive during live-sync
(org-transclusion-activate)
(org-transclusion-refresh)