From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#32280: 26.1; FLYSPELL-BUFFER sometimes misbehaves for some input in a large enough buffer Date: Mon, 30 Jul 2018 18:43:03 +0200 Message-ID: <20180730164303.GA12241@agmartin.aq.upm.es> References: <992503e5-5f88-30c7-e9b9-fe0a884d2e52@gmail.com> <20180727160048.GA30487@agmartin.aq.upm.es> <20180730132033.GA1182@agmartin.aq.upm.es> <3d036b32-01df-6595-a023-3fc243613813@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1532971027 30786 195.159.176.226 (30 Jul 2018 17:17:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 17:17:07 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) To: 32280@debbugs.gnu.org, Artem Boldarev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 19:17:03 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 1fkBn4-0007tK-V3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 19:17:03 +0200 Original-Received: from localhost ([::1]:53964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkBpB-0005w6-KM for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 13:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkBHB-00015M-T8 for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkBH8-0001P5-F9 for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkBH8-0001Oz-9z for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkBH7-0007Qv-Oi for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jul 2018 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32280 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32280-submit@debbugs.gnu.org id=B32280.153296900128505 (code B ref 32280); Mon, 30 Jul 2018 16:44:01 +0000 Original-Received: (at 32280) by debbugs.gnu.org; 30 Jul 2018 16:43:21 +0000 Original-Received: from localhost ([127.0.0.1]:35250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkBGT-0007Ph-2A for submit@debbugs.gnu.org; Mon, 30 Jul 2018 12:43:21 -0400 Original-Received: from neon-v2.ccupm.upm.es ([138.100.198.70]:46157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkBGR-0007PY-0I for 32280@debbugs.gnu.org; Mon, 30 Jul 2018 12:43:19 -0400 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) (user=agustin.martin@upm.es mech=LOGIN bits=0) by neon-v2.ccupm.upm.es (8.14.4/8.14.4/neon-v2-001) with ESMTP id w6UGh396012656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jul 2018 18:43:03 +0200 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id CF5DA436E9; Mon, 30 Jul 2018 18:43:03 +0200 (CEST) Content-Disposition: inline In-Reply-To: <3d036b32-01df-6595-a023-3fc243613813@gmail.com> 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:149079 Archived-At: On Mon, Jul 30, 2018 at 07:29:06PM +0300, Artem Boldarev wrote: > Hi, > > Thanks, Agustin, this is an interesting find! I have altered my > configuration as you suggested, and indeed I wasn't able to trigger the bug > any more. > > https://chaoticlab.io/pub/flyspell-bug/flyspell-bug-no-explicit-chars.png > > Anyway, I am pretty confident that altering the configuration does not > resolve the bug, but rather hides it. I think so because of the following > reasons: > > 1. I do not see why my previous configuration, which uses explicitly > specified characters, is wrong. It works fine when spell checking as you > type and for smaller buffers and regions (when flyspell-large-region does > not get called). Hi, I'd suggest you to try lines below [A-Za-zАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя] [^A-Za-zАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя] with the latin chars A-Za-z added. ¿Does it work? > 2. Without the fix, the above-discussed inconsistency exists between how > flyspell works when you use it for: > > a) spell checking as you type and checking smaller regions of text (when > flyspell-small-region gets called). > b) spell checking large regions of text. AFAIK `flyspell-small-region' is very inefficient in terms of time for large buffers, so `flyspell-large-region' uses a completely different approach for those large buffers. It first looks for a list of possible misspellings and then searches for them sequentially in the text, running flyspell-word on each one. Regards, -- Agustin