Subject: bug#7258: 24.0.50; footnote-mode doesn't detect existing footnotes

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 20 Jan 2021 19:43:16 +0100

Tassilo Horn <[email-masked]> writes:

> 1) emacs -Q
> 2) C-x C-f ~/foo.txt
> 3) M-x footnote-mode
> 4) add some text with footnote (using C-c ! a)
> 5) Save and kill the buffer (C-x C-s / C-x k)
> 6) C-x C-f ~/foo.txt
> 7) Add some more text and footnotes, and see that footnote numbers start
>    again with 1 and you'll end up with duplicate footnotes.
>
> So right now, you have to write a document with footnotes in one go,
> which is pretty annoying...

This should now be fixed in Emacs 28 -- I made footnote-mode re-read all
the old footnotes.  Only lightly tested code.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no