From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#43702: Emacs master: Incorrect highlighting in regexp isearch. Date: Tue, 06 Oct 2020 23:17:44 +0300 Organization: LINKOV.NET Message-ID: <87y2kj2jt7.fsf@mail.linkov.net> References: <20200929121317.GA27007@ACM> <83wo0ck5ig.fsf@gnu.org> <20200929153355.GB27007@ACM> <87y2ks819k.fsf@gnus.org> <87y2krdqsk.fsf@mail.linkov.net> <87pn62wxz6.fsf@gnus.org> <878scp92mo.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12422"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Alan Mackenzie , 43702@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 06 22:19:34 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPtQs-00039h-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 22:19:34 +0200 Original-Received: from localhost ([::1]:48856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPtQr-0004XY-HA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 16:19:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPtQM-0004E0-KK for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 16:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPtQM-0001d5-BE for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 16:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPtQM-0000ZX-7W for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 16:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 20:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43702 X-GNU-PR-Package: emacs Original-Received: via spool by 43702-submit@debbugs.gnu.org id=B43702.16020154912131 (code B ref 43702); Tue, 06 Oct 2020 20:19:02 +0000 Original-Received: (at 43702) by debbugs.gnu.org; 6 Oct 2020 20:18:11 +0000 Original-Received: from localhost ([127.0.0.1]:54250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPtPX-0000YI-7K for submit@debbugs.gnu.org; Tue, 06 Oct 2020 16:18:11 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:42381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPtPU-0000Xs-Nh for 43702@debbugs.gnu.org; Tue, 06 Oct 2020 16:18:09 -0400 X-Originating-IP: 91.129.102.160 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0DBE9E000B; Tue, 6 Oct 2020 20:18:00 +0000 (UTC) In-Reply-To: <878scp92mo.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 01 Oct 2020 22:20:07 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189940 Archived-At: >>> So a better solution is maybe to save match-data on the isearch stack >>> and restore in isearch-pop-state (called by isearch-delete-char). >>> I could try to do this. >> >> Please do. This is fixed now. > I'm on it (also adding even/odd faces to lazy-isearch - optionally > on the new user option lazy-highlight-submatches). I started implementing group matches highlighting for lazy-highlight and also for query-replace, but then realized neither lazy-highlight nor query-replace need no such thing because this highlighting is only useful while incrementally constructing/inspecting a complex regexp for the current match in incremental isearch mode.