]> git.eshelyaron.com Git - emacs.git/commit
* lisp/mail/footnote.el: Minor simplifications
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 1 May 2019 17:14:31 +0000 (13:14 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 1 May 2019 17:14:31 +0000 (13:14 -0400)
commitc9b820ddcfb7e44b4aa1ac349de9cf8453bca6bd
tree81386134a0f3fba3782a4f6469e6be1ab6b161c4
parentd4fa998c3142b5ae13664295dcf2136397b05f5a
* lisp/mail/footnote.el: Minor simplifications

Remove redundant :group args.
(footnote-mode-hook): Let define-minor-mode define it.
(footnote--style-p): Delete function.
(footnote--index-to-string): Inline it instead, and simplify.
(footnote-cycle-style): Use a pointer into the alist as the "index"
instead of a number.
(footnote-set-style): Use footnote-style-alist as the completion table.
Prefer `assq` over `footnote--assoc-index`.
(footnote--assoc-index): Delete function.
(footnote--renumber): Remove first (unused) argument; Adjust all callers.
(footnote--sort): Use car-less-than-car.
lisp/mail/footnote.el