From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2018 07:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 30462@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151868035529704 (code B ref -1); Thu, 15 Feb 2018 07:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2018 07:39:15 +0000 Received: from localhost ([127.0.0.1]:43588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emE8Q-0007j2-Mm for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emE8O-0007ip-N7 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emE8I-0008Vw-Oa for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emE8I-0008Vq-Ka for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emE8H-0000YF-Gl for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emE8C-0008SY-LR for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:05 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:39055 helo=homiemail-a3.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emE8C-0008RT-CJ for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:00 -0500 Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 16F4228408E for ; Wed, 14 Feb 2018 23:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=h8cKJ9TbWqNUUwhYQQH OVsTHc54=; b=XTXtcOok4KaPYLZGGvJfVTUvUuLOGq7uflSOxntFfxETH1kwQHB zKYFSL5wXtnOwFFtVbmdH6JdIhs/44p6TKEQwyzZU4djbdd4njguD1d6lMxJwavn bporRMj9SQYnkSgOAGAFNBWYBfb9W8gkyNhgXHFhLGaVh9KTDfz06BKU= Received: from jidanni.org (36-234-68-20.dynamic-ip.hinet.net [36.234.68.20]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id CC55928408F for ; Wed, 14 Feb 2018 23:38:57 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Thu, 15 Feb 2018 14:24:25 +0800 Message-ID: <87h8qi93dy.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) C-M-i (translated from ) runs the command flyspell-auto-correct-word (found in flyspell-mode-map), which is an interactive compiled Lisp function in =E2=80=98flyspell.el=E2=80=99. It is bound to C-., C-M-i. (flyspell-auto-correct-word) Correct the current word. This command proposes various successive corrections for the current = word. Well it turns out if the current word is already correct, then it searches backward up to several sentences looking for another word that it can correct. Which can have disastrous consequences when the boss reads the final draft of what you sent him. Therefore it would be best if this command would limit its helpfulness to what it says in the docstring: the current word. Which to me means not some word 30 words back. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2018 12:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 30462@debbugs.gnu.org, jidanni@jidanni.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson , 30462@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15186960853874 (code B ref -1); Thu, 15 Feb 2018 12:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2018 12:01:25 +0000 Received: from localhost ([127.0.0.1]:43703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIE9-00010Q-LK for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:01:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emIE8-00010C-0v for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:01:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emIDz-0008O0-8U for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:01:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emIDz-0008Nu-5p for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:01:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emIDs-0006YZ-Rm for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 07:01:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emIDp-00089y-19 for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 07:01:08 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emIDo-00089u-TE; Thu, 15 Feb 2018 07:01:04 -0500 Received: from [176.13.9.207] (port=24419 helo=[10.130.37.214]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1emIDn-0005pf-Rp; Thu, 15 Feb 2018 07:01:04 -0500 Date: Thu, 15 Feb 2018 14:00:59 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <87h8qi93dy.fsf@jidanni.org> References: <87h8qi93dy.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Eli Zaretskii Message-ID: 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On February 15, 2018 8:24:25 AM GMT+02:00, "=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan= Jacobson" wrote: > C-M-i (translated from ) runs the command > flyspell-auto-correct-word (found in flyspell-mode-map), which is an > interactive compiled Lisp function in =E2=80=98flyspell=2Eel=E2=80= =99=2E >=20 > It is bound to C-=2E, C-M-i=2E >=20 > (flyspell-auto-correct-word) >=20 > Correct the current word=2E > This command proposes various successive corrections for the current > word=2E >=20 > Well it turns out if the current word is already correct, then it > searches backward up to several sentences looking for another word > that > it can correct=2E >=20 > Which can have disastrous consequences when the boss reads the final > draft of what you sent him=2E >=20 > Therefore it would be best if this command would limit its helpfulness > to what it says in the docstring: the current word=2E >=20 > Which to me means not some word 30 words back=2E This happens only if you invoke the command more than once on the same location=2E So, while I agree that the doc string should be fixed, the pr= oblem you describe can happen only by user request=2E From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2018 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 30462@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151869939516161 (code B ref -1); Thu, 15 Feb 2018 12:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2018 12:56:35 +0000 Received: from localhost ([127.0.0.1]:43739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emJ5W-0004Cb-PE for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:56:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emJ5U-0004CO-W3 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:56:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emJ5O-0006nc-Rx for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:56:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_40,RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emJ5O-0006nW-OK for submit@debbugs.gnu.org; Thu, 15 Feb 2018 07:56:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emJ5N-0003tS-F9 for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 07:56:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emJ5K-0006kw-9B for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 07:56:25 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:58899 helo=homiemail-a1.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emJ5K-0006kq-1D; Thu, 15 Feb 2018 07:56:22 -0500 Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 645C434806D; Thu, 15 Feb 2018 04:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=s8+923FFRzY0Oo8MhrV3XzijQKQ=; b=l3BOVq+xq6GR4 zq070sU0CHWwGxuyf1iVhEvUEKxytYUOtwZacBTeQvJEz54XDT4Gd+hSMFQ4L3WD dDfA5nE/iLYWvnVQG0vIxsj/zQ0WcSpAhN/g2QIxUqbchtYqSqnWe8k/WmdGuaVi hqkagGOEErSHWLX73cDLUvjY29cpaQ= Received: from jidanni.org (114-41-4-183.dynamic-ip.hinet.net [114.41.4.183]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id 0601C34806C; Thu, 15 Feb 2018 04:56:20 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> Date: Thu, 15 Feb 2018 20:56:17 +0800 Message-ID: <87y3juo1hq.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) >>>>> "EZ" == Eli Zaretskii writes: EZ> This happens only if you invoke the command more than once on the same EZ> location. So, while I agree that the doc string should be fixed, the problem EZ> you describe can happen only by user request. Luckily I noticed the 97th word in the 35th paragraph was subtly changing itself. So I was lucky I was a bad speller. If I was a good speller it would have probably got to work on some other word even more paragraphs back way off the screen. Turing a misspelled mother into monster... I would respectfully say fix it to act like its documentation. And make reaching into the dark corners of your document that you are not aware of and changing words ... into a non-default bonus feature... or move it into M-x dissociated-press. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2018 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30462@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15187137766456 (code B ref 30462); Thu, 15 Feb 2018 16:57:02 +0000 Received: (at 30462) by debbugs.gnu.org; 15 Feb 2018 16:56:16 +0000 Received: from localhost ([127.0.0.1]:45029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emMpT-0001g4-Sa for submit@debbugs.gnu.org; Thu, 15 Feb 2018 11:56:16 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emMpR-0001fq-QY for 30462@debbugs.gnu.org; Thu, 15 Feb 2018 11:56:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emMpJ-0008Bj-Sf for 30462@debbugs.gnu.org; Thu, 15 Feb 2018 11:56:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emMpJ-0008BL-O2; Thu, 15 Feb 2018 11:56:05 -0500 Received: from [176.228.60.248] (port=2371 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emMpI-0001wi-WF; Thu, 15 Feb 2018 11:56:05 -0500 Date: Thu, 15 Feb 2018 18:56:02 +0200 Message-Id: <838tbuw5st.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87y3juo1hq.fsf_-_@jidanni.org> (message from =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson on Thu, 15 Feb 2018 20:56:17 +0800) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 積丹尼 Dan Jacobson > Cc: bug-gnu-emacs@gnu.org, 30462@debbugs.gnu.org > Date: Thu, 15 Feb 2018 20:56:17 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > EZ> This happens only if you invoke the command more than once on the same > EZ> location. So, while I agree that the doc string should be fixed, the problem > EZ> you describe can happen only by user request. > > Luckily I noticed the 97th word in the 35th paragraph was subtly > changing itself. So I was lucky I was a bad speller. > > If I was a good speller it would have probably got to work on some other > word even more paragraphs back way off the screen. Turing a misspelled > mother into monster... Sorry, I don't understand. My point was that typing C-M-i or C-. once on a correctly spelled word doesn't try to change any other words in the buffer. Flyspell only does that if you invoke that command more than once. Are you saying that it happened to you when you invoked the command only once? That would be a bug, but then please describe a recipe for reproducing it, because I don't see it here. > I would respectfully say fix it to act like its documentation. That would change its long-standing behavior in incompatible ways, so I don't think we can do that. > And make reaching into the dark corners of your document that you are > not aware of and changing words ... into a non-default bonus feature... > or move it into M-x dissociated-press. I'm okay with making this behavior optional, but it will have to be on by default, for backward compatibility. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 00:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151874056621295 (code B ref 30462); Fri, 16 Feb 2018 00:23:01 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 00:22:46 +0000 Received: from localhost ([127.0.0.1]:45331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emTnZ-0005XO-TL for submit@debbugs.gnu.org; Thu, 15 Feb 2018 19:22:46 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:54062 helo=homiemail-a60.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emTnY-0005XH-FL for 30462@debbugs.gnu.org; Thu, 15 Feb 2018 19:22:44 -0500 Received: from homiemail-a60.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTP id 64514282069; Thu, 15 Feb 2018 16:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=xdRqhvjHRkhzuoJUzNZDlAlBYZ0=; b=gpuZaxDAwpJPp V2XrR80tuAjIv2x87+IYQ68jNVR02T/u/Zd3ieU+9OO9WyohPhs7y02X18fxGBdC Iz0DpioNeKC/XAlgptyWA3+Kjabwg+376EW2w5FeBX/YDQMgFvc/F31K1oWAeDnM 8E07FqJphL2YccU4sZTmKfv73YKjNQ= Received: from jidanni.org (114-26-47-94.dynamic-ip.hinet.net [114.26.47.94]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a60.g.dreamhost.com (Postfix) with ESMTPSA id EB338282068; Thu, 15 Feb 2018 16:22:42 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> Date: Fri, 16 Feb 2018 08:22:39 +0800 Message-ID: <87vaexye9c.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) EZ> Sorry, I don't understand. My point was that typing C-M-i or C-. once EZ> on a correctly spelled word doesn't try to change any other words in EZ> the buffer. Flyspell only does that if you invoke that command more EZ> than once. The problem is the user might think a word is misspelled and start hitting the command. After a hit or two he starts to notice the word isn't changing, or in fact hasn't changed at all. He thinks, "oh yeah, I spelled it right in the first place, ha ha." And goes back to his work -- little realizing that way back in the 22nd paragraph of the 39th clause in the contract he is writing Oxfam has been changed to Exam etc. etc. EZ> I'm okay with making this behavior optional, but it will have to be on EZ> by default, for backward compatibility. Or have it warn: you are about to change some word that might not even be on this page. OK just once? Always? Never? From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30462@debbugs.gnu.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151877616427911 (code B ref 30462); Fri, 16 Feb 2018 10:17:02 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 10:16:04 +0000 Received: from localhost ([127.0.0.1]:45661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emd3k-0007G7-CY for submit@debbugs.gnu.org; Fri, 16 Feb 2018 05:16:04 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emd3i-0007FJ-6k for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 05:16:02 -0500 Received: by mail-wm0-f43.google.com with SMTP id v71so2193232wmv.2 for <30462@debbugs.gnu.org>; Fri, 16 Feb 2018 02:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gIUF/q2kMFXprzr1r4GyQelFdaptIAOKQ1uIATXmX20=; b=EnLhh8zOWGyvuYaU7iiwxZzAJBd2ZRoF2Regv2+E1GHeZJMomEDb0nVgcc/edj8BzH nj3YpktC0rLMn2MZT1tHcVx1xathgl/ANf5lJJnOfLpgPxuMrU6D5ZJcszh+9HWuVEKv LMnMsRNF0eosaLdVkOCb6Or67ZxuF+snjJHvhOMx/Iym/TLbLt+ODYzv3w08DCNo/RVw iwtdiKZJKRd1LTHRze5pp29aAmZj3ZzmGPkXAfFX8hqn05mrlxlurl5lz/l8eiuTTQDe CKCXtszWgbg928Wc5fgFMT1nPQ8ESlWopYWoSrmtvsl5j8+w5f0oBANN/WiGYR3lIygl gm6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gIUF/q2kMFXprzr1r4GyQelFdaptIAOKQ1uIATXmX20=; b=qEpGP9JiV5NSai3MbdrZrFjN64ucGH8noN0hSTTgxwvG10We2jcYZXbeArd2/1FMoc kKq5SzZGH6USqq1i+9HT+j/rQ+Dmc28JMP63X648/cs5QIbiFHImL3z4ai4rpcbyTExA DfuvWBdIDZT+gcrUJbLJmPrcZcH0AkeYtd8oHsfRNx1XmBiH9L8QQGNa44V1fdhZOInl 2U/EIkcc3qXNrOwqEOfEjy3036XKGNrl5Q0+2uGNmXYMbsgJo2AC2CWOilxTKuPO7vHq cI4PUGxcVb2w121KYtN+XCFpdV1SXBssr5GwJYlu2TkCDD3i5wF1ruAJsN/2+YTUD7/+ /Qrg== X-Gm-Message-State: APf1xPDXv5FvbtayWQAdIbz+V3Dqa03J7p4VdO6BlaUrHYJUMmUB3PZQ 1TrtazaGcEYR5WCGRl3w1soFnNdt X-Google-Smtp-Source: AH8x225hP4kjCP6w9wKnQdvhogrV1gE1C+lYIWewpmfceFUKcH8gZYObs9TD84ni6gQBS1DoQ8j96w== X-Received: by 10.80.169.53 with SMTP id l50mr7304809edc.128.1518776156125; Fri, 16 Feb 2018 02:15:56 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id a23sm7587023edd.28.2018.02.16.02.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 02:15:54 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> From: Dmitry Gutov Message-ID: <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> Date: Fri, 16 Feb 2018 12:15:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <838tbuw5st.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/15/18 7:56 PM, Eli Zaretskii wrote: >> I would respectfully say fix it to act like its documentation. > > That would change its long-standing behavior in incompatible ways, so > I don't think we can do that. I respectfully disagree. The current behavior is both undocumented and dangerous. >> And make reaching into the dark corners of your document that you are >> not aware of and changing words ... into a non-default bonus feature... >> or move it into M-x dissociated-press. > > I'm okay with making this behavior optional, but it will have to be on > by default, for backward compatibility. Is it really that important in this case? We're allowed to change the defaults from time to time. And having C-M-i (bound to completion-at-point in most other contexts) do something like this is a bad UI. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 10:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15187785326706 (code B ref 30462); Fri, 16 Feb 2018 10:56:01 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 10:55:32 +0000 Received: from localhost ([127.0.0.1]:45698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdfw-0001k6-2E for submit@debbugs.gnu.org; Fri, 16 Feb 2018 05:55:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdfu-0001ju-Vn for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 05:55:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emdfk-000635-Sg for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 05:55:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emdfk-00062e-Kt; Fri, 16 Feb 2018 05:55:20 -0500 Received: from [176.228.60.248] (port=2016 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emdfj-0000oM-Ce; Fri, 16 Feb 2018 05:55:20 -0500 Date: Fri, 16 Feb 2018 12:55:18 +0200 Message-Id: <838tbtdx0p.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> (message from Dmitry Gutov on Fri, 16 Feb 2018 12:15:52 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 30462@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 16 Feb 2018 12:15:52 +0200 > > On 2/15/18 7:56 PM, Eli Zaretskii wrote: > > >> I would respectfully say fix it to act like its documentation. > > > > That would change its long-standing behavior in incompatible ways, so > > I don't think we can do that. > > I respectfully disagree. The current behavior is both undocumented and > dangerous. I see your point, but I think the number of years we had this has greater weight. > > I'm okay with making this behavior optional, but it will have to be on > > by default, for backward compatibility. > > Is it really that important in this case? We're allowed to change the > defaults from time to time. Based on only one complaint, after all these years? I don't think so. > And having C-M-i (bound to completion-at-point in most other contexts) > do something like this is a bad UI. That ship has sailed a long time ago, so again long-time practice wins. IMO, we must maintain stable UI and defaults in Emacs, after so many years. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 11:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, Dmitry Gutov Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15187790287543 (code B ref 30462); Fri, 16 Feb 2018 11:04:02 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 11:03:48 +0000 Received: from localhost ([127.0.0.1]:45702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdnv-0001xb-Ue for submit@debbugs.gnu.org; Fri, 16 Feb 2018 06:03:48 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:48133 helo=homiemail-a3.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emdnu-0001xU-JC for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 06:03:47 -0500 Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 55891284091; Fri, 16 Feb 2018 03:03:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=ERQRvQG6qkqVMLx+4IbEOt4kTww=; b=cup97cQISMXmb z9kgIfgr3q3YtVqM/FS7PKScKVuzEs1fu9muQGispNJaQifoV+jqYtg+p/TMCYLl jWRdVR1I5TbbhH5863pDhv+va3qJbb3XSfOKjekh0hlAvyNe+95QXahWwQsIIdnD It2kNl4Ety1mXQvIzJ2+VBNGTKZFIM= Received: from jidanni.org (114-41-16-232.dynamic-ip.hinet.net [114.41.16.232]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id 8CB2C28408E; Fri, 16 Feb 2018 03:03:44 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> Date: Fri, 16 Feb 2018 19:03:42 +0800 Message-ID: <87o9kpmc1d.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) EZ> Based on only one complaint, after all these years? I don't think so. That's because most people don't notice it has tinkered with some word way back in chapter three off the screen... until it is too late. Conclusion: don't edit anything important, like the U.S. Constitution. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151878100611049 (code B ref 30462); Fri, 16 Feb 2018 11:37:01 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 11:36:46 +0000 Received: from localhost ([127.0.0.1]:45712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emeJp-0002s9-OD for submit@debbugs.gnu.org; Fri, 16 Feb 2018 06:36:45 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:53948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emeJn-0002rt-5w for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 06:36:43 -0500 Received: by mail-wm0-f46.google.com with SMTP id t74so2625603wme.3 for <30462@debbugs.gnu.org>; Fri, 16 Feb 2018 03:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xDptYqMkNpcKFzbubkYUgF8BIBfHOq/+BOL9T2KH0ns=; b=nvs9pohcxCQM0G/RfERyN2QIlGQeNw7xDKXw/cj9kB98oudJEnM9Sut91SkXCGkgYU Dh+yqdQ7j8nTCL305fcABA9gcEFp+BP9MNpjtSboFwBFjWgAMwCUOUkstAzlBrLRhyxf DlbJDUBpLQ1ii5psxaphTwLqts/ZbJ+yBvaYvUHHXBKA5JPMiigZjpD/YIp3ugOCKn1/ /90pVj9aCAVrOlWEV5PLmaQ6DWY1lvcWlMxLjajVi8LWxoQR5wmbb6wjwFlvY7j8mXif M2BSsT+WmVuIOU7BsG14O0jEXqDuitb7UX/SGUULl1IPndW5NCCjkEoAU+uK2dVCOqH+ xNhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xDptYqMkNpcKFzbubkYUgF8BIBfHOq/+BOL9T2KH0ns=; b=CTBC2xPqiyR6gwINU8dbsbs+mPnz62SUwkiAvYZfhGzbf0yLmWymVefrGLMY7UjxbU m+PIL1fTzVnwwlIdjJsW5Ij9jtrwy2OUMRb0u/fpjehnl41v/p9+NpNKXA/TCGeVWWNm R/vLFnrUtq3e2GKXNvZ9NlgUO8AJDI+kZLmsSsxGNBrlQOlMEya+naKZzXHms0L5guFU EEZMhei5dpyjZa7SzhvEl8HZxWA6IyvAYWYiBVOA7/4//OOSuhOTHWNbaTzSBr8bXHze GPVgYxTSttvbqBk7Z/ju8KolnNd22tcQXk/M76eD28SWXtH1bVqJHphvsc29iNjNShL+ bz+Q== X-Gm-Message-State: APf1xPCmrKo3UmyAGH677G1VhWh1Bxs880+g9lYC3j0t1iemzpmgTrca sI/pUBTgc32W1Hfe/KE+6IU= X-Google-Smtp-Source: AH8x224eTxK7h7y6RRKShUdxR9WT4vOM/Cpz/1nqJ+iJxlFoH9v6t7o7ygCAlN5l2GG3hMzubHBHKA== X-Received: by 10.28.191.147 with SMTP id o19mr1629082wmi.130.1518780997301; Fri, 16 Feb 2018 03:36:37 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id 56sm26596939wrt.23.2018.02.16.03.36.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 03:36:36 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> From: Dmitry Gutov Message-ID: <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> Date: Fri, 16 Feb 2018 13:36:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <838tbtdx0p.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/16/18 12:55 PM, Eli Zaretskii wrote: > I see your point, but I think the number of years we had this has > greater weight. This can be an argument for choosing between the ways to fix something, but not to just give up. It's not like an API stability argument, no third-party Lisp code will break after this change. >> Is it really that important in this case? We're allowed to change the >> defaults from time to time. > > Based on only one complaint, after all these years? I don't think so. That's a valid rebuke, but I imagine the total number of users is not very high either. Especially of those who rely on the possibility of auto-correcting far-away words. >> And having C-M-i (bound to completion-at-point in most other contexts) >> do something like this is a bad UI. > > That ship has sailed a long time ago, so again long-time practice > wins. > > IMO, we must maintain stable UI and defaults in Emacs, after so many > years. What about improving the UI? It's not like it has reached perfection at any time. If stability to such high degree is the goal, Emacs will more likely fade away together with the current generations of its users. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151878886913045 (code B ref 30462); Fri, 16 Feb 2018 13:48:02 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 13:47:49 +0000 Received: from localhost ([127.0.0.1]:45805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emgMf-0003OK-8w for submit@debbugs.gnu.org; Fri, 16 Feb 2018 08:47:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emgMd-0003O5-7I for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 08:47:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emgMX-0007A5-2w for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 08:47:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emgMR-000774-AB; Fri, 16 Feb 2018 08:47:35 -0500 Received: from [176.228.60.248] (port=2082 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emgMQ-0003SZ-NT; Fri, 16 Feb 2018 08:47:35 -0500 Date: Fri, 16 Feb 2018 15:47:33 +0200 Message-Id: <83606xdp1m.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> (message from Dmitry Gutov on Fri, 16 Feb 2018 13:36:32 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org > From: Dmitry Gutov > Date: Fri, 16 Feb 2018 13:36:32 +0200 > > On 2/16/18 12:55 PM, Eli Zaretskii wrote: > > > I see your point, but I think the number of years we had this has > > greater weight. > > This can be an argument for choosing between the ways to fix something, > but not to just give up. I'm not against a fix, I'm just saying that the fix should not change the default behavior in totally incompatible ways. > It's not like an API stability argument, no third-party Lisp code will > break after this change. I don't see why breaking someone's code is deemed more serious than breaking someone muscle memory and habits of using Emacs for many years (this code is in Emacs since July 2000!). To me, they are equally bad. > >> Is it really that important in this case? We're allowed to change the > >> defaults from time to time. > > > > Based on only one complaint, after all these years? I don't think so. > > That's a valid rebuke, but I imagine the total number of users is not > very high either. Especially of those who rely on the possibility of > auto-correcting far-away words. We have no way of knowing that, and in any case having someone come up in the future with a legitimate question of why did we change this behavior "just like that" is not a prospect I like, unless e have a very good answer. Which in this case we don't, not IMO. > > IMO, we must maintain stable UI and defaults in Emacs, after so many > > years. > > What about improving the UI? We do that all the time, but we do that in backward-compatible ways. Or at least we try. > If stability to such high degree is the goal, Emacs will more likely > fade away together with the current generations of its users. That's unfair, and also a kind of strawman. Emacs evolves by adding new features, much more than by changing the existing ones. New features don't have the "past performance" baggage, so we are free to design and implement them as we see fit. We can also change existing features, as long as the deviant behavior, when first introduced, is opt-in and doesn't change the long-standing defaults. So stability in veteran features and APIs doesn't mean stagnation, far from it. I really don't understand why we are still arguing. I already said that it's okay to make this feature optional, provided that its default remains as it is today. Why would someone insist on changing the default for _everyone_ if they can have it customizable for themselves to their liking? From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: jidanni@jidanni.org Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151879075315912 (code B ref 30462); Fri, 16 Feb 2018 14:20:02 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 14:19:13 +0000 Received: from localhost ([127.0.0.1]:45817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emgr3-00048a-6W for submit@debbugs.gnu.org; Fri, 16 Feb 2018 09:19:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emgr0-00048L-St for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 09:19:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emgqr-0005p9-08 for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 09:19:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emgqq-0005p3-Tj; Fri, 16 Feb 2018 09:19:00 -0500 Received: from [176.228.60.248] (port=2254 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emgqq-0002Cu-A8; Fri, 16 Feb 2018 09:19:00 -0500 Date: Fri, 16 Feb 2018 16:18:59 +0200 Message-Id: <834lmhdnl8.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <83606xdp1m.fsf@gnu.org> (message from Eli Zaretskii on Fri, 16 Feb 2018 15:47:33 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 16 Feb 2018 15:47:33 +0200 > From: Eli Zaretskii > Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org > > I'm not against a fix, I'm just saying that the fix should not change > the default behavior in totally incompatible ways. Actually, I seem to be unable to reproduce this now, no matter how hard I try. I swear I saw the reported behavior when I first tried that, but now all I see is flyspell-auto-correct-word cycling between possible correction candidates, and doing nothing if the word is spelled correctly. I wonder what am I missing. So please provide an exact recipe for reproducing the problem, including the text you have in the buffer and the speller/dictionary you use, and also please tell what Emacs version are you using. In the meantime I'm going to fix the doc string to describe the behavior when the command is invoked at the same location repeatedly. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2018 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: jidanni@jidanni.org Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151879163217362 (code B ref 30462); Fri, 16 Feb 2018 14:34:01 +0000 Received: (at 30462) by debbugs.gnu.org; 16 Feb 2018 14:33:52 +0000 Received: from localhost ([127.0.0.1]:45837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emh5E-0004Vy-Af for submit@debbugs.gnu.org; Fri, 16 Feb 2018 09:33:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emh5C-0004Vj-NP for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 09:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emh56-00066S-Ka for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 09:33:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emh50-000634-7L; Fri, 16 Feb 2018 09:33:38 -0500 Received: from [176.228.60.248] (port=2404 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emh4z-0004DE-Ll; Fri, 16 Feb 2018 09:33:38 -0500 Date: Fri, 16 Feb 2018 16:33:37 +0200 Message-Id: <833721dmwu.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <834lmhdnl8.fsf@gnu.org> (message from Eli Zaretskii on Fri, 16 Feb 2018 16:18:59 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 16 Feb 2018 16:18:59 +0200 > From: Eli Zaretskii > Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru > > Actually, I seem to be unable to reproduce this now, no matter how > hard I try. I swear I saw the reported behavior when I first tried > that, but now all I see is flyspell-auto-correct-word cycling between > possible correction candidates, and doing nothing if the word is > spelled correctly. I wonder what am I missing. Maybe your problem happened in a buffer which mixed text of 2 or more different languages, and the closest word that matched your current dictionary's language was far away before point? From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151882914320213 (code B ref 30462); Sat, 17 Feb 2018 01:00:02 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 00:59:03 +0000 Received: from localhost ([127.0.0.1]:47349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emqqF-0005Fx-F7 for submit@debbugs.gnu.org; Fri, 16 Feb 2018 19:59:03 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:40697 helo=homiemail-a8.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emqqD-0005Fb-Vi for 30462@debbugs.gnu.org; Fri, 16 Feb 2018 19:59:02 -0500 Received: from homiemail-a8.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a8.g.dreamhost.com (Postfix) with ESMTP id ED5285F2069; Fri, 16 Feb 2018 16:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=yDAOIf/5FLbTExCSeEXsNMSMAI8=; b=MTe3ADKUSvB14 Yv3gdo4/l9rBT8A2GNd+FxshdFXtzaNILUnOVIB6oXt3e1/j1I5bSQuVE+wY5jXm PhXtEaWrOZ+jqzMS/iE9alWrTkjH19pCCd/r5TsuJq1DtI9fpDykykik52hyVdC1 ZmCsITe3ePEwBj3rpISzsJx/vHiSXc= Received: from jidanni.org (220-140-4-35.dynamic-ip.hinet.net [220.140.4.35]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a8.g.dreamhost.com (Postfix) with ESMTPSA id 9CCF75F2065; Fri, 16 Feb 2018 16:59:00 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> Date: Sat, 17 Feb 2018 08:58:57 +0800 Message-ID: <87o9koo2i6.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Yes many different factors combined so reproduction is a matter of luck for your or me too. All the more reason to warn upon dangerous actions. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15188536848698 (code B ref 30462); Sat, 17 Feb 2018 07:49:02 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 07:48:04 +0000 Received: from localhost ([127.0.0.1]:47450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emxE4-0002GC-G4 for submit@debbugs.gnu.org; Sat, 17 Feb 2018 02:48:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emxE3-0002Fk-Jm for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 02:48:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emxDx-0005ow-Mi for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 02:47:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emxDp-0005n2-Ij; Sat, 17 Feb 2018 02:47:49 -0500 Received: from [176.228.60.248] (port=3158 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1emxDp-0004tk-0U; Sat, 17 Feb 2018 02:47:49 -0500 Date: Sat, 17 Feb 2018 09:47:51 +0200 Message-Id: <83eflkcb14.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87o9koo2i6.fsf@jidanni.org> (message from =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson on Sat, 17 Feb 2018 08:58:57 +0800) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 積丹尼 Dan Jacobson > Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru > Date: Sat, 17 Feb 2018 08:58:57 +0800 > > Yes many different factors combined so reproduction is a matter of luck > for your or me too. All the more reason to warn upon dangerous actions. Is it possible for you to provide a recipe which would allow such reproduction? I think it's important to have the problem completely understood before we discuss how to fix it. (Previously, I thought I did understand it, but that turned out to be a fallacy.) Dmitry, do you see the problem? If so, perhaps you can help with a recipe? From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 11:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151886779131250 (code B ref 30462); Sat, 17 Feb 2018 11:44:01 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 11:43:11 +0000 Received: from localhost ([127.0.0.1]:47536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en0tb-00087w-4L for submit@debbugs.gnu.org; Sat, 17 Feb 2018 06:43:11 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:39818 helo=homiemail-a38.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en0tZ-00087o-H3 for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 06:43:10 -0500 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id EDBD010AFB5; Sat, 17 Feb 2018 03:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=mbIWSP/Fpnv3Pyw0593 Wghdu1lE=; b=OybtOMP7ZWDRWz+9prQvgQkLZhg9aRhhcV/8k3jtKpJITJs+fuw jEQI2caqqDxVEe+VDKzZFjwwQ088TF7XEmD9tGiHpfSMkelCIwI6bFUwwF8YESyW p5CSnXp2VX5Nq4eZmB7K5bReK3Vk5LgdEXzglFxioSrozK3j8NZITCDs= Received: from jidanni.org (111-246-85-207.dynamic-ip.hinet.net [111.246.85.207]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id BC26710AFB0; Sat, 17 Feb 2018 03:43:06 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> Date: Sat, 17 Feb 2018 19:43:02 +0800 Message-ID: <87vaevkfjt.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) >>>>> "EZ" =3D=3D Eli Zaretskii writes: EZ> Is it possible for you to provide a recipe which would allow such EZ> reproduction? I think it's important to have the problem completely EZ> understood before we discuss how to fix it. (Previously, I thought I EZ> did understand it, but that turned out to be a fallacy.) All I know is just now it changed my username to "jinni". Good thing my eye caught it, only a few words back. I was editing this buffer: > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>= >>>>>>>>>>>>> > > To: = > > Subject: = > > Date: Sat, 17 Feb 2018 19:11:22 +0800 = > > Message-ID: <871shjlvl1.fsf@jidanni.org> = > > From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson = > > --text follows this line-- = > > There is no mechanism in place to ever detect = > > ~/.josm/cache/ = > > = > > -rw-r--r-- 1 jinni 728037 2013-04-18 = > > = > > mirror_http___josm.openstreetmap.de_maps = > > -rw-r--r-- 1 jidanni 3546155 02-16 09:46 mirror_https___josm.openstre= etmap.de_maps > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>= >>>>>>>>>>>>> > And was typing this: r r [self-insert-command] SPC SPC [self-insert-command] d [self-insert-command] e e [self-insert-command] t t [self-insert-command] e e [self-insert-command] c c [self-insert-command] t t [self-insert-command] C-n [next-line] C-n [next-line] C-n [next-line] C-b [backward-char] C-b [backward-char] C-b [backward-char] SPC [self-insert-command] C-o [open-line] C-o [open-line] C-. [flyspell-auto-correct-word] C-d [delete-char] C-/ C-/ [undo] C-h l [view-lossage] I see my .emacs already has ;;Two flyspell keys too close to C-/ undo: (global-unset-key (kbd "C-.")) (global-unset-key (kbd "C-,")) etc. (But of course that is not good enough.) And indeed I would have never hit either on purpose, only by accident. When I really want to use flyspell-auto-correct-word I always use C-M-i, not C-. . And you know what, no matter what I put into .emacs, (eval-after-load "flyspell-mode" '(add-hook 'flyspell-mode-hook (lambda () ;;too close to C-/ (undo) and already on ESC TAB: ; (define-key flyspell-mode-map [(control ?\.)] []) (define-key flyspell-mode-map (kbd "C-,") (lambda () (interactive))) (define-key flyspell-mode-map (kbd "C-.") (lambda () (interactive))) ))) I just can't unbind them. They are un-unbinable. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151887912121250 (code B ref 30462); Sat, 17 Feb 2018 14:52:02 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 14:52:01 +0000 Received: from localhost ([127.0.0.1]:47695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en3qL-0005Wd-8u for submit@debbugs.gnu.org; Sat, 17 Feb 2018 09:52:01 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:34717 helo=homiemail-a9.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en3qJ-0005WV-S8 for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 09:52:00 -0500 Received: from homiemail-a9.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTP id D25AC5BE066; Sat, 17 Feb 2018 06:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=SZBdteneYPVKoctpyVA /9+CPbVk=; b=L68RA2t986ILllptxmx8+MPKtpae+50M0ADdCv5eVD5Evf3ccyR LbHcUPz1AfSNS1QryBfVnhGFJzMVnWU1uU3tedoMLOGiBVU0GnIfhsbAZ7Brni2k n8k70huKX/0xepgRFL8PUiHywTYHP9awjq5ichiybSszn5nIsmA4M7VE= Received: from jidanni.org (114-41-31-117.dynamic-ip.hinet.net [114.41.31.117]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 035255BE064; Sat, 17 Feb 2018 06:51:58 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> Date: Sat, 17 Feb 2018 22:51:55 +0800 Message-ID: <87zi477jp0.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) And now that I have become more sensitive to the bug, I notice it just happened again: OK now today I was really trying to use flyspell-auto-correct-word, but my cursor happened to be just past the "t" below. As there really isn't much spelling to be corrected at "t", I started noticing in the minibuffer (*Message* buffer): Auto-saving...done Corrections: unkind unkinder antonym inking envenom uncanny unkonwm unkno= wn unkind Corrections: unkinder antonym inking envenom uncanny unkonwm unknown unki= nd unkinder Corrections: antonym inking envenom uncanny unkonwm unknown unkind unkind= er antonym Auto-saving... > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> = > > Shall we do as we do now, and just let it sail through, = > > ``` = > > http://a.b.c?xzzz{Header,Dont-Let-Larry-Know,Yes} = > > ``` = > > = > > No. We not only let Larry know, we let him know we didn't want to let = > > him know. Our user will doubly hunt you down, if Larry doesn't get him = > > first. = > > = > > Indeed, that is just like when we know what ftp://x and http://y are, = > > but not irc://z . So irc://z must mean http://irc://z . That is about = > > how much little sense it makes. = > > = > > So what should we do? = > > = > > We should not let the request go over the wires in the first place. = > > = > > Instead we should tell the user to fix thier t = > > print out an error message = > > : E.g., = > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> = > t [self-insert-command] e e [self-insert-command] h h [self-insert-command] [delete-backward-char] [delete-backward-char] h h [self-insert-command] i i [self-insert-command] e e [self-insert-command] r r [self-insert-command] SPC SPC [self-insert-command] t [self-insert-command] e e [self-insert-command] m m [self-insert-command] [delete-backward-char] [delete-backward-char] [flyspell-auto-correct-word] [flyspell-auto-correct-word] [flyspell-auto-correct-word] [flyspell-auto-correct-word] C-x C-b [list-buffers] OK as I didn't notice anything change (that's why I hit flyspell-auto-correct-word the second etc. times, to see what it was up to, where.) So obviously those "Corrections: unkind unkinder..." mean that it was indeed changing something off the screen and I will have to proofread the entire draft to hopefully find where. You might say "just use undo", but one fears that might even mess things up further, so we chicken out. P.S., one would think "just run a spell checker on your article." Well that only detects misspelled words and where ever that word was, alas, it is no longer misspelled now. Wait (via searching for the last word in the last *Message* I found it, > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson = > > --text follows this line-- > > Don't let antonym WMS URL template directives sail through > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > That's right, way at the top of the message (way off the top of the screen) I was composing, it changed some word into "antonym". Thank goodness I can run "undo" on just a region, revealing the original, > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > Don't let unknown WMS URL template directives sail through > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151888039823888 (code B ref 30462); Sat, 17 Feb 2018 15:14:02 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 15:13:18 +0000 Received: from localhost ([127.0.0.1]:48429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en4Aw-0006DE-1g for submit@debbugs.gnu.org; Sat, 17 Feb 2018 10:13:18 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:57331 helo=homiemail-a9.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en4At-0006D3-Ic for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 10:13:15 -0500 Received: from homiemail-a9.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTP id DAB645BE06B; Sat, 17 Feb 2018 07:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=53acD1Zkt+Vrq8Lwz4BWByOwlIA=; b=l5ehZ2t4Kt376 1f4njc2JD9/q6l7/gj9jUHd935YIdD7XTjJVfCKEA4KP7HCyPcQOCn3dZShB+4FJ 2FFLhYh2kbLLUBb75VYAWG3ZHXFehvn2uwGfER2w5A9g2oBrtjp50T2279kx9SlC xWIo1baietRlKvb2RMY1pv9nKHHYVY= Received: from jidanni.org (114-41-31-117.dynamic-ip.hinet.net [114.41.31.117]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a9.g.dreamhost.com (Postfix) with ESMTPSA id 36D0C5BE066; Sat, 17 Feb 2018 07:13:14 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> Date: Sat, 17 Feb 2018 23:13:11 +0800 Message-ID: <87lgfr7ipk.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain Put your cursor at the end of this file --=-=-= Content-Type: application/gzip Content-Disposition: attachment; filename=x.gz Content-Transfer-Encoding: base64 Content-Description: test file H4sICJtFiFoAA3gAxVjdctvGFb4OnuIMeyE5JRBSEH9HozilpImauM6IzriuJxMvgAWxJrBL7y5I UZ0+Qh+kd71MZvI46fQ1+u0CtCw18sSy2gBDkcCevz37nT+daVVN6d//+PvPP/z4r3/+RCdM0h9Z qhKjJB29FhmTUjxuvyOlF8fBMzWl01LQX5jm1iyFoCNeiqvHC1k3BLN0SnHvcHjwOONJUi9M1C51 ibJFbdX68ZbJjF9Gug7mdfKap3ZKF3xKIP6d55xSXm7NipdlyMAQpkprUIUbpTPaa5/MHlVKc7IF jLYFp7TGe2nJUQUXPOd4SrmZ0tF4VIzfiEmcbaPc5Df388nRF4N4PPrD4DQcDicn4eFgdhqOJ/FZ OItnvdl4NOyN+v3r7X0Cadv4da36xRsn7fvw+xsCoS0e26TeDIz12t7hHGZxlo7iUTiKGQ/5MB2G g95gHI4H2Sg+POjnEz65do7X5WTZ7LK3ui1rknLePxzkYW84jEO4LQ6TSdILB/04zlg/7yW93m1Z w97wMlv1qxuynMGHZVVkshzfVjKO49FBP6s29W2WkZoslToQw1/y6DjmeblMk/7hTYF/Dk80y214 5mG335GyKqcVE2VUCZN26KA36vUeBSfMAg1zZrvUH9EZT7DQH9NBPO1Npv0B/b437vWCMLT80lKu ylJtDBAgDJVC8jAMgIbNhqzK2JbOacMMac7KcktWb4VcYIVqw98Dsm6Q1JaqrcOUUZoKtlpxyTPH mXB6XRtLK4Y/Dncd28FLGBEFwRfOEABvp1AYuQdBdVqQV9Vqh4xWHWQy60R0YamxTONNIJUVqSMV DbIrIUVS50A07X/6hBvDFvxTat48mkKrs9+wNViiKMqU5MGsES+URADUcilk1n5BCJNWyW0F8Uun hcs1l6rCeopT3Do6JTfueSnVRrZ8vyTyvrLest8U+nGyduy33BEEwTEdP8hFxxA1L3CytOGUKQKy mh+wpwv9WQONklsSlgyQjfPTql4USH43Lyfq1atXt1/f53KiCmtX088+Y1ESpZ9fXl1d/fVLzuCU 7omSNvya48O03oZfOUtfcPO3u0U9oFUPdDlRf1IRPedwtCUlEVnOx35LtPTOxzm4V4Wo/At/LiJz 0bcBLlzQueXGVy1NRE9r7TKBpo3AmWaqTiC5qEG/VTWeN7JLIm/1ZIr7aF60apyoXGik+QfZ4ANd TtQ5woFnXVcaAUTTglIsOW0KLp1rGhe55dzj5tKDtwXRllDbu40olwedz4VOsXJFEc3V24fKya04 6m/LeU31rFXNElXv3A6VPhOWwtqSk+ESSRhxUrElN7/aiQ/sK2zH+8EUqi6zJpw/v5+oB7QKSG8N cs53yHV1QPM3NYfLF4rUGqh17zZCc7MrFB6OtCpZyqP/gVXn0lhkFeek1jqLmuY1+yhCkOXi0pVi 93D05AXNvr2YP72g8zl9eXpxenwtaqUFosxhA+jhWqPIVk1h+2Cr0I9Gi+i/Eux9NvhgZSIgSy8N L/NQAOTaoruoKoTYdwFx3HcsFbjvWDpKWLo0Kxzs8Y3fLzMOdPDQvdownYVpwfQ96N+jWuD+8L1o 3Hcszb+Z+c8dy/fxXIX7N/LcETcpWznitz8sS0B/d3t5g+s3JZ6Fl/gk9LIUxoZNR2m+C4KnX7ne 5nxXQn1DyhGqW8Q2OjNsXSJS912B2UMPVLg+uxA2eM/c5rKE4alCneE2jcgKBHzX5QzDeZODhfXN er0KrOq6WqV59CgIkKJVshaqNq6FLxSqRud9/S2avk5Tluy11ED4otiY7vZgVMWb3ag8b6xLNUd5 dJXwvOkICrbmzsKVVipHS5+50QJ9qUXSpczNMm61UCue167dz50Zjd3BC3QQlVgUrg/cUsfXYDd1 1DJT6PZdYUWjTjln2jSGNtQcTa/PheStM0G9orzWbqzowmiXfNNCpEtQIX2ivf0mmiP7OVmbJieD bdkq1DX204we4OLg0qB03Q3aZY1DLXnUCZ43WZy1rVUGmGO+hj3Gc8Jr7gSN94zfnTNSNxz+bOHf bsBK/HXeRtmXaLcUIKLfFSL9iPScgWR/LWAWtp76E8hVU8xKN1N5iW1B8y+uR55zUMJ/UNL9uK7e Z/uzD/7vx+16cfcM+qvKDXrzvaa67yaf50/m9O3F16irFaq4dT2sh/kaNf7dceIjqxXYnzWhqx3m EGuAKGuaDKtWiIhm7mwr8r5b3kXJ9XrQBMwjaods5NyVMjhPj4ImR2Q+znZnimDptFvtAAqwAUhd KJVJh/dzwpznIdvxQeKQ6lHM0PksEOpdfK8xWPspGqYoWC8kK7sfj4Xro9hNl/+/owjahin4D/+k uxqPEwAA --=-=-= Content-Type: text/plain after the "thier t". Now hit some ESC TABs. Notice how way off the screen near the top, "theww" is mutating further and further. --=-=-=-- From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151888379129343 (code B ref 30462); Sat, 17 Feb 2018 16:10:01 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 16:09:51 +0000 Received: from localhost ([127.0.0.1]:48479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en53e-0007dD-UX for submit@debbugs.gnu.org; Sat, 17 Feb 2018 11:09:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en53d-0007d0-1T for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 11:09:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en53X-0002iI-1h for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 11:09:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en53P-0002Xz-AI; Sat, 17 Feb 2018 11:09:35 -0500 Received: from [176.228.60.248] (port=4081 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1en53O-00018U-Pf; Sat, 17 Feb 2018 11:09:35 -0500 Date: Sat, 17 Feb 2018 18:09:37 +0200 Message-Id: <83sh9zbnsu.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87lgfr7ipk.fsf@jidanni.org> (message from =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson on Sat, 17 Feb 2018 23:13:11 +0800) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> <87lgfr7ipk.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: 積丹尼 Dan Jacobson > Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru > Date: Sat, 17 Feb 2018 23:13:11 +0800 > > after the "thier t". > Now hit some ESC TABs. > Notice how way off the screen near the top, "theww" is mutating further and further. But if you kill the buffer, then create a new one, insert the same text into it, activate flyspell-mode, and try ESC TAB at the same place, you won't see the problem, right? I think I see the reason for this: it's a stale cache from a previous invocation of flyspell-auto-correct-word that is not flushed when you type more text or move point. So flyspell-auto-correct-word tries to correct the same word het time you invoke it, no matter how far away are you. Please try the patch below (you will need to byte-compile flyspell.el after applying the patch). If it gives good results, please run with it for a while and see if there are any problems left. If this change has no adverse effects, I will push it. diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 5568bbb..2187766 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -1933,6 +1933,8 @@ flyspell-auto-correct-word (call-interactively flyspell--prev-meta-tab-binding) (let ((pos (point)) (old-max (point-max))) + (if (not (eq last-command 'flyspell-auto-correct-word)) + (setq flyspell-auto-correct-region nil)) ;; Use the correct dictionary. (flyspell-accept-buffer-local-defs) (if (and (eq flyspell-auto-correct-pos pos) From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2018 23:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15189106529652 (code B ref 30462); Sat, 17 Feb 2018 23:38:02 +0000 Received: (at 30462) by debbugs.gnu.org; 17 Feb 2018 23:37:32 +0000 Received: from localhost ([127.0.0.1]:48748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enC2t-0002Vb-Tk for submit@debbugs.gnu.org; Sat, 17 Feb 2018 18:37:32 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:34425 helo=homiemail-a62.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enC2r-0002VT-7t for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 18:37:29 -0500 Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id 40BE2634073; Sat, 17 Feb 2018 15:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=jCA0UWBnoZYh4PzswAlorcMdGxE=; b=T1btOtKku5aFA bnGdNekaY4v573LJqMtTiEm9WwTWTzTd6gVmYZrinFa7KOZWfa5saG7z2nwSYVrf RiU60Pvgtsh2nOztQVb7sNbQd81zbwivdXvYTJ+85DUEiKhlKzt4SjDEtbFibQ4A j0qVkE9gM2CUHZWcM2Jl1ga0PWYcRw= Received: from jidanni.org (36-234-69-247.dynamic-ip.hinet.net [36.234.69.247]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 8D04063406F; Sat, 17 Feb 2018 15:37:27 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> <87lgfr7ipk.fsf@jidanni.org> <83sh9zbnsu.fsf@gnu.org> Date: Sun, 18 Feb 2018 07:37:22 +0800 Message-ID: <87o9knp4r1.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) OK thanks. I'll try the patch in a few moments, but there is just one more thing I want to say... which exposes a bug in view-lossage... but probably even deeper... b [self-insert-command] e e [self-insert-command] h h [self-insert-command] a a [self-insert-command] v v [self-insert-command] u u [self-insert-command] o o [self-insert-command] u u [self-insert-command] [delete-backward-char] [delete-backward-char] [delete-backward-char] i i [self-insert-command] o o [self-insert-command] r r [self-insert-command] [flyspell-auto-correct-word] C-e [move-end-of-line] C-h l [view-lossage] Uh oh, what did it correct this time? I thought it might have changed behaviour into behavior like I wished. But looking closely, I had already in fact typed behavior... So instead it probably went on one of its long hunting missions... uh oh. Hmmm, checking *Messages* doesn't show any of its usual choices... Sure, blame me for trying to correct an already correct word. But just like two wrongs don't make a right, two rights shouldn't make a wrong. No I don't know why lossage shows two ABCdef abcdef I just tried an experiment. Typing exactly eight characters, a b c ESC TAB d e f C-h l runs the command view-lossage. It says a [self-insert-command] b b [self-insert-command] c c [self-insert-command] [flyspell-auto-correct-word] d [self-insert-command] e e [self-insert-command] f f [self-insert-command] It shows two s ! Now let's try a real a b c ESC ESC TAB d e f a [self-insert-command] b b [self-insert-command] c c [self-insert-command] [nil] d [self-insert-command] e e [self-insert-command] f f [self-insert-command] Three s! Only this flyspell stuff is affected. Other ESC commands have OK lossage: g [goto-line] 9 [self-insert-command] 9 [self-insert-command] [exit-minibuffer] x [execute-extended-command] w [self-insert-command] h [self-insert-command] o [self-insert-command]... No wonder I can't unbind flyspell-auto-correct-word... it's on some astral plane... From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Feb 2018 00:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Reply-To: rms@gnu.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151891290713198 (code B ref 30462); Sun, 18 Feb 2018 00:16:02 +0000 Received: (at 30462) by debbugs.gnu.org; 18 Feb 2018 00:15:07 +0000 Received: from localhost ([127.0.0.1]:48765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enCdH-0003Qo-6U for submit@debbugs.gnu.org; Sat, 17 Feb 2018 19:15:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enCdG-0003Q5-60 for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 19:15:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enCdA-0002vW-5E for 30462@debbugs.gnu.org; Sat, 17 Feb 2018 19:15:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enCdA-0002vS-1N; Sat, 17 Feb 2018 19:15:00 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1enCd9-0001Ke-HV; Sat, 17 Feb 2018 19:14:59 -0500 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-reply-to: (message from Eli Zaretskii on Thu, 15 Feb 2018 14:00:59 +0200) References: <87h8qi93dy.fsf@jidanni.org> Message-Id: Date: Sat, 17 Feb 2018 19:14:59 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > This happens only if you invoke the command more than once on the same > location. So, while I agree that the doc string should be fixed, the problem > you describe can happen only by user request. Yes and no. Repeating a command again is an easy thing for a user to do by mistake. Since the effects may not be visible, person will not necessarily see what has happened. This is dangerous. It should do some sort of confirmation to protect per from this danger. How about asking for confirmation the first time a user repeats the command in this way? -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) Skype: No way! See https://stallman.org/skype.html. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 00:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 30462@debbugs.gnu.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15190862852419 (code B ref 30462); Tue, 20 Feb 2018 00:25:01 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 00:24:45 +0000 Received: from localhost ([127.0.0.1]:51843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1envjh-0000cx-Ff for submit@debbugs.gnu.org; Mon, 19 Feb 2018 19:24:45 -0500 Received: from mail-wr0-f172.google.com ([209.85.128.172]:44734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1envjf-0000ci-Ma for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 19:24:43 -0500 Received: by mail-wr0-f172.google.com with SMTP id v65so11343456wrc.11 for <30462@debbugs.gnu.org>; Mon, 19 Feb 2018 16:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZUo3gx9rEbRjAFleEMygV8kPccDHIog7m/KX3c2Havw=; b=KhneGKBaEdN7qcODOMIKB7XY+pOcOdf1wICES4eXtkxoyrUgxp6LUsIwUyQTUDtA42 FCBDroHWu2DREaGQxI0yZv4q+iaMobUSuTgIaAFFmg7AQ+G2WQApBZ1MHhJ5sY4TrSC0 WilL1M5XbQ1NAgggpAA0uG63jpyaF75BM9gHtSOdUk/rLE4foX3zooMKQgkXdDvC9PZB RfBLAFYaKPJZoW2hiRy6inAtrjQnCpCITLtBTFNKDlBQ5uxv11hY7YxHtFE9LIOZRy7N WG8qU2WhTdsAPjQRtW13uLqlK5gY9olLl4csFmPVZ9SKVXSzrMfy80YHOMeRMdmW9tnZ pPrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZUo3gx9rEbRjAFleEMygV8kPccDHIog7m/KX3c2Havw=; b=I/vT+UWBPncoKjYj/nPhC5B5wwa6YIM74CXu0TTKUQwrNJRmvyhY0pq/yz8vGRjQAX L0aA0FcPhPoc/Gxw3O3cwMQ9AoSLkgwv+3bUR8Q0OGPNeuOQapXk9HvOCVagw8Xz8rRE lXmJ9qiSrm3zibfyarnJWaFLY+/pkBZFoG7PEkKfa+rpeHsBVUAk3IvaJ8eFIuh+GESI x7lxDF4dg0NxhZERzcHxXWSW4YucbYKsI0HHgvr4EPI5mDdzRxE7W6Ps3MPY2xwpmqVK npTRUBzoJeuw056a+qKZx0RDzkiWvfELJtJRCxXTm49YJee8g/M8igxD8BxBeZEY5N9e htRA== X-Gm-Message-State: APf1xPD9a0YXQbOolNNmEHZfggUGMWvtlO66YXVBwksN0HkSXncD6tXl m/PqIMcTB++as0FCYahmeshIG9+X X-Google-Smtp-Source: AH8x224kVnSMWQU3Og1FoVfxzA52EOb3JxY6BDTA0aDCDjaMyH2CKjO2Zl7IyFirq5GWETozLlcbdA== X-Received: by 10.223.196.211 with SMTP id o19mr13834607wrf.256.1519086277638; Mon, 19 Feb 2018 16:24:37 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id p5sm27465511wmf.13.2018.02.19.16.24.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 16:24:36 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> <87lgfr7ipk.fsf@jidanni.org> <83sh9zbnsu.fsf@gnu.org> From: Dmitry Gutov Message-ID: <5cbfcff1-1f97-bf78-cb19-a9241a517092@yandex.ru> Date: Tue, 20 Feb 2018 02:24:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <83sh9zbnsu.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/17/18 6:09 PM, Eli Zaretskii wrote: > I think I see the reason for this: it's a stale cache from a previous > invocation of flyspell-auto-correct-word that is not flushed when you > type more text or move point. So flyspell-auto-correct-word tries to > correct the same word het time you invoke it, no matter how far away > are you. So it seems like it was an implementation accident after all (i.e. a bug), rather than a old behavior worth preserving. > Please try the patch below (you will need to byte-compile flyspell.el > after applying the patch). If it gives good results, please run with > it for a while and see if there are any problems left. If this change > has no adverse effects, I will push it. It does fix the scenarios I could come up with. Looks like a good change to me, thanks! From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 00:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , jidanni@jidanni.org Cc: 30462@debbugs.gnu.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15190865312787 (code B ref 30462); Tue, 20 Feb 2018 00:29:02 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 00:28:51 +0000 Received: from localhost ([127.0.0.1]:51847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1envne-0000it-W7 for submit@debbugs.gnu.org; Mon, 19 Feb 2018 19:28:51 -0500 Received: from mail-wr0-f169.google.com ([209.85.128.169]:41691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1envnd-0000ie-I1 for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 19:28:49 -0500 Received: by mail-wr0-f169.google.com with SMTP id f14so6939468wre.8 for <30462@debbugs.gnu.org>; Mon, 19 Feb 2018 16:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=q6XO4Fl/cKj7Ct5swEgKG1FODmk4RICLJD/tZIhRAjs=; b=kxi1r7dehUcWN3qHb5d0//R2MehAIYQevMYdVzmKvjcdHKV+8O6hGkWQYHZjaaoTxs pMchhQbzudYAi0f4rR2GbfHAmOGVeEag1AGgaplsFBWYuEoba7CeFmZ5y4tIPTc9aRNq RAj38i4yWsB++i2aJEk9qXFmrtvvudlTP51p7sSBqfgGzx1OytbHdsLoZaHMFYdqJy+6 m2BxunUBNzH1jWq2hNz1ByaXJ6md0VSwrwdoihxtR3O8pYGOkecF5aoUsmrvsJz4MNIT qxVWBvokumltX54//8rSOtKcPVoo/iS0K7l0411XRUWY1zWsxPKyCA4P2SpcP15YE5G4 R7yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=q6XO4Fl/cKj7Ct5swEgKG1FODmk4RICLJD/tZIhRAjs=; b=WQyW16Ffm/4dg3oy3e/o5fPKl9OF/gPbsb9Lgl53UrgdF5ChKcYJXYxAIXHqTdOE5E R9gqVoZeLlCAjzYWc+axmpBoAX4EQT6nepAayhaX2EYtq150kT5PSeZgXF56GssjpvwV W9l6xHaqh74hyZuS2AHk08w6pF6ycD/mxFKez7PyJ7GK2w7OU3o94hXiU7kVAiqbwgxx P4JUmTsNDrlaxNs2Pbt38NLkclPafrBgOhWuAA4eONeXtrD5Xty2YC5Jh49SUJn65krT Y14dPNaIrkrT0+8A5529jK77K0atbmCajPDBpwYFLk0fOgZooFrSmF8wVE664E6pI2aB LUCw== X-Gm-Message-State: APf1xPB4bK0hrAikz30iLCrHAMNZJmUGKDS9hiSh4g7hm5Xau0OQ95Vs 6vJ6op8cyK4PRaZN11bpZSPWy/NR X-Google-Smtp-Source: AH8x224fCSW3/JrPe/xEINA8lkc0UXkJo1489SGTN50zOFRmAI+LDLdAxtx6wFxusyjqp4jyCEjWdQ== X-Received: by 10.223.160.207 with SMTP id n15mr14890656wrn.25.1519086523771; Mon, 19 Feb 2018 16:28:43 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id l9sm43832732wrl.1.2018.02.19.16.28.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 16:28:43 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> From: Dmitry Gutov Message-ID: <25478f62-e39d-77e7-86d5-91732199cfb7@yandex.ru> Date: Tue, 20 Feb 2018 02:28:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <834lmhdnl8.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/16/18 4:18 PM, Eli Zaretskii wrote: > In the meantime I'm going to fix the doc string to describe the > behavior when the command is invoked at the same location repeatedly. The new docstring ways "at or near that position". You might or might not want to undo that. The reason I'm unsure, though, is that flyspell is also happy to consider the word before point, even if it's separated with lots of whitespace. Maybe we should clarify what "current word" means for it instead. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 00:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151908788812565 (code B ref 30462); Tue, 20 Feb 2018 00:52:02 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 00:51:28 +0000 Received: from localhost ([127.0.0.1]:51884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enw9Y-0003Gb-FE for submit@debbugs.gnu.org; Mon, 19 Feb 2018 19:51:28 -0500 Received: from mail-wr0-f172.google.com ([209.85.128.172]:35129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enw9W-0003GK-IF for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 19:51:26 -0500 Received: by mail-wr0-f172.google.com with SMTP id l43so11421756wrc.2 for <30462@debbugs.gnu.org>; Mon, 19 Feb 2018 16:51:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9iCfbpoKNcn+F/m1NwUyv4C1waGWQQI66rytubiQ4WQ=; b=k0Yv4t9RVWQo7PmkUXPXPWHhaz6T7epoW0wvA/YzDAgPkCGlFT5k007X918th4BA66 aehzrDcAsjGDKPfkhwkSbemwCDCAOzcaxDujPSrNF8uJIMGXmxPvBdNwMGuOhW4deOe2 BaIGrs+wZKbSbPrvQiHTxSqFfVKmi8BZNjeQ1TFCzcaLnV8+bwjanuf3NlJ2UsuPl6UX ahayco4njPRuJzoQzLD3CC9r4mPz554Gb8AfSQVzt6KL2QeYkv8c9LnP1cBdYFPugIqq it/AzT/Wduhy4CxEgYcmVEnOF3GgOz4RZHXUr5R6ydT3ozA21NVugTlaMjx2+6NXX8ri HZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9iCfbpoKNcn+F/m1NwUyv4C1waGWQQI66rytubiQ4WQ=; b=e4+RMqa+213udccPbV01NLNJA8mdDFhPyc3QQZpcjKHgypysJ1RJHRz1tqED3JfmZb dahR3odohy0annvW+c9Cyyp+O5SCbZG4yIVsi+H4C2sRAdwYEt+iBTlalrcI97d+BYVc cJ9RVMRHOWjnp87gBUDNh8nTSBApKwdU/Bar9l96CJ0tK0JPtkfFr7LEhkcIB6FygUqL Zf/GBhCVmyBgHZ+OyZ0OAdi/YAUvKT4mRKhe/BVHYeg6Di+92LzajFp6gOxcW43SYH8h 5SqiukC2MgrZe9mY6mX+F6rnPAafPvJgv/vb4vd7fUFTi2RpZXGOMtERUYWQtjuUPV2N Yalg== X-Gm-Message-State: APf1xPA0/yOCvlrOHCyM4OvyruZ7qTzqKSt8hVwVQfuh4Q0BE+umhrqy i4lFS6b15Pn2Lt+a3NUmY5s= X-Google-Smtp-Source: AH8x227ca04qD6dotNaeCWTkdYmZnh78utLRAD6/SkYtEXO7V9DQtogA/7jfAMg5adTIp/IKy9kr1A== X-Received: by 10.223.183.43 with SMTP id l43mr15419312wre.265.1519087880893; Mon, 19 Feb 2018 16:51:20 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id z73sm21361705wmc.3.2018.02.19.16.51.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 16:51:19 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> From: Dmitry Gutov Message-ID: Date: Tue, 20 Feb 2018 02:51:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <83606xdp1m.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/16/18 3:47 PM, Eli Zaretskii wrote: > I'm not against a fix, I'm just saying that the fix should not change > the default behavior in totally incompatible ways. That was never the intention, I think. >> It's not like an API stability argument, no third-party Lisp code will >> break after this change. > > I don't see why breaking someone's code is deemed more serious than > breaking someone muscle memory and habits of using Emacs for many > years (this code is in Emacs since July 2000!). To me, they are > equally bad. Someone's code might be used by a lot of users, whereas the muscle memory generally belongs only to one person. In certain situations, code can be harder to fix as well (or, at least, to make sure the fixed version reaches all its users). And indeed, I think our policy has generally been that we can change a default key binding in the next release, but API-breaking Lisp changes have to go through periods of deprecation. > We have no way of knowing that, and in any case having someone come up > in the future with a legitimate question of why did we change this > behavior "just like that" is not a prospect I like, unless e have a > very good answer. Which in this case we don't, not IMO. "Danger of information loss" was a good reason, I believe. Anyway, I think we all agree it's a bug by now. >> If stability to such high degree is the goal, Emacs will more likely >> fade away together with the current generations of its users. > > That's unfair, and also a kind of strawman. Emacs evolves by adding > new features, much more than by changing the existing ones. New > features don't have the "past performance" baggage, so we are free to > design and implement them as we see fit. We can also change existing > features, as long as the deviant behavior, when first introduced, is > opt-in and doesn't change the long-standing defaults. When new and old can coexist, and the old is reasonably serviceable, sure. > Why would someone insist on changing > the default for _everyone_ if they can have it customizable for > themselves to their liking? To answer this question in general: worry about new users (or just unaware ones) and Emacs's reputation. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 04:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151909970430861 (code B ref 30462); Tue, 20 Feb 2018 04:09:02 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 04:08:24 +0000 Received: from localhost ([127.0.0.1]:51989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enzE8-00081h-Ft for submit@debbugs.gnu.org; Mon, 19 Feb 2018 23:08:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enzE6-00081O-Ou for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 23:08:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enzE0-0002X3-V6 for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 23:08:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enzE0-0002Wv-RL; Mon, 19 Feb 2018 23:08:16 -0500 Received: from [176.228.60.248] (port=3223 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1enzE0-0003nM-1v; Mon, 19 Feb 2018 23:08:16 -0500 Date: Tue, 20 Feb 2018 06:08:26 +0200 Message-Id: <837er88fr9.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <5cbfcff1-1f97-bf78-cb19-a9241a517092@yandex.ru> (message from Dmitry Gutov on Tue, 20 Feb 2018 02:24:32 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> <87lgfr7ipk.fsf@jidanni.org> <83sh9zbnsu.fsf@gnu.org> <5cbfcff1-1f97-bf78-cb19-a9241a517092@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 30462@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 20 Feb 2018 02:24:32 +0200 > > On 2/17/18 6:09 PM, Eli Zaretskii wrote: > > > I think I see the reason for this: it's a stale cache from a previous > > invocation of flyspell-auto-correct-word that is not flushed when you > > type more text or move point. So flyspell-auto-correct-word tries to > > correct the same word het time you invoke it, no matter how far away > > are you. > > So it seems like it was an implementation accident after all (i.e. a > bug), rather than a old behavior worth preserving. Yes. I somehow managed to get the problematic behavior on the first attempt, and then misinterpreted the code which caused that. > > Please try the patch below (you will need to byte-compile flyspell.el > > after applying the patch). If it gives good results, please run with > > it for a while and see if there are any problems left. If this change > > has no adverse effects, I will push it. > > It does fix the scenarios I could come up with. Looks like a good change > to me, thanks! Thanks for testing. I will wait a few more days before pushing. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 04:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Reply-To: Eli Zaretskii Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151910064432294 (code B ref 30462); Tue, 20 Feb 2018 04:25:01 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 04:24:04 +0000 Received: from localhost ([127.0.0.1]:51995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enzTH-0008Oo-SG for submit@debbugs.gnu.org; Mon, 19 Feb 2018 23:24:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enzTF-0008OI-MV for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 23:24:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enzT7-0007kT-Et for 30462@debbugs.gnu.org; Mon, 19 Feb 2018 23:23:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enzT7-0007kJ-Av; Mon, 19 Feb 2018 23:23:53 -0500 Received: from [176.228.60.248] (port=3231 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1enzT6-00047P-Mt; Mon, 19 Feb 2018 23:23:53 -0500 Date: Tue, 20 Feb 2018 06:24:01 +0200 Message-Id: <83606s8f1a.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <25478f62-e39d-77e7-86d5-91732199cfb7@yandex.ru> (message from Dmitry Gutov on Tue, 20 Feb 2018 02:28:40 +0200) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <25478f62-e39d-77e7-86d5-91732199cfb7@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 30462@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 20 Feb 2018 02:28:40 +0200 > > On 2/16/18 4:18 PM, Eli Zaretskii wrote: > > > In the meantime I'm going to fix the doc string to describe the > > behavior when the command is invoked at the same location repeatedly. > > The new docstring ways "at or near that position". You might or might > not want to undo that. I tried to clarify that now. > The reason I'm unsure, though, is that flyspell is also happy to > consider the word before point, even if it's separated with lots of > whitespace. Maybe we should clarify what "current word" means for it > instead. That issue is inside flyspell-get-word, so I explained it in that function's doc string, and added references to it to flyspell-auto-correct-word and elsewhere. From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15191267108756 (code B ref 30462); Tue, 20 Feb 2018 11:39:01 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 11:38:30 +0000 Received: from localhost ([127.0.0.1]:52184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eo6Fi-0002H9-Jz for submit@debbugs.gnu.org; Tue, 20 Feb 2018 06:38:30 -0500 Received: from mail-wr0-f175.google.com ([209.85.128.175]:39417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eo6Fh-0002Gy-Gq for 30462@debbugs.gnu.org; Tue, 20 Feb 2018 06:38:29 -0500 Received: by mail-wr0-f175.google.com with SMTP id w77so13417903wrc.6 for <30462@debbugs.gnu.org>; Tue, 20 Feb 2018 03:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c6nBn5mLoTKpeHQwuZRnyypj4jkbhWEZh1RlvketLR8=; b=eqqaoyTxNXrlj+qHEfgjyHOa/5u6h5zkirTas7SKBFBXpZAx+7/qt8M87LlMyj9Q3H AHjzk8ODYmpb2aglSpTI4dxxvbkAd+Abq9Q1I4PPT/Xb/Ye5uJL2x7tPuIbo5iPwmARe K2PQ+MjzkV1fMi/z/oDrD79umMcoAVTxdkzLK6WsOuO0T5x91+YWZJIbqiDbBmcSNSCx Y4ESqgnbIlLRLY4OyE2dxF0OJUrd4q5gYjk//YyZgIxSFfWvjOEz5Ri32Ak8TAarta8r HI+PpK+7bHYUPHM25YeEW/5Ggi0xU214xXGqv7aKbsk0ZpxMk6ovOeZnpwiB/ie634K4 cPBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c6nBn5mLoTKpeHQwuZRnyypj4jkbhWEZh1RlvketLR8=; b=cd6nRSQcJg6iMhXrGFywWd96/4lGYJ1/YVj9PBSy4+GrtOz9PH6y5tpy5WYqQm1Rmm VIReM3iwAZznPmWVViGp4+j8kRKVLmWej8GH+MgykgXboHUjytVIYQa5VxUCyV3lZrZK XZ2ww9KxPAXxoAxtBcvsqT6ZSDY/Ej8hJMKEgKbXuwu6/gYGYmP/jtNPnKv6XuPBGz6c F3RcjpT7l2ipWg4aRpUVFuhABzmTqXuV5DEVn7ThW0BSzC6u5X6Q4KnhhhRwsgvZVVcp S4Nh+uMNRTXyUwI6lrZ1JjL84QQ5OzkYBU5jitBu7vCBgys6Zte3cACnmyxWGTeXMuYi 6MDQ== X-Gm-Message-State: APf1xPBMAn6Uj/LHGj2CFC2PVl+sg70YFj4yMdF36bGnh0z/9pPS5foo dovLpOfsMl5FLYy9WG+1O41r+HKz X-Google-Smtp-Source: AH8x226ifXzrz8oHzcXSVZFO4BKnZusyYFWbJ3GQ/QIMCyHDCgljoSdpcLUfZOLbYsRdA4EDaJBhmg== X-Received: by 10.80.161.5 with SMTP id 5mr23733516edj.65.1519126703915; Tue, 20 Feb 2018 03:38:23 -0800 (PST) Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id g2sm4059550eda.85.2018.02.20.03.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 03:38:23 -0800 (PST) References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <25478f62-e39d-77e7-86d5-91732199cfb7@yandex.ru> <83606s8f1a.fsf@gnu.org> From: Dmitry Gutov Message-ID: <9860917a-a1a7-4aa1-915d-758bba971f2c@yandex.ru> Date: Tue, 20 Feb 2018 13:38:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <83606s8f1a.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On 2/20/18 6:24 AM, Eli Zaretskii wrote: > That issue is inside flyspell-get-word, so I explained it in that > function's doc string, and added references to it to > flyspell-auto-correct-word and elsewhere. Thanks! From unknown Tue Jun 17 22:18:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word In-Reply-To: <87h8qi93dy.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Feb 2018 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: eliz@gnu.org Cc: 30462@debbugs.gnu.org, Dmitry Gutov Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.151914944626769 (code B ref 30462); Tue, 20 Feb 2018 17:58:01 +0000 Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 17:57:26 +0000 Received: from localhost ([127.0.0.1]:53148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoCAQ-0006xh-JB for submit@debbugs.gnu.org; Tue, 20 Feb 2018 12:57:26 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:43076 helo=homiemail-a62.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoCAO-0006xZ-On for 30462@debbugs.gnu.org; Tue, 20 Feb 2018 12:57:25 -0500 Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id AD54363407C; Tue, 20 Feb 2018 09:57:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=ezlJcxbEiUgFMLN0nLq+wTvar+c=; b=pE3/wm+Tbl0ar z9sNNSOIy/1RbgwFeKxtc95IodKPRyrvCABWkcrV/BNFrTvu1YDTr7LbHUa5k1Ui 7u7u7Pf7mT01vTvtcJU1a5EpSjk5+1ITTU38Y511cJhNuMwQ0IUcEZssF1li/l8R 6y57GP59WkBE11JRoUpG2WlZzEljYg= Received: from jidanni.org (114-41-20-224.dynamic-ip.hinet.net [114.41.20.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 63C56634073; Tue, 20 Feb 2018 09:57:23 -0800 (PST) From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <25478f62-e39d-77e7-86d5-91732199cfb7@yandex.ru> <83606s8f1a.fsf@gnu.org> <9860917a-a1a7-4aa1-915d-758bba971f2c@yandex.ru> Date: Wed, 21 Feb 2018 01:57:19 +0800 Message-ID: <87606r1r40.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) By the way, even with your patch view-lossage still sometimes says [flyspell-auto-correct-word] but also oddly sometimes says [flyspell-auto-correct-word] even though I only ever pressed ESC once. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30462#65 And maybe that is related to me being unable to unbind C-. and C-, https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30462#53 From unknown Tue Jun 17 22:18:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#30462: closed (Re: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word) Message-ID: References: <83a7vpv3h2.fsf@gnu.org> <87h8qi93dy.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 30462 X-Gnu-PR-Package: emacs Reply-To: 30462@debbugs.gnu.org Date: Sat, 03 Mar 2018 10:50:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1520074201-17369-1" This is a multi-part message in MIME format... ------------=_1520074201-17369-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30462: flyspell-auto-correct-word 'corrects' more than the current word which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 30462@debbugs.gnu.org. --=20 30462: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30462 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1520074201-17369-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30462-done) by debbugs.gnu.org; 3 Mar 2018 10:49:09 +0000 Received: from localhost ([127.0.0.1]:41827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1es4iy-0004Uy-Q4 for submit@debbugs.gnu.org; Sat, 03 Mar 2018 05:49:08 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1es4ix-0004Ul-UY for 30462-done@debbugs.gnu.org; Sat, 03 Mar 2018 05:49:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1es4io-0004h1-PV for 30462-done@debbugs.gnu.org; Sat, 03 Mar 2018 05:49:02 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1es4io-0004gS-MK; Sat, 03 Mar 2018 05:48:58 -0500 Received: from [176.228.60.248] (port=4529 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1es4in-00087A-Uq; Sat, 03 Mar 2018 05:48:58 -0500 Date: Sat, 03 Mar 2018 12:49:13 +0200 Message-Id: <83a7vpv3h2.fsf@gnu.org> From: Eli Zaretskii To: jidanni@jidanni.org In-reply-to: <837er88fr9.fsf@gnu.org> (message from Eli Zaretskii on Tue, 20 Feb 2018 06:08:26 +0200) Subject: Re: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word References: <87h8qi93dy.fsf@jidanni.org> <87y3juo1hq.fsf_-_@jidanni.org> <838tbuw5st.fsf@gnu.org> <6d3dc737-73ae-e6c6-5058-85d73421f9e9@yandex.ru> <838tbtdx0p.fsf@gnu.org> <9cee145f-0663-3043-b9b0-5133da1f0b00@yandex.ru> <83606xdp1m.fsf@gnu.org> <834lmhdnl8.fsf@gnu.org> <833721dmwu.fsf@gnu.org> <87o9koo2i6.fsf@jidanni.org> <83eflkcb14.fsf@gnu.org> <87lgfr7ipk.fsf@jidanni.org> <83sh9zbnsu.fsf@gnu.org> <5cbfcff1-1f97-bf78-cb19-a9241a517092@yandex.ru> <837er88fr9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30462-done Cc: 30462-done@debbugs.gnu.org, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 20 Feb 2018 06:08:26 +0200 > From: Eli Zaretskii > Cc: 30462@debbugs.gnu.org, jidanni@jidanni.org > > > > Please try the patch below (you will need to byte-compile flyspell.el > > > after applying the patch). If it gives good results, please run with > > > it for a while and see if there are any problems left. If this change > > > has no adverse effects, I will push it. > > > > It does fix the scenarios I could come up with. Looks like a good change > > to me, thanks! > > Thanks for testing. I will wait a few more days before pushing. Pushed to the release branch. ------------=_1520074201-17369-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Feb 2018 07:39:15 +0000 Received: from localhost ([127.0.0.1]:43588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emE8Q-0007j2-Mm for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emE8O-0007ip-N7 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emE8I-0008Vw-Oa for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emE8I-0008Vq-Ka for submit@debbugs.gnu.org; Thu, 15 Feb 2018 02:39:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emE8H-0000YF-Gl for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emE8C-0008SY-LR for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:05 -0500 Received: from homie.mail.dreamhost.com ([208.97.132.208]:39055 helo=homiemail-a3.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emE8C-0008RT-CJ for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 02:39:00 -0500 Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 16F4228408E for ; Wed, 14 Feb 2018 23:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=jidanni.org; bh=h8cKJ9TbWqNUUwhYQQH OVsTHc54=; b=XTXtcOok4KaPYLZGGvJfVTUvUuLOGq7uflSOxntFfxETH1kwQHB zKYFSL5wXtnOwFFtVbmdH6JdIhs/44p6TKEQwyzZU4djbdd4njguD1d6lMxJwavn bporRMj9SQYnkSgOAGAFNBWYBfb9W8gkyNhgXHFhLGaVh9KTDfz06BKU= Received: from jidanni.org (36-234-68-20.dynamic-ip.hinet.net [36.234.68.20]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id CC55928408F for ; Wed, 14 Feb 2018 23:38:57 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: flyspell-auto-correct-word 'corrects' more than the current word Date: Thu, 15 Feb 2018 14:24:25 +0800 Message-ID: <87h8qi93dy.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) C-M-i (translated from ) runs the command flyspell-auto-correct-word (found in flyspell-mode-map), which is an interactive compiled Lisp function in =E2=80=98flyspell.el=E2=80=99. It is bound to C-., C-M-i. (flyspell-auto-correct-word) Correct the current word. This command proposes various successive corrections for the current = word. Well it turns out if the current word is already correct, then it searches backward up to several sentences looking for another word that it can correct. Which can have disastrous consequences when the boss reads the final draft of what you sent him. Therefore it would be best if this command would limit its helpfulness to what it says in the docstring: the current word. Which to me means not some word 30 words back. ------------=_1520074201-17369-1--