org-element: New accessor for cache root
commita4b1fa7ca1bf63075c29a89f1379a4726313db68
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 11 Jan 2014 09:12:45 +0000 (11 10:12 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 11 Jan 2014 09:12:45 +0000 (11 10:12 +0100)
tree430c883731adffd0d27b67b108dc308a1488e685
parent525304cbdae5fdd13c661f6d0400a378ca47deef
org-element: New accessor for cache root

* lisp/org-element.el (org-element--cache-root): New function.
(org-element--cache-sync, org-element-cache-get): Use new function.

This is a workaround for `avl-tree--root' bug before Emacs 24.  Thanks
to Daniel Clemente for reporting it.
lisp/org-element.el