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#8679: 24.0.50; wrong isearch highlighting for mismatch Date: Tue, 11 Feb 2014 18:23:34 +0200 Message-ID: <837g91ty7t.fsf@gnu.org> References: <066C4D0D5E9344B6AA56A2F57400BE27@us.oracle.com> <87r47c7plr.fsf@building.gnus.org> <715a78fd-35fb-41de-b523-5f86484a0369@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392135850 12120 80.91.229.3 (11 Feb 2014 16:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2014 16:24:10 +0000 (UTC) Cc: 8679@debbugs.gnu.org, larsi@gnus.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 11 17:24:16 2014 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 1WDG88-0002EB-Lj for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 17:24:16 +0100 Original-Received: from localhost ([::1]:34475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDG88-0003gi-7b for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 11:24:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDG80-0003fu-34 for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:24:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDG7v-0002PC-6n for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDG7v-0002P8-3Y for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WDG7u-0006KA-Ab for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:24: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: Tue, 11 Feb 2014 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8679-submit@debbugs.gnu.org id=B8679.139213583724296 (code B ref 8679); Tue, 11 Feb 2014 16:24:02 +0000 Original-Received: (at 8679) by debbugs.gnu.org; 11 Feb 2014 16:23:57 +0000 Original-Received: from localhost ([127.0.0.1]:47626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDG7o-0006Jm-38 for submit@debbugs.gnu.org; Tue, 11 Feb 2014 11:23:56 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:46335) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDG7k-0006JV-EP for 8679@debbugs.gnu.org; Tue, 11 Feb 2014 11:23:53 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0N0U00O00ASH1E00@mtaout24.012.net.il> for 8679@debbugs.gnu.org; Tue, 11 Feb 2014 18:22:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0U00K0SAU2BW40@mtaout24.012.net.il>; Tue, 11 Feb 2014 18:22:50 +0200 (IST) In-reply-to: <715a78fd-35fb-41de-b523-5f86484a0369@default> 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: 140.186.70.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:85385 Archived-At: > Date: Tue, 11 Feb 2014 07:23:26 -0800 (PST) > From: Drew Adams > Cc: 8679@debbugs.gnu.org > > > > In this case the mismatch highlighting is inaccurate: > > > > > > emacs -Q > > > C-x b *scratch* > > > C-s ZZZZ > > > > > > The entire search string is highlighted as a mismatch, which is > > > correct. > > > > > > M-e M-a e > > > > > > So the edited search string is eZZZZ. > > > > > > C-s > > > > > > The entire search string, `eZZZZ' is highlighted, even though > > > there are matches for the `e'. > > > > Seems to work for me. Closing. > > Seems to work for you apparently means little, I'm afraid. > > Still a bug on Windows, at least. The only difference in the > recipe now is that you need not use M-a. The point is that > after inserting `e' at the front of the search string, `C-s' > still highlights the whole search string, `eZZZZ', instead of > highlighting only the mismatch portion, `ZZZZ'. Why is that a bug? What do you get with this simplified recipe? emacs -Q C-s eZZZZ When you type 'e', all the 'e's in the buffer are highlighted, but the 'e' in the echo area is highlighted in pink. As soon as you type the first 'Z', the highlight in the buffer goes away, and the whole "eZ" in the echo area is colored in pink. And that is what I would expect. What you seem to expect happens when the search wraps around, but no such wrap-around happens in your recipe.