org-element: Re-enable cache

* lisp/org-element.el (org-element--cache-put): Effectively store
  elements in cache.

This fixes a bug introduced in 0a5f5117a3.
This commit is contained in:
Nicolas Goaziou 2014-03-17 21:25:37 +01:00
parent 6e0e76308c
commit 5d8cc35e4a
1 changed files with 2 additions and 1 deletions

View File

@ -5032,7 +5032,8 @@ relative to ELEMENT and store it in the objects cache."
(cond ((cdr keys) (org-element--cache-key (cdr keys)))
(org-element--cache-sync-requests
(aref (car org-element--cache-sync-requests) 0))))
org-element--cache-sync-keys))))
org-element--cache-sync-keys)))
(avl-tree-enter org-element--cache element))
;; Headlines are not stored in cache, so objects in titles are
;; not stored either.
((eq (org-element-type element) 'headline) nil)