(footnote-mode-map): Move initialization into the declaration.
(footnote-minor-mode-map): Define it rather than changing global-map.
(footnote-mode): Use define-minor-mode.
for most options that customizing them doesn't affect buffers
already displaying footnotes.
(Footnote-refresh-footnotes, Footnote-renumber-footnotes): Fix
handling of text properties and identical start/end tags. Do
not use format when renumbering.
(Footnote-set-style): Make it work.
(Footnote-insert-numbered-footnote): Simplify.
(Footnote-narrow-to-footnotes, Footnote-insert-footnote)
(Footnote-goto-footnote): Fix handling of empty section tag.
(Footnote-delete-footnote): Fix handling of identical start/end
tags, empty section tag, and spaced footnotes. Do not use
kill-region.
(footnote-mode): Make most options buffer-local to avoid that
customizing messes up handling of footnotes in buffers that
already display them.
(Footnote-index-to-string, Footnote-current-regexp)
(Footnote-cycle-style, Footnote-set-style): Use it instead of
footnote-style.
(footnote-mode): Make footnote-current style buffer-local instead
of footnote-style, and initialize it to footnote-style.
(footnote-style): Update docstring.
(footnote-section-tag-regexp): Customize.
(footnote-start-tag, footnote-end-tag): New option.
(footnote-latin-regexp): New variable.
(Footnote-latin): New function.
(footnote-style-alist): Add element for latin style.
(footnote-style): Moved.
(Footnote-goto-footnote): Use eq to test arg.