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#7470: 24.0.50; Word Isearch lazy highlighting Date: Wed, 24 Nov 2010 01:43:45 +0000 Organization: JURTA Message-ID: <87r5eb4hta.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290564899 10433 80.91.229.12 (24 Nov 2010 02:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 02:14:59 +0000 (UTC) Cc: 7470@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 24 03:14:54 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PL4sm-0005lo-8n for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Nov 2010 03:14:53 +0100 Original-Received: from localhost ([127.0.0.1]:60769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL4sl-00039U-Ji for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Nov 2010 21:14:51 -0500 Original-Received: from [140.186.70.92] (port=57574 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL4sc-00039M-Qy for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2010 21:14:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PL4sX-00037F-TB for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2010 21:14:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PL4sX-000376-Rn for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2010 21:14:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PL4dS-0006qs-01; Tue, 23 Nov 2010 20:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Nov 2010 01:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7470-submit@debbugs.gnu.org id=B7470.129056393326321 (code B ref 7470); Wed, 24 Nov 2010 01:59:01 +0000 Original-Received: (at 7470) by debbugs.gnu.org; 24 Nov 2010 01:58:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PL4dJ-0006qU-5T for submit@debbugs.gnu.org; Tue, 23 Nov 2010 20:58:53 -0500 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PL4dD-0006qD-Qr for 7470@debbugs.gnu.org; Tue, 23 Nov 2010 20:58:48 -0500 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id A35C46E805D; Tue, 23 Nov 2010 18:04:06 -0800 (PST) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 29345451C1A5; Tue, 23 Nov 2010 18:04:04 -0800 (PST) In-Reply-To: (Dani Moncayo's message of "Tue, 23 Nov 2010 21:29:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 23 Nov 2010 20:59:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41858 Archived-At: > Please, consider the situation arising after performing these steps:: > 0) Start Emacs (emacs -Q). > 1) Go to the beginning of the *scratch* buffer (M-<). > 2) Start an incremental _word_ search (M-s w). > 3) Type `that fil'. > > After step 3, the second occurrence of `that fil' should be > highlighted with `lazy-highlighting' face [1], but that doesn't > happen. The task of the word search is to find and highlight complete words. The heuristics it applies with partial lax word search (comparing the current search string with the previous one in `isearch-search-fun') is to help the user to type the complete word search string without signaling an error. So I doubt that lazy highlighting should follow the same logic as partial lax word search. What does lazy highlighting try to tell the user: "Look, if you type C-s, then Isearch will land in the next highlighted place". But in case of incomplete word search this is not true. When the user types C-s, it will not stop at the partial word string highlighted as you suggested.