From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Artem Boldarev 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 21:12:36 +0300 Message-ID: <41d68d6b-a687-30c1-818f-57659d7ec6c5@gmail.com> 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> <20180730164303.GA12241@agmartin.aq.upm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1532974274 12530 195.159.176.226 (30 Jul 2018 18:11:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 18:11:14 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: Agustin Martin , 32280@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 20:11:09 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 1fkCdR-0003B2-Jz for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 20:11:09 +0200 Original-Received: from localhost ([::1]:55193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkCfY-0007CP-AT for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 14:13:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkCfK-0007BM-2y for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 14:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkCfG-00038Z-2y for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 14:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkCfF-00038N-UL for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 14:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkCfF-0001If-OX for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 14:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artem Boldarev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jul 2018 18:13: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.15329743684979 (code B ref 32280); Mon, 30 Jul 2018 18:13:01 +0000 Original-Received: (at 32280) by debbugs.gnu.org; 30 Jul 2018 18:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:35359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkCf2-0001IF-Jx for submit@debbugs.gnu.org; Mon, 30 Jul 2018 14:12:48 -0400 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:45395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkCf1-0001I2-0P for 32280@debbugs.gnu.org; Mon, 30 Jul 2018 14:12:47 -0400 Original-Received: by mail-lj1-f175.google.com with SMTP id w16-v6so7743874ljh.12 for <32280@debbugs.gnu.org>; Mon, 30 Jul 2018 11:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=90ybxMpHoINCeaVLDLIcoIYWzd0ktltqMuuu4lkjSjU=; b=LKr5ODdC/y6o/K+/TcdxE+ugrDrbWEzz0wfUTHtI76PrpLObiTrtCu1Giz11otgFfc ETo4tIeoOIAVX459FVTKcCnnqaXMbsYz9nWBAP2RjC97SjHJqNtJ2lS3SKBh+ta0iSU3 OlEGBvdgKKApsyWDIMwmZ74fCCvIJCypXgEe78Jxfr8mCFk8szggT1908G1L+PbQYgce +2IzkLqjrKiVmZ/8BTzgw13d635lYzypJR1N7r0CJK6P0kGzjbHOTj8EFIMzj0+zbxZb knVEYscXkfoYrskWCZGQE51RWKDgoEN4ndHCquAi1QOuQ3DYO4EjlvK04zCkI2rzqFbB 8YEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=90ybxMpHoINCeaVLDLIcoIYWzd0ktltqMuuu4lkjSjU=; b=dYsg7l5M6VKKwOQUVaUMgt+2QUc92eq0hI5mlSXDc15kHnWX90NoO8P1P7s8+SiWHR GinPDnSk0GlNi/FcNBTPQFfb80sM82xN+3robOAEwgvtQ1CWRJba9yx6XSuz7xMNKX0Z g+gdAFscB5jNYWfBgRz57YzypQiWTMu+YsoXEqvN5m1V5DgANK8f05Cg6knCtiu5elIB +CBX9NqhxXix0uEHpJPcKa1t+ssw325haeCkYZ/6d61fX3HDl+7DR/YFYtbOCeNe/X83 zxtu1yro2BA97Re3ZhkUPkyBCwBjI7TUeV6sllkQUGP8s8eqrue82qUx7t6Saj00KlyT ZTEw== X-Gm-Message-State: AOUpUlHpIUlhL48FjGIOPCnSVmpdC78rTpDyh+vy1FWr53RZRocDyES5 m5bbwM8FMQWrCjN5OGzmZ4aAwrCLehs= X-Google-Smtp-Source: AAOMgpdqhiFXDgBOaeMlokFafRH36lNihjLqPObkbC+4h3YmThzJMGkBnW8GWs+18gszKYnbJ750Fw== X-Received: by 2002:a2e:9883:: with SMTP id b3-v6mr13273608ljj.80.1532974360702; Mon, 30 Jul 2018 11:12:40 -0700 (PDT) Original-Received: from ?IPv6:2a01:d0:dec0:0:ad62:f262:eb45:d80a? ([2a01:d0:dec0:0:ad62:f262:eb45:d80a]) by smtp.gmail.com with ESMTPSA id y72-v6sm1659129lfg.74.2018.07.30.11.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 11:12:39 -0700 (PDT) In-Reply-To: <20180730164303.GA12241@agmartin.aq.upm.es> Content-Language: ru 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:149082 Archived-At: I have tried to do as you suggested. The result is the same as in my previous letter. > 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. Yes indeed, it is so inefficient that checking a small region of text is more efficient with the flyspell-large-region most of the time (you can alter this behaviour by changing the flyspell-large-region variable). It checks spelling word by word - this is the source of its inefficiency. > 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, >