]> git.eshelyaron.com Git - emacs.git/commitdiff
Use 'password-colon-equivalents' when matching "Re" variants
authorRobert Pluim <rpluim@gmail.com>
Fri, 14 Feb 2025 15:26:49 +0000 (16:26 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Feb 2025 09:35:16 +0000 (10:35 +0100)
* lisp/mail/mail-utils.el (mail--wrap-re-regexp): Use
'password-colon-equivalents'.

(cherry picked from commit 0c8ec155f60bdebaf2f7a86e57e7c559c5552821)

lisp/mail/mail-utils.el

index d7748ffe6aa83c52f5e333c8db62230f93f4b109..d51e2747ba34a8f70189ac8eeb9431ee1b2be3fd 100644 (file)
@@ -52,8 +52,10 @@ also the To field, unless this would leave an empty To field."
           re
           ; Re(1) or Re[1] or Re^1
           "\\(([0-9]+)\\|\\[[0-9]+\\]\\|\\^[0-9]+\\)?"
-          ; SPC/NBSP followed by colon and TAB/SPC
-          " ?\u00a0*[::][ \t]*"
+          ; SPC/NBSP followed by various colon variants and TAB/SPC
+          " ?\u00a0*"
+          "[" password-colon-equivalents "]"
+          "[ \t]*"
           ; Handle repetition, eg "Re[1]: Re[2]:"
           "\\)*"
           "[ \t]*"))