summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-01-21 10:40:39 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-01-21 10:40:39 +0100
commitbbdecd1e64a07b3821714d905a58eaca12828cb6 (patch)
tree691012d02be5d00314e1f49f7c7f9ddec9899659
parent35e90ced2448a9451ad2a753166398bf5177a96c (diff)
downloadorg-mode-bbdecd1e64a07b3821714d905a58eaca12828cb6.tar.gz
org-element: Disable cache by default
* lisp/org-element.el (org-element-use-cache): Set default value to nil. Using cache introduces Emacs' freezes under not well known circumstances. Until this is sorted out, this variable should be nil, at least on "maint" branch.
-rw-r--r--lisp/org-element.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 537f3fe..9d7e435 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -4804,9 +4804,12 @@ indentation removed from its contents."
;; `org-element--cache-objects'.
-(defvar org-element-use-cache t
- "Non nil when Org parser should cache its results.
-This is mostly for debugging purpose.")
+(defvar org-element-use-cache nil
+ "Non-nil when Org parser should cache its results.
+
+WARNING: for the time being, using cache sometimes triggers
+freezes. Therefore, it is disabled by default. Activate it if
+you want to help debugging the issue.")
(defvar org-element-cache-sync-idle-time 0.6
"Length, in seconds, of idle time before syncing cache.")