org-element: Disable cache for orgstruct-mode
commit0b97a551704d50ae848c59d00b0d425554891e53
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Jan 2016 23:17:39 +0000 (1 00:17 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Jan 2016 23:17:39 +0000 (1 00:17 +0100)
treed44e712ae02b16ae50fdd4e9605fb169f8467471
parentffb08b28cd504ba543542d467788c4dc7dc9a69b
org-element: Disable cache for orgstruct-mode

* lisp/org-element.el (org-element--cache-active-p):
(org-element-cache-reset): Do not activate cache outside Org buffers,
even if using "orgstruct-mode".

Reported-by: "Mark A. Hershberger" <mah@nichework.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/104648>
lisp/org-element.el