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: Fri, 27 Jul 2018 18:00:48 +0200 Message-ID: <20180727160048.GA30487@agmartin.aq.upm.es> References: <992503e5-5f88-30c7-e9b9-fe0a884d2e52@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 1532707681 5159 195.159.176.226 (27 Jul 2018 16:08:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2018 16:08:01 +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 Fri Jul 27 18:07:56 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 1fj5HX-0001Cc-4U for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2018 18:07:55 +0200 Original-Received: from localhost ([::1]:42173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj5Jd-0007hd-Uq for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2018 12:10:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj5Bu-0001iP-JR for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2018 12:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj5Bq-0001br-Nm for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2018 12:02:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fj5Bq-0001be-Jf for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2018 12:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fj5Bp-00014i-QI for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2018 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jul 2018 16:02: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.15327072674059 (code B ref 32280); Fri, 27 Jul 2018 16:02:01 +0000 Original-Received: (at 32280) by debbugs.gnu.org; 27 Jul 2018 16:01:07 +0000 Original-Received: from localhost ([127.0.0.1]:60553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fj5Ax-00013P-AX for submit@debbugs.gnu.org; Fri, 27 Jul 2018 12:01:07 -0400 Original-Received: from neon-v1.ccupm.upm.es ([138.100.198.71]:49866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fj5Av-00013F-1L for 32280@debbugs.gnu.org; Fri, 27 Jul 2018 12:01:05 -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-v1.ccupm.upm.es (8.14.4/8.14.4/neon-v1-002) with ESMTP id w6RG0maM019744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Jul 2018 18:00:48 +0200 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 592104456D; Fri, 27 Jul 2018 18:00:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <992503e5-5f88-30c7-e9b9-fe0a884d2e52@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:149021 Archived-At: On Thu, Jul 26, 2018 at 12:44:26PM +0300, Artem Boldarev wrote: > > Checking large enough buffer with FlySpell leads to the unexpected > results (at least, when spell checking Russian, but I believe that it is > possible to reproduce the bug for other languages, at least Ukrainian). > > For example, when checking large enough buffer (large enough to trigger > flyspell-large-region) I got the following messages in the *Messages* > buffer: > > Local Ispell dictionary set to ru_RU > Starting new Ispell process hunspell with ru_RU dictionary... > Checking region... > Spell Checking...100% [посимвольно] > Spell Checking completed. >  -> смом - 346: word not found >  -> стостояния - 319: word not found >  -> рекрсивного - 308: word not found >  -> универсальнее - 266: word not found >  -> генериует - 222: word not found [...] Hi, >     (setq ispell-dictionary-alist You should not set `ispell-dictionary-alist' yourself. If you really need an entry with special features, add it to `ispell-local-dictionary-alist', better with an ad-hoc name. >           '(("en_GB" >              "[A-Za-z]" "[^A-Za-z]" >              "[']" nil ("-d en_GB") nil iso-8859-1) > >             ("ru_RU" >  "[АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]" >  "[^АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]" >              "[-]" nil ("-d ru_RU") nil utf-8) As far as I know hunspell-ru is encoded in koi8-r (at least in Debian lo-dicts), but you declare it as utf-8. Unless your dict is indeed in utf-8 and declared as such, this may be the problem. ¿What happens if you comment all your "(setq ispell-dictionary-alist ... )" stuff and just trust the list of available dictionaries provided by Emacs (Tools/Spellchecking/Change dictionary), selecting ru_RU from it? Regards, -- Agustin