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 19:29:06 +0300 Message-ID: <3d036b32-01df-6595-a023-3fc243613813@gmail.com> References: <992503e5-5f88-30c7-e9b9-fe0a884d2e52@gmail.com> <20180727160048.GA30487@agmartin.aq.upm.es> <20180730132033.GA1182@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 1532969849 8552 195.159.176.226 (30 Jul 2018 16:57:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 16:57:29 +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 18:57:24 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 1fkBU4-00026X-20 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 18:57:24 +0200 Original-Received: from localhost ([::1]:53814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkBWA-00063f-O1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 12:59:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkB3h-0006IQ-6G for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkB3c-00040U-Sx for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:30:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58461) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkB3c-00040O-OO for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkB3a-000745-Gb for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 12:30:04 -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 16:30:02 +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.153296816027074 (code B ref 32280); Mon, 30 Jul 2018 16:30:02 +0000 Original-Received: (at 32280) by debbugs.gnu.org; 30 Jul 2018 16:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:35245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkB2t-00072c-Mm for submit@debbugs.gnu.org; Mon, 30 Jul 2018 12:29:19 -0400 Original-Received: from mail-lj1-f182.google.com ([209.85.208.182]:36097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkB2p-00072J-VC for 32280@debbugs.gnu.org; Mon, 30 Jul 2018 12:29:16 -0400 Original-Received: by mail-lj1-f182.google.com with SMTP id u7-v6so11069344lji.3 for <32280@debbugs.gnu.org>; Mon, 30 Jul 2018 09:29:15 -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=nlIiu6eHD6ZI4AKZithZLxFWQl3jbMcaziLpkEItDcE=; b=QvRTxNip9IXHKOnMLXqSMWHzfQH7jDJMAcyHL3ZtjYttSUVPb9q2iiGt4d1o9hd2Ef ilP4Wey7pjhzsiQZm/UVTzYEYNQpxbUscZ3OAT4ON6uABvWZLu29ak3AbY9gmEb21pMQ pr2v8Q0dW9JflumNqH6tZ345YRUI6aqCjbbMaBn3vhdfNideHf+boUdRluKXC+iGxTgz 2mrykeoE8cHZMyesDqQ3fvjO3Ojmwr9Kk96AYh2Mz3WejGyorYjdH5PkQEr+p6jI+Syh LASQcxx27RpzwcvSWWSkZsp0DnCKUyqOun5KkB/q2Zt45qSfA571RJ7krSAlCP8TcQ/O zAfg== 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=nlIiu6eHD6ZI4AKZithZLxFWQl3jbMcaziLpkEItDcE=; b=r5HQmH5Uap4dsBX/uf4C4BqVuvGWEuajoWssPCLHUFLp2JwBF4LOh8fXaPxMcma07E 3uREij755bfULHQf1Mk/WyfuAcRXvmksfWfGYahD/4aPWeHUeD38x0yTTngXmHOT94L6 Vlwm2H1x0APBRyQby2MI2OO4omYRb/Tcd9LZuroxFY+KNZwsj0e+wQ31ul5L+aQBdRtE kVZcQ6XuwZiuSOjDfPPqZqUDWDFg4XVLc/7Ocn3kf18qlDkz3ykR4N97z442u8ZZ4ZgJ oiZH6vKffreaNCye5wMGLzikJd/si0/8yAk/dsOiiUTMKhjvTeqKVW9aXZQiVNrO9AYJ a0sA== X-Gm-Message-State: AOUpUlGzMu/qmkdfxax1ugY5Vkw4Yxy7QddLA1lOpXWp3TMLhGM4j2H7 SEGr3YuFZUWrGfoaOI6glZdSOyy4FNI= X-Google-Smtp-Source: AAOMgpfIVeTogmo00FNSNLbRxxk9Ff4fn+51t4WFj4js5H76AlFA5TZmCQlkv9ZY9h/2+c2AIP8sQQ== X-Received: by 2002:a2e:8147:: with SMTP id t7-v6mr14291513ljg.32.1532968149723; Mon, 30 Jul 2018 09:29:09 -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 o74-v6sm1599150lfg.31.2018.07.30.09.29.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 09:29:09 -0700 (PDT) In-Reply-To: <20180730132033.GA1182@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:149078 Archived-At: 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). 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. It should be noted, that putting the cursor on a wrongly highlighted word when the flyspell mode is active, gets the word rechecked and un-highlighted. This behaviour demonstrates this inconsistency one more time. In fact, this inconsistency is the bug which I reported. Regards, Artem > Hi, > > I am using your example file with emacs -Q (Emacs 25) and had no problems, > flyspell-buffer works as expected after setting ispell-program-name to > hunspell and set ru_RU as dict (hunspell 1.6.2 here). > > Local Ispell dictionary set to ru_RU > Starting new Ispell process hunspell with ru_RU dictionary... > Checking region... > Spell Checking...100% [laborum] > Spell Checking completed. > > The auto-detected values for hunspell ru_RU are > > (ru_RU [[:alpha:]] [^[:alpha:]] t (-d ru_RU) nil utf-8) > > Wonder why otherchars is not shown. > >> The codepage I specified in the configuration, as it seems, is not the >> problem as spell checking works fine *most* of the time. I could spellcheck >> large amounts of text without any issues. It seems that hunspell always uses >> utf-8 internally, but I am not sure: I will try to investigate this. > Seems I was wrong, it is a long time since I digged there. > > ¿What happens if you use "[[:alpha:]]" and "[^[:alpha:]]" instead if the > explicit character strings "[АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]" > and "[^АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]"? > > Regards, >