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:
parent
94c2ef7d09
commit
b3a59c858d
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue