diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-05-02 09:00:53 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-05-02 09:00:53 -0400 |
commit | 0efaae78f2b66de7ebeff7d1c16771ddafdf2d06 (patch) | |
tree | bd1c649ff6001c334bf5976113952a1da492a730 /lisp/registry.el | |
parent | cd3a7f35de8b0f39524912529d6fceda26571276 (diff) | |
download | emacs-0efaae78f2b66de7ebeff7d1c16771ddafdf2d06.tar.gz |
* lisp/mail/footnote.el: Use dolist and hoist regexps out of loops
(footnote--refresh-footnotes): Use pcase-dolist; compute regexp once
outside of the loops. Use less confusing `literal` arg to `replace-match`
and specify `fixedcase` since footnote--index-to-string already chose
the proper case for us.
(footnote--renumber): Use dolist; compute regexp once
outside of the loops; shortcircuit when number is unchanged.
(footnote--text-under-cursor): Rewrite.
(footnote--make-hole): Use dolist.
(footnote-add-footnote): CSE.
(footnote-delete-footnote): Use dolist; compute regexp once
outside of the loop.
(footnote-delete-footnote): Don't renumber if there's no footnote left.
(footnote-renumber-footnotes): Use dolist.
Diffstat (limited to 'lisp/registry.el')
0 files changed, 0 insertions, 0 deletions