From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#32651: flyspell marks doublons when not the same case Date: Thu, 6 Sep 2018 20:16:10 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004cdd03057538b95a" X-Trace: blaine.gmane.org 1536261304 11125 195.159.176.226 (6 Sep 2018 19:15:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 19:15:04 +0000 (UTC) To: 32651@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 21:15:00 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxzk3-0002lm-Uc for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 21:15:00 +0200 Original-Received: from localhost ([::1]:35132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxzm9-0008SI-S3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 15:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxzm3-0008Rz-Ov for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxzm2-0000X9-Mj for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:17:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxzm2-0000X1-Hq for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxzm2-0006Of-Ab for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2018 19:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32651 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.153626138524533 (code B ref -1); Thu, 06 Sep 2018 19:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2018 19:16:25 +0000 Original-Received: from localhost ([127.0.0.1]:48405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxzlQ-0006Nb-5j for submit@debbugs.gnu.org; Thu, 06 Sep 2018 15:16:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxzlN-0006NN-S8 for submit@debbugs.gnu.org; Thu, 06 Sep 2018 15:16:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxzlI-00008V-0w for submit@debbugs.gnu.org; Thu, 06 Sep 2018 15:16:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxzlH-00008Q-TC for submit@debbugs.gnu.org; Thu, 06 Sep 2018 15:16:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxzlG-0008RK-UF for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:16:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxzlG-00007T-6n for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:16:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxzlG-00007L-1V for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 15:16:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37747) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fxzlF-0001N2-Tw for bug-emacs@gnu.org; Thu, 06 Sep 2018 15:16:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxzlE-00006d-Up for bug-emacs@gnu.org; Thu, 06 Sep 2018 15:16:13 -0400 Original-Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:36417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxzlE-000069-O0 for bug-emacs@gnu.org; Thu, 06 Sep 2018 15:16:12 -0400 Original-Received: by mail-oi0-x230.google.com with SMTP id r69-v6so22713341oie.3 for ; Thu, 06 Sep 2018 12:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=OZWGqgcqGgWjZurCBgDA7jcYG1zeIbAlcoEnUyxDyms=; b=Ds9+TGkLlUzKQRt71+JgCpOpFWD6j9m+FccqvvyA12xXzMC35wZYCUmb+zzA4ocTLs wVqnokmZCIwwGcEgcBClah3QN3X0FclP6X1kPiyXP1azyl2eTkT6nz/YtiTnZSc+i64h 4X2iF9rLQ+GIvlhRehO6gqDRCXlnu1ofcacLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OZWGqgcqGgWjZurCBgDA7jcYG1zeIbAlcoEnUyxDyms=; b=QkG8K4tPVxmWksBmeupOLcUlu8LyAjdmp68XKkVUVXeKqr4XlU8uqrQ1n/LgM14P2n oN++Kpd3GQfOGr8T0bppz4lLDoJ535UoHiMp1zVB4ETfi+ul8JdJQ6BSRrCUQkOAapCW 9vWIdiaC0DPH6OhFyYwk5vyLIb7gcF++mcYQwA9MREcX6E+2VoCfIEg9+gWdUUO3F+Zz +jtEtSVdwZL88Eb/oky9vllhgLiKC+xIZtF73aD4nNhFiSlzT/L2SY0l2pBNcVGyAnqB z+DyE5JOYmcgEydyW5FSuf6KLzh/MB3CVMIrSAmhQY4pQThdN0aGq8MVaZPyB4KTkhAt aa3Q== X-Gm-Message-State: APzg51DE+8A3XjSsLvWgfm/x+nP7QuSuPEsxv5w2EH63Sx3cvzvbFghI nPy1XtKnNZqit1Sk1/q07Ijr1LYb4ppSdYzUem/0li0u0pc= X-Google-Smtp-Source: ANB0VdaYFgc9Nf+LoeHuK9XKdjgK2LbhOba1KcWD6buCVQj+3+wOa9K02fQVYT9ia5acB2r41dW8FLeIFLQFXmHZ/ek= X-Received: by 2002:aca:34d6:: with SMTP id b205-v6mr4060720oia.77.1536261370986; Thu, 06 Sep 2018 12:16:10 -0700 (PDT) Original-Received: by 2002:a9d:23c8:0:0:0:0:0 with HTTP; Thu, 6 Sep 2018 12:16:10 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150091 Archived-At: --0000000000004cdd03057538b95a Content-Type: text/plain; charset="UTF-8" Flyspell marks for example the second "AND" in "an AND split and AND join" as a duplicate. This seems to be deliberate: in line 1153 of flyspell.el (on current emacs-26 branch) flyspell-word-search-backward is called with IGNORE-CASE set to t. I don't understand this: if it's not the same case, it's probably deliberate, no? I checked that simply removing this `t' argument makes doublon detection work as I'd expect: "AND AND", "and and" and "And And" are all marked as doublons, but anything that's not the same case isn't. I'm using Emacs 26.1. -- https://rrt.sc3d.org --0000000000004cdd03057538b95a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Flyspell marks for example the second &= quot;AND" in "an AND split and AND join" as a duplicate.

This seems to be delibera= te: in line 1153 of flyspell.el (on current emacs-26 branch) flyspell-word-= search-backward is called with IGNORE-CASE set to t.

I don't understand this: if it's not= the same case, it's probably deliberate, no?
<= br>
I checked that simply removing this `t' arg= ument makes doublon detection work as I'd expect: "AND AND", = "and and" and "And And" are all marked as doublons, but= anything that's not the same case isn't.

I'm using Emacs 26.1.

--
--0000000000004cdd03057538b95a--