From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter =?UTF-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.bugs Subject: bug#52104: 29.0.50; sometimes ispell-message does not check the Subject field Date: Thu, 25 Nov 2021 14:41:20 +0100 Message-ID: <87mtlsqrnj.fsf@a16n.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40582"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 52104@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 25 14:48:20 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqF6p-000AKY-52 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 14:48:19 +0100 Original-Received: from localhost ([::1]:53012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqF6n-0007nJ-Qy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Nov 2021 08:48:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqF6Y-0007lT-Tu for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 08:48:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqF6Y-00067u-Lb for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 08:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqF6Y-0003aO-Kh for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 08:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Nov 2021 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52104 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Emacs Bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.163784806913761 (code B ref -1); Thu, 25 Nov 2021 13:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2021 13:47:49 +0000 Original-Received: from localhost ([127.0.0.1]:56202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqF6L-0003Zt-4m for submit@debbugs.gnu.org; Thu, 25 Nov 2021 08:47:49 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqF6I-0003Zd-WB for submit@debbugs.gnu.org; Thu, 25 Nov 2021 08:47:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqF6H-0007e6-JQ for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 08:47:46 -0500 Original-Received: from server.a16n.net ([178.33.238.77]:49650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqF6E-00064m-TG for bug-gnu-emacs@gnu.org; Thu, 25 Nov 2021 08:47:45 -0500 Original-Received: from ws.localdomain (arennes-651-1-236-158.w90-32.abo.wanadoo.fr [90.32.223.158]) by server.a16n.net (Postfix) with ESMTPSA id 8543A43E04CA for ; Thu, 25 Nov 2021 14:41:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a16n.net; s=a16n; t=1637847681; bh=+3nQnpWyP7wFAZfAG3Ng9X9y+i5BDAJwjt9ebKg03g4=; h=From:To:Subject:Date; b=Xb9DwDy1w15kNpaSu3toCzK6CQUmiaXBobTvtwHmR9BlcD4Ui7jQSQQjOwbWiVo77 0MDYATUiZwENsNKUQ9XPAy6ecs3Z5DPVHigafUKlqxAr3i2uwFaxSh+zX0LpDHskcZ RNaQHPNSR9Db9l13Ndy9lCf4KyyvhZZ/hzt0dD10c5q36/lzuIwyjCe7WmHGvGOIy/ 4dJTR4/ov9aPw8qTP5RfgpBCPllPj/tTMF99rvn3zd239arumNPGDwwG1EU5BKYD82 S6E9T3YAeFL79We5M6WTF2G9rn8BmjveBJ525Z0CmtXJjdGZVGAyvUHNWYZwNQC2tA cbbYsmpIxQwwA== Original-Received: by ws.localdomain (Postfix, from userid 1000) id E536C20548; Thu, 25 Nov 2021 14:41:20 +0100 (CET) Received-SPF: pass client-ip=178.33.238.77; envelope-from=pm@a16n.net; helo=server.a16n.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220829 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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, =2D-=20 Peter --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=my.patch Content-Transfer-Encoding: quoted-printable commit 686bd0550797d0ec6225267914cef5cb0e5a61f6 Author: Peter M=C3=BCnster Date: Thu Nov 25 14:25:18 2021 +0100 Fix spelling of subject line =20=20=20=20 * 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 =2D-- 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)) =2D (if (and (not (looking-at ".*Re\\>")) + (if (and (not (looking-at "Re: ")) (not (looking-at "\\["))) (progn (setq case-fold-search old-case-fold-search) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iGoEARECACoWIQS/5hHRBUjla4uZVXU6jitvQ7HLaAUCYZ+SgAwccG1AYTE2bi5u ZXQACgkQOo4rb0Oxy2iaIQCeIUJT11UkeZlCf0VXSOVL5bi+begAoOyd8fe7YkdI 31S+yFYA1fzyKk+d =4CJp -----END PGP SIGNATURE----- --==-=-=--