From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#30462: flyspell-auto-correct-word 'corrects' more than the current word Date: Tue, 20 Feb 2018 02:24:32 +0200 Message-ID: <5cbfcff1-1f97-bf78-cb19-a9241a517092@yandex.ru> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519086195 10873 195.159.176.226 (20 Feb 2018 00:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Feb 2018 00:23:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 Cc: 30462@debbugs.gnu.org To: Eli Zaretskii , =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 20 01:23:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1envi8-0002O5-Qa for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Feb 2018 01:23:08 +0100 Original-Received: from localhost ([::1]:52908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1envkA-0007u5-QZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Feb 2018 19:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1envk1-0007tj-GJ for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 19:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1envjy-0003GJ-8m for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 19:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1envjy-0003GE-4x for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 19:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1envjx-0000dU-Sc for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2018 19:25:01 -0500 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 30462-submit@debbugs.gnu.org id=B30462.15190862852419 (code B ref 30462); Tue, 20 Feb 2018 00:25:01 +0000 Original-Received: (at 30462) by debbugs.gnu.org; 20 Feb 2018 00:24:45 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: <83sh9zbnsu.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144046 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!