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 13:00:38 +0300 Message-ID: <02f036ab-dcce-cc43-c0cc-33f0dae1884e@gmail.com> References: <992503e5-5f88-30c7-e9b9-fe0a884d2e52@gmail.com> <83bmassv88.fsf@gnu.org> <29a7677b-47ad-a42b-17af-01ff4c06105e@gmail.com> <5B5EAEB5.4020005@gmx.at> 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 1532944754 29463 195.159.176.226 (30 Jul 2018 09:59:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 09:59:14 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: 32280@debbugs.gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 11:59:10 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 1fk4xK-0007Vy-4n for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 11:59:10 +0200 Original-Received: from localhost ([::1]:51560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk4zQ-00070S-Ni for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2018 06:01:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk4zC-0006zE-Fh for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 06:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk4z9-0002IC-4t for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 06:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57595) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fk4z8-0002I4-Qp for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 06:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fk4z8-0002ht-Iz for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2018 06:01:02 -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 10:01: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.153294485010374 (code B ref 32280); Mon, 30 Jul 2018 10:01:02 +0000 Original-Received: (at 32280) by debbugs.gnu.org; 30 Jul 2018 10:00:50 +0000 Original-Received: from localhost ([127.0.0.1]:34379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fk4yw-0002hF-9U for submit@debbugs.gnu.org; Mon, 30 Jul 2018 06:00:50 -0400 Original-Received: from mail-lj1-f172.google.com ([209.85.208.172]:43787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fk4yt-0002h0-5V for 32280@debbugs.gnu.org; Mon, 30 Jul 2018 06:00:49 -0400 Original-Received: by mail-lj1-f172.google.com with SMTP id r13-v6so9929376ljg.10 for <32280@debbugs.gnu.org>; Mon, 30 Jul 2018 03:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=cm3d1PTT3cDio/mdR5LKNgHJdSBnm0ORq+KId/2n12c=; b=DQkOfhHqMQXkyHiqLZ04lwQPD3X/yXyucory76ptE1MpblVv0TvkkfdiYoMIqVfiHj ZcchZ7gPDLgMo3sazMHghktshNWFiN/uHDdzS4P7QWnTMgTLOumUCyNEc6FLGCqgPmtO fvpig8TFMLpPxIWSo/7cg+pHbcgR/Ejduz06SSIdtZBeL36t01BBeSq/3NQMRn/dOExh qp1oDW+pI3vpGxwToQQlwXOYlealCGc05jRbYzpKxwrQB+sFrlDL3Z+qBnfWhgOtZL0o 7mFjaWrqDs2BpW+S7Y2Jvg/j7QR1L+YenKEySJkdlv8bDatjkv6A4IxYCyLWKyDn8MUH WvCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cm3d1PTT3cDio/mdR5LKNgHJdSBnm0ORq+KId/2n12c=; b=AQa5AiwPC+XogbttAyKVhcNOwUxLvvuj61BqnHj+v6HJnX+Aq18lmwcoYyZOQ2jo50 Mlmqw4BwO7zbi1BX0ydy8ZbwmVHIivaDOaPkBX5FMww2CcMrQ95MxRIfVLz5sYSaqe2H i6QCacYE0lDLu1bsvI6MHV+phAQvQ/G5dX9O5AY4FKytXxv47O62FCXXhclIXJyc6apW IUwZfdHD9LKdkgURPmB9hgLb6eyvHaeVa4s2A1glpSCK7pJ/QnITlSuc8ANJG4ElF4wM 8kKl9W9w5O3Q25GedTcI6Z/399mgc2nNorCkZregdNACIOyMhKsz62ftGDthtKil11ai 0fpQ== X-Gm-Message-State: AOUpUlFmYVgJrzyrHMPJkg6iksdsO/BocLYzLBSVLaYvU7J8Cnin6ItD jgUQ7yRNu7MbAKjyXwgXq1psaTZARss= X-Google-Smtp-Source: AAOMgpdwblbqPI2rCfnkLWbScbNWzaL4CV3gH2D0/eIL4O2a3WgTBoMF/aHsUDvB7HSYaLi/GWZEOQ== X-Received: by 2002:a2e:8457:: with SMTP id u23-v6mr11700990ljh.95.1532944840890; Mon, 30 Jul 2018 03:00: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 u10-v6sm2006958ljk.83.2018.07.30.03.00.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 03:00:40 -0700 (PDT) In-Reply-To: <5B5EAEB5.4020005@gmx.at> 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:149070 Archived-At: Hi, Yes, there is a clear pattern. The wrong behaviour appears only when the word in Latin, which follows the Cyrillic one, has the length more or equal to the length of a preceding word. Here is  the sample text: https://chaoticlab.io/pub/flyspell-bug/sample2/flyspell-sample2.txt Instructions for the bug reproduction are the same: https://chaoticlab.io/pub/flyspell-bug/flyspell-bug-reproduction.el Screenshot without the provided fix: https://chaoticlab.io/pub/flyspell-bug/sample2/flyspell-bug-sample2.png Screenshot with the provided fix: https://chaoticlab.io/pub/flyspell-bug/sample2/flyspell-bug-sample2-fixed.png It seems logical to me that the provided fix is sufficient for this case considering what was changed in the problematic function. Regards, Artem > > https://chaoticlab.io/pub/flyspell-bug/flyspell-bug-linux.png > > https://chaoticlab.io/pub/flyspell-bug/flyspell-bug-windows.png > > From these images it seems immediately evident that flyspell wrongly > marks и, именно, бесконечный and усложняет as misspelled only when a > non-cyrillic word follows it.  However, as paragraph 4 in these > examples also demonstrates, such condition is not sufficient since > there the words preceding 'HTML' and 'Lorem Ipsum' are not marked. > > Could you try to play around with the seqeuencing of words in that > example?  Maybe a clearer pattern emerges. > > Thanks, martin >