[Top][All Lists]

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

[elpa] externals/org e156e54251: org-clone-local-variables: Prevent carr

From: ELPA Syncer
Subject: [elpa] externals/org e156e54251: org-clone-local-variables: Prevent carrying over cache data
Date: Fri, 3 Jun 2022 23:57:43 -0400 (EDT)

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

    org-clone-local-variables: Prevent carrying over cache data
    * lisp/org-macs.el (org-unique-local-variables): Add newly added cache
    variables.  They must not be copied by `org-clone-local-variables'.
    Otherwise, random failure may happen when cache does not correspond to
    the buffer text.
 lisp/org-macs.el | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index bb3689e290..19e5f42e92 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -587,7 +587,17 @@ ones and overrule settings in the other lists."
 (defconst org-unique-local-variables
-    org-element--cache-objects
+    org-element--headline-cache
+    org-element--cache-change-tic
+    org-element--cache-change-warning
+    org-element--cache-gapless
+    org-element--cache-hash-left
+    org-element--cache-hash-right
+    org-element--cache-size
+    org-element--headline-cache-size
+    org-element--cache-sync-keys-value
+    org-element--cache-diagnostics-ring
+    org-element--cache-diagnostics-ring-size

reply via email to

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