org-element: Use internal version of `org-list-struct'
commitca99372d8370847927cb94b5c2122c469d0de8de
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 31 May 2013 18:13:29 +0000 (31 20:13 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Fri, 31 May 2013 18:14:02 +0000 (31 20:14 +0200)
tree7eb1d58b17ca128705eabf7d14187418cfc73c73
parent1399c34e2a0b52602dad74e3e67b281413b1dca6
org-element: Use internal version of `org-list-struct'

* lisp/org-element.el (org-element--list-struct): New function.
(org-element-plain-list-parser, org-element--current-element): Use new
function.

This patch removes dependency on org-list.el to parsing lists. For
now, it leads to code duplication, but, ultimately (i.e., when parsing
will be faster), org-list.el will delegate the parsing job to
org-element. The new implementation is also faster than the previous one.
lisp/org-element.el