org-element: Tiny speed-up for empty statistics cookies

* lisp/org-element.el (org-element--object-lex): Branch earlier for
empty statistics cookies.
This commit is contained in:
Nicolas Goaziou 2020-04-25 14:43:51 +02:00
parent 94c2ef7d09
commit b3a59c858d

View file

@ -4504,6 +4504,9 @@ to an appropriate container (e.g., a paragraph)."
((and ?f ((and ?f
(guard (memq 'footnote-reference restriction))) (guard (memq 'footnote-reference restriction)))
(org-element-footnote-reference-parser)) (org-element-footnote-reference-parser))
((and (or ?% ?/)
(guard (memq 'statistics-cookie restriction)))
(org-element-statistics-cookie-parser))
(_ (_
(or (and (memq 'timestamp restriction) (or (and (memq 'timestamp restriction)
(org-element-timestamp-parser)) (org-element-timestamp-parser))