From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#22097: Ispell: lazy highlighting doesn't work properly. Date: Sat, 12 Dec 2015 00:45:03 +0200 Organization: LINKOV.NET Message-ID: <87mvtgbnqs.fsf@mail.linkov.net> References: <20151205114230.GA2698@acm.fritz.box> <83egf1f2qp.fsf@gnu.org> <87poyfrwwt.fsf@mail.linkov.net> <20151210160808.GC3978@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449875302 12022 80.91.229.3 (11 Dec 2015 23:08:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2015 23:08:22 +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 12 00:08:12 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 1a7WnL-0000G4-5B for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Dec 2015 00:08:11 +0100 Original-Received: from localhost ([::1]:49808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7WnK-0000t4-Bu for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Dec 2015 18:08:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7WnF-0000rt-OK for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 18:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7WnC-0005tb-IV for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 18:08:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7WnC-0005tX-FJ for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 18:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a7WnC-00085x-4U for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2015 18:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Dec 2015 23:08: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.144987523631050 (code B ref 22097); Fri, 11 Dec 2015 23:08:02 +0000 Original-Received: (at 22097) by debbugs.gnu.org; 11 Dec 2015 23:07:16 +0000 Original-Received: from localhost ([127.0.0.1]:35173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7WmS-00084j-CO for submit@debbugs.gnu.org; Fri, 11 Dec 2015 18:07:16 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:34216 helo=homiemail-a39.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a7WmQ-00084b-MP for 22097@debbugs.gnu.org; Fri, 11 Dec 2015 18:07:15 -0500 Original-Received: from homiemail-a39.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a39.g.dreamhost.com (Postfix) with ESMTP id 96644150074; Fri, 11 Dec 2015 15:07:13 -0800 (PST) Original-Received: from localhost.linkov.net (m83-180-31-224.cust.tele2.ee [83.180.31.224]) (Authenticated sender: jurta@jurta.org) by homiemail-a39.g.dreamhost.com (Postfix) with ESMTPA id 6CCDC15006D; Fri, 11 Dec 2015 15:07:12 -0800 (PST) In-Reply-To: <20151210160808.GC3978@acm.fritz.box> (Alan Mackenzie's message of "Thu, 10 Dec 2015 16:08:08 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109874 Archived-At: >> > Lazy highlight doesn't want to try matching in those skip-regions, and >> > since it cannot support non-contiguous regions > >> Adding support for non-contiguous regions to lazy-highlight is trivial - >> the same way we did it recently for query-replace. > > I don't think I know what you mean, here. I don't see it as being at > all trivial, but maybe I'm missing something. > isearch-lazy-highlight-new-loop will need to get a list of regions to > skip, and pass this on to i-l-h-update which will need to step gingerly > through the allowed regions. It's trivial to use a list of regions in lazy-highlight to skip them. We can do this by adding a new variable isearch-lazy-highlight-regions, like you recently added isearch-lazy-highlight-window-groups. >> But to use it we need a list of boundaries of skipped regions from >> ispell. I guess this shouldn't be too difficult to do using regexps >> that Alan fixed today in ispell-skip-region-list. > > We should be able to take the list of boundaries from the bit of code > which searches for them in the first place. Maybe. Somehow. It's not trivial to take the list of boundaries from ispell-skip-region-list. So the obstacle is in ispell.