Gnus development mailing list
 help / color / mirror / Atom feed
From: Paul van der Walt <paul@denknerd.org>
To: ding@gnus.org
Cc: Paul van der Walt <paul@denknerd.org>
Subject: [PATCH] message.el (message-subject-re-regexp): More liberal regex.
Date: Sat, 15 Aug 2015 18:48:38 +0200	[thread overview]
Message-ID: <1439657318-2423-1-git-send-email-paul@denknerd.org> (raw)
In-Reply-To: <87mvxsim78.fsf@free.fr>

* message.el (message-subject-re-regexp): Match French style ("Re :")
reply subject prefixes.
---
 lisp/ChangeLog  | 5 +++++
 lisp/message.el | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 324f473..05d68f0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-14  Paul van der Walt  <paul@denknerd.org>
+
+	* message.el (message-subject-re-regexp): Match French style ("Re :")
+	reply subject prefixes.
+
 2015-08-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* message.el (message-send-form-letter): Change (message (format ...))
diff --git a/lisp/message.el b/lisp/message.el
index 26655f3..54be212 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -300,7 +300,7 @@ any confusion."
 		 regexp))
 
 (defcustom message-subject-re-regexp
-  "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*"
+  "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)* ?:[ \t]*\\)*[ \t]*"
   "*Regexp matching \"Re: \" in the subject line."
   :group 'message-various
   :link '(custom-manual "(message)Message Headers")
-- 
2.5.0




  reply	other threads:[~2015-08-15 16:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87si7l4ndw.fsf@denknerd.org>
2015-08-15 11:43 ` Reply-prefix ("Re:") default regex Paul van der Walt
2015-08-15 15:51   ` Peter Münster
2015-08-15 16:48     ` Paul van der Walt [this message]
2016-02-07  2:52       ` [PATCH] message.el (message-subject-re-regexp): More liberal regex Lars Ingebrigtsen
2015-08-16  3:52     ` Reply-prefix ("Re:") default regex Eric Abrahamsen
2015-08-15 19:21   ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439657318-2423-1-git-send-email-paul@denknerd.org \
    --to=paul@denknerd.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).