Commit 8e7728a5 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Fix thinko in previous footnote.el change

* lisp/mail/footnote.el (footnote--regenerate-alist): Don't error
out when there's no footnotes.
parent bacc24b5
Pipeline #8877 failed with stages
in 6 minutes and 25 seconds
......@@ -916,8 +916,7 @@ play around with the following keys:
(defun footnote--regenerate-alist ()
(save-excursion
(goto-char (point-min))
(if (not (re-search-forward footnote-section-tag-regexp nil t))
(error "No footnote section in this buffer")
(when (re-search-forward footnote-section-tag-regexp nil t)
(setq footnote--markers-alist
(cl-loop
with start-of-footnotes = (match-beginning 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment