From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#22097: Ispell: lazy highlighting doesn't work properly. Date: Thu, 10 Dec 2015 16:08:08 +0000 Message-ID: <20151210160808.GC3978@acm.fritz.box> References: <20151205114230.GA2698@acm.fritz.box> <83egf1f2qp.fsf@gnu.org> <87poyfrwwt.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1449763651 1711 80.91.229.3 (10 Dec 2015 16:07:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 16:07:31 +0000 (UTC) Cc: 22097@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 10 17:07:16 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 1a73kR-0000rQ-Sv for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Dec 2015 17:07:16 +0100 Original-Received: from localhost ([::1]:42696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a73kR-00006f-8a for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Dec 2015 11:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a73kJ-000067-JH for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2015 11:07:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a73kE-0000Hk-L0 for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2015 11:07:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a73kE-0000Hd-He for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2015 11:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a73kE-00007E-Ai for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2015 11:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2015 16:07: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.1449763568368 (code B ref 22097); Thu, 10 Dec 2015 16:07:02 +0000 Original-Received: (at 22097) by debbugs.gnu.org; 10 Dec 2015 16:06:08 +0000 Original-Received: from localhost ([127.0.0.1]:39250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a73jM-00005s-0X for submit@debbugs.gnu.org; Thu, 10 Dec 2015 11:06:08 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:40836) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a73jH-00005T-Ej for 22097@debbugs.gnu.org; Thu, 10 Dec 2015 11:06:06 -0500 Original-Received: (qmail 45971 invoked by uid 3782); 10 Dec 2015 16:06:01 -0000 Original-Received: from acm.muc.de (p548A4368.dip0.t-ipconnect.de [84.138.67.104]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 10 Dec 2015 17:06:01 +0100 Original-Received: (qmail 7148 invoked by uid 1000); 10 Dec 2015 16:08:08 -0000 Content-Disposition: inline In-Reply-To: <87poyfrwwt.fsf@mail.linkov.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:109834 Archived-At: Hello, Juri. On Thu, Dec 10, 2015 at 02:04:50AM +0200, Juri Linkov wrote: > > 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. > 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. -- Alan Mackenzie (Nuremberg, Germany).