From 4e27c304ba51e64af8fd0e1295caf86e71e338d4 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 14 Apr 2021 10:07:31 +0200 Subject: Fix message-subject-re-regexp Otherwise "Re: Repeat-mode" turns into "Re: peat-mode" when replying. --- .gnus | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.gnus b/.gnus index c2f3e87..18873aa 100644 --- a/.gnus +++ b/.gnus @@ -42,18 +42,17 @@ (t . "%F")) gnus-gcc-mark-as-read t - ;; Add to the list of reply prefixes: - ;; - AW - ;; - no-break spaces - ;; - bug#NNN - ;; - [External] - message-subject-re-regexp (rx bol (+ (* space) - (or "re" "Re" "RE" - "aw" "Aw" "AW" - "sv" "Sv" "SV" - (seq "bug#" (+ digit)) - (seq "[" (+ word) "]")) - (? (* space) (? ":") (* space))))) + ;; This regexp is used both in Gnus summary buffers to detect + ;; and elide similar subjects in a thread, and by message mode + ;; when replying, to determine what to strip from the subject. + message-subject-re-regexp + (rx bol (+ (* space) + (or "re" "Re" "RE" + "aw" "Aw" "AW" + "sv" "Sv" "SV" + (seq "bug#" (+ digit)) + "[External]") + (* space) ":" (* space)))) (gnus-add-configuration '(summary -- cgit v1.2.3