From: Lars Ingebrigtsen Date: Thu, 21 Jan 2021 11:45:24 +0000 (+0100) Subject: Fix thinko in previous footnote.el change X-Git-Tag: emacs-28.0.90~4171 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e7728a5bfaf99efd3fb9ea7dd42dabd11a00b5c;p=emacs.git Fix thinko in previous footnote.el change * lisp/mail/footnote.el (footnote--regenerate-alist): Don't error out when there's no footnotes. --- diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index 9c1a738035e..995ae5f9160 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el @@ -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)