From: Robert Pluim Date: Fri, 14 Feb 2025 15:26:49 +0000 (+0100) Subject: Use 'password-colon-equivalents' when matching "Re" variants X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0cac28e7adea1364e57d6d23dec53f9488aa24d6;p=emacs.git Use 'password-colon-equivalents' when matching "Re" variants * lisp/mail/mail-utils.el (mail--wrap-re-regexp): Use 'password-colon-equivalents'. (cherry picked from commit 0c8ec155f60bdebaf2f7a86e57e7c559c5552821) --- diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el index d7748ffe6aa..d51e2747ba3 100644 --- a/lisp/mail/mail-utils.el +++ b/lisp/mail/mail-utils.el @@ -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]*"))