From: "Peter Münster" <pm@a16n.net>
To: 52104@debbugs.gnu.org
Subject: bug#52104: 29.0.50; sometimes ispell-message does not check the Subject field
Date: Thu, 25 Nov 2021 14:41:20 +0100 [thread overview]
Message-ID: <87mtlsqrnj.fsf@a16n.net> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 308 bytes --]
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
[-- Attachment #1.2: my.patch --]
[-- Type: text/x-patch, Size: 775 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
next reply other threads:[~2021-11-25 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 13:41 Peter Münster [this message]
2021-11-29 16:09 ` bug#52104: 29.0.50; sometimes ispell-message does not check the Subject field Lars Ingebrigtsen
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=87mtlsqrnj.fsf@a16n.net \
--to=pm@a16n.net \
--cc=52104@debbugs.gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.