From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22097: Ispell: lazy highlighting doesn't work properly. Date: Sat, 05 Dec 2015 16:20:38 +0200 Message-ID: <83d1ulf03t.fsf@gnu.org> References: <20151205114230.GA2698@acm.fritz.box> <83egf1f2qp.fsf@gnu.org> <20151205140609.GB2698@acm.fritz.box> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449325344 2375 80.91.229.3 (5 Dec 2015 14:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2015 14:22:24 +0000 (UTC) Cc: 22097@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 15:22:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a5Dj2-00083b-Ll for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 15:22:12 +0100 Original-Received: from localhost ([::1]:46699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Dj2-00045g-5I for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2015 09:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Dix-00042T-I4 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 09:22:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Dis-0000Ce-KO for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 09:22:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Dis-0000Ca-HK for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 09:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5Dis-0002S0-7p for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2015 09:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2015 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22097 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22097-submit@debbugs.gnu.org id=B22097.14493252719335 (code B ref 22097); Sat, 05 Dec 2015 14:22:02 +0000 Original-Received: (at 22097) by debbugs.gnu.org; 5 Dec 2015 14:21:11 +0000 Original-Received: from localhost ([127.0.0.1]:39660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Di2-0002QV-Ml for submit@debbugs.gnu.org; Sat, 05 Dec 2015 09:21:10 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:54053) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5Dhi-0002PY-JU for 22097@debbugs.gnu.org; Sat, 05 Dec 2015 09:21:09 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NYW007001S3ZZ00@mtaout24.012.net.il> for 22097@debbugs.gnu.org; Sat, 05 Dec 2015 16:13:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYW006D826OT340@mtaout24.012.net.il>; Sat, 05 Dec 2015 16:13:37 +0200 (IST) In-reply-to: <20151205140609.GB2698@acm.fritz.box> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109645 Archived-At: > Date: Sat, 5 Dec 2015 14:06:09 +0000 > Cc: 22097@debbugs.gnu.org > From: Alan Mackenzie > > > This is a "feature". Ispell skips regions determined by certain > > regexps, see ispell-skip-region-alist. In this case, the ASCII-art > > diagram around the second occurrence of "xdisp" includes regions that > > match some of the regexps (AFAICT, the '+' character followed and > > preceded by '-' triggers that). Lazy highlight doesn't want to try > > matching in those skip-regions, and since it cannot support > > non-contiguous regions, it simply limits itself to the beginning of > > the first such region, which happens to be before the second "xdisp". > > Ah. I didn't know this. Neither did I. I just traced through the code, is all. > However, the bug manifests itself a bit later on in plain text. > > There's a paragraph starting at L199 about bidi. After several more > hits on the space bar, the first occurrence of "bidi" (L201) gets > highlighted; the second occurrence (on the same line) gets lazily > highlighted. The third (L204) and fourth (L205) remain unhighlighted. > > Hit the spacebar another time. All four occurrences are now > highlighted. > > As far as I can see, there's nothing remotely ASCII-arty in that > paragraph. Unless the "---" sequences are somehow being interpreted as > ASCII-art. ispell-skip-region-alist is a complex regexp, something there must've (mis)fired.