branch: externals/org-transclusion
commit e9d7e24ce040d5f05c01705e649691c45fb798cd
Merge: aa3605913e 8f35f9e778
Author: nobiot <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #280 from AndreasMatthias/fix/reset-cache
---
 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)

Reply via email to