]> git.eshelyaron.com Git - emacs.git/commitdiff
; Simplify last commit
authorStefan Kangas <stefankangas@gmail.com>
Sun, 9 Feb 2025 14:56:35 +0000 (15:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 10 Feb 2025 20:55:30 +0000 (21:55 +0100)
* lisp/mail/footnote.el (footnote-mode): Simplify last change.

(cherry picked from commit 5c07fc7557ad9dd353f18a270042d9e844c85bef)

lisp/mail/footnote.el

index 1e6265c79bfd85b7bb89c9f1c43f7e44716bd514..8ce78505d20aafc41978a1ed737d847d088a5ce3 100644 (file)
@@ -895,9 +895,8 @@ play around with the following keys:
     (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) "]"))))
+                (rx (regexp sentence-end-base)
+                    (? (seq "[" (+ digit) "]"))))
 
     ;; Filladapt is a GNU ELPA package.
     (when (boundp 'filladapt-token-table)