summaryrefslogtreecommitdiff
path: root/.gnus
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-04-14 10:07:31 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-04-14 10:11:47 +0200
commit4e27c304ba51e64af8fd0e1295caf86e71e338d4 (patch)
treecad369704742ef5629bf835b71c614f3068d501e /.gnus
parent21e96cb6c4b678bff9d8345220bfe19054395c73 (diff)
downloaddotfiles-4e27c304ba51e64af8fd0e1295caf86e71e338d4.tar.xz
Fix message-subject-re-regexp
Otherwise "Re: Repeat-mode" turns into "Re: peat-mode" when replying.
Diffstat (limited to '.gnus')
-rw-r--r--.gnus23
1 files 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