From: Stefan Kangas Date: Sun, 9 Feb 2025 14:34:41 +0000 (+0100) Subject: Improve filling with footnote-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8bdc13c002542c2902e8971656f48fb3b27e2ed;p=emacs.git Improve filling with footnote-mode * lisp/mail/footnote.el (footnote-mode): Add regexp for footnotes to sentence-end-base to improve filling. (cherry picked from commit 64905eba2707f89c3befe99b36d14e24eeb9f8c0) --- diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index c4d10b74856..1e6265c79bf 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el @@ -894,6 +894,10 @@ play around with the following keys: (make-local-variable 'footnote-start-tag) (make-local-variable 'footnote-end-tag) (make-local-variable 'adaptive-fill-function) + (setq-local sentence-end-base + (rx (or (regexp sentence-end-base) + (seq (regexp sentence-end-base) + "[" (+ digit) "]")))) ;; Filladapt is a GNU ELPA package. (when (boundp 'filladapt-token-table)