Browse Source

org-element: Re-enable cache

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

This fixes a bug introduced in 0a5f5117a3e66982e22998006d4afa2de0d7e9b1.
Nicolas Goaziou 11 năm trước cách đây
mục cha
commit
5d8cc35e4a
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lisp/org-element.el

+ 2 - 1
lisp/org-element.el

@@ -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)