bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52104: 29.0.50; sometimes ispell-message does not check the Subject


From: Peter Münster
Subject: bug#52104: 29.0.50; sometimes ispell-message does not check the Subject field
Date: Thu, 25 Nov 2021 14:41:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Hi,

ispell-message does not check Subject fields, when it finds a sequence
with "re ". And in French, there are a lot of words ending with "re"...

Please find attached a patch, that fixes the problem.

The "Re: " is hardcoded here, just as in message-reply.

Kind regards,
-- 
           Peter
commit 686bd0550797d0ec6225267914cef5cb0e5a61f6
Author: Peter Münster <pm@a16n.net>
Date:   Thu Nov 25 14:25:18 2021 +0100

    Fix spelling of subject line
    
    * lisp/textmodes/ispell.el (ispell-message): Only subjects starting with
    "Re: " are real replies.

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 4087f7e5f2..ce8a82cda7 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -3977,7 +3977,7 @@ ispell-message
            (if (re-search-forward "^Subject: *" end-of-headers t)
                (progn
                  (goto-char (match-end 0))
-                 (if (and (not (looking-at ".*Re\\>"))
+                 (if (and (not (looking-at "Re: "))
                           (not (looking-at "\\[")))
                      (progn
                        (setq case-fold-search old-case-fold-search)

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]