org-element: Speed-up for `org-element-at-point'
commit71c8474ae976b2d05094dcb39849dc65523c22e4
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 24 Nov 2013 23:26:42 +0000 (25 00:26 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Tue, 26 Nov 2013 17:18:33 +0000 (26 18:18 +0100)
treef5778bcb3412d5a114ce972584c41fc0b0ad5fb7
parent2b2288600568d9723bcf90789978a013bc7454a7
org-element: Speed-up for `org-element-at-point'

* lisp/org-element.el (org-element-at-point): Rewrite function. Remove
  optional argument.

Include an opportunistic search at the beginning of the function.  It
drastically improves speed on large sections for a small overhead on
small ones.
lisp/org-element.el