From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#8679: 24.0.50; wrong isearch highlighting for mismatch Date: Tue, 11 Feb 2014 08:58:12 -0800 (PST) Message-ID: <1558a896-e67e-4c05-b87e-82ccd45bfbdd@default> References: <<066C4D0D5E9344B6AA56A2F57400BE27@us.oracle.com>> <<87r47c7plr.fsf@building.gnus.org>> <<715a78fd-35fb-41de-b523-5f86484a0369@default>> <<837g91ty7t.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392138012 7749 80.91.229.3 (11 Feb 2014 17:00:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2014 17:00:12 +0000 (UTC) Cc: 8679@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 11 18:00:18 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 1WDGgy-0007Xx-Rm for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 18:00:16 +0100 Original-Received: from localhost ([::1]:34734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDGgy-0001M5-Fq for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 12:00:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDGgM-0000z2-52 for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 12:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDGfl-00062Z-Uo for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:59:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDGfl-00062U-Sm for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WDGfl-0007Pg-KF for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 11:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Feb 2014 16:59:01 +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.139213790328437 (code B ref 8679); Tue, 11 Feb 2014 16:59:01 +0000 Original-Received: (at 8679) by debbugs.gnu.org; 11 Feb 2014 16:58:23 +0000 Original-Received: from localhost ([127.0.0.1]:47696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDGf9-0007Oa-CA for submit@debbugs.gnu.org; Tue, 11 Feb 2014 11:58:23 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26250) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDGf8-0007OJ-4D for 8679@debbugs.gnu.org; Tue, 11 Feb 2014 11:58:22 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1BGwEkK031402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Feb 2014 16:58:15 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1BGwDSD027678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Feb 2014 16:58:14 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1BGwDB8003613; Tue, 11 Feb 2014 16:58:13 GMT In-Reply-To: <<837g91ty7t.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:85389 Archived-At: > Why is that a bug? What do you get with this simplified recipe? >=20 > emacs -Q > C-s eZZZZ >=20 > When you type 'e', all the 'e's in the buffer are highlighted, but > the 'e' in the echo area is highlighted in pink. It depends where you start the search. If you start with point at eob then what you say is true. If you start the search at bob then the `e' is not pink when you just type `e'. When you then type `ZZZZ', so your search string is now `eZZZZ', the buffer highlighting disappears (there are no matches). The mismatched portion of your search string, which is the `ZZZZ' portion, is highlighted pink, to show that it is a mismatch. This is the correct (intended) behavior. > 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. See above. > And that is what I would expect. It might be all we can reasonably expect; I don't know. Probably Juri can answer that. And yes, in that case this is probably also the answer to the bug fix request: it might not be easy to fix. But the intended behavior of the pink highlighting is to highlight the mismatch portion of the search string. What this means is that there is a bug - the intention is not to highlight also the matched portion. It may not be a bug that we can fix, but it is a bug. > What you seem to expect happens when the search wraps around, but no > such wrap-around happens in your recipe.