From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Conkeror like hints for incremental search Date: Wed, 25 Jan 2012 13:29:12 +0200 Organization: JURTA Message-ID: <87zkdcm2wb.fsf@mail.jurta.org> References: <0015174be6c8d6fc6104b758379c@google.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327491564 15033 80.91.229.12 (25 Jan 2012 11:39:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 11:39:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: gideon.stupp@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 25 12:39:18 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rq1C8-0001ql-Nc for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 12:39:17 +0100 Original-Received: from localhost ([::1]:37898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq1C7-0006lO-W5 for ged-emacs-devel@m.gmane.org; Wed, 25 Jan 2012 06:39:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq1C1-0006kp-PX for emacs-devel@gnu.org; Wed, 25 Jan 2012 06:39:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq1Bx-0002ru-Tj for emacs-devel@gnu.org; Wed, 25 Jan 2012 06:39:09 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:55176 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq1Bx-0002ra-Jq for emacs-devel@gnu.org; Wed, 25 Jan 2012 06:39:05 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E72AC451C7EB; Wed, 25 Jan 2012 03:37:58 -0800 (PST) In-Reply-To: <0015174be6c8d6fc6104b758379c@google.com> (gideon stupp's message of "Wed, 25 Jan 2012 11:03:48 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147912 Archived-At: > Nice idea. Let me try and tweak the patch to work in this way. I want to > test it and see how it feels. BTW, there is another useful search feature missing in Isearch. In Chromium, the Search prompt displays the current search position and the total number of matches. It would be useful to implement this in Isearch. It helps to orient oneself while searching - to see how many matches are remaining to visit with C-s, etc. This information could be displayed in the mode-line in the usual format that can be seen in some Emacs packages, e.g. "7/24". The main problem is in the performance impact to count the total number of matches. Perhaps to not affect the responsiveness these computations should be placed in `isearch-lazy-highlight'.