[Top][All Lists]

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

bug#32651: flyspell marks doublons when not the same case

From: Reuben Thomas
Subject: bug#32651: flyspell marks doublons when not the same case
Date: Thu, 6 Sep 2018 20:37:04 +0100

On 6 September 2018 at 20:34, Eli Zaretskii <address@hidden> wrote:
> From: Reuben Thomas <address@hidden>
> Date: Thu, 6 Sep 2018 20:16:10 +0100
> 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.

There are valid use cases where the current behavior is what the users
want (e.g., "And and" at the beginning of a sentence).  So we could
introduce an option to do what you want, but I don't think we can
change the default behavior unconditionally.

I am suggesting the above example is not a valid use case, because it's unlikely that someone would type that by mistake; rather, it's typing the same identical word twice that is the common error.


reply via email to

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