org-element: Small optimization
commit21258060ad0f46be2d967fda6c6346a7f5723b8c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 14:31:59 +0000 (31 16:31 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 31 Aug 2014 14:31:59 +0000 (31 16:31 +0200)
treef725d0ec9ec21b90d4eab9fb59d4bb6cfe910155
parent539eac92111aa9f920fde3015dbd9598e20b3e5c
org-element: Small optimization

* lisp/org-element.el (org-element--current-element): Only look after
  planning lines right after parsing a section.
(org-element--next-mode): New function.
(org-element--parse-elements, org-element--parse-to): Use new
function.
lisp/org-element.el