From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Request for enhancement: Scrolling (etc.) in incremental search. Date: Wed, 26 Feb 2003 10:57:29 +0000 (GMT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <5xy944rnql.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1046261823 17915 80.91.224.249 (26 Feb 2003 12:17:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2003 12:17:03 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18o0Ue-0004eZ-00 for ; Wed, 26 Feb 2003 13:17:00 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18o0l4-0006p3-00 for ; Wed, 26 Feb 2003 13:33:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o0Px-0006gM-01 for emacs-devel@quimby.gnus.org; Wed, 26 Feb 2003 07:12:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18o0M9-0006DU-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 07:08:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18o0HV-0005Ok-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 07:03:26 -0500 Original-Received: from acm.muc.de ([193.149.49.134] helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18o09q-0004du-00 for emacs-devel@gnu.org; Wed, 26 Feb 2003 06:55:31 -0500 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id KAA00322; Wed, 26 Feb 2003 10:57:29 GMT X-Sender: root@acm.acm Original-To: "Kim F. Storm" In-Reply-To: <5xy944rnql.fsf@kfs2.cua.dk> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11976 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11976 On Tue, 25 Feb 2003, Kim F. Storm wrote: >Alan Mackenzie writes: >> UNFORTUNATELY, as soon as I do any of the above, the search is >> terminated, and I find it more irritating than most people might >> believe >Except for the prefix arg handling (creeping featurism IMO :-), you can >achieve the same effect by suitable bindings in isearch-mode-map, e.g. >(define-key isearch-mode-map "\C-l" 'recenter) >(define-key isearch-mode-map [prior] 'scroll-down) >(define-key isearch-mode-map [next] 'scroll-up) This way, you don't get the lazy-highlighting after C-l on the parts of the window that weren't previously visible. Also scroll-\(up\|down\) can scroll the current search string at point out of the window. This wrenches point away from the current search string, yet still leaves isearch-mode active. I think that the prefix arg stuff is a good idea. Somebody (else) is going to want to do M-2 to scroll the text up 2 lines. >Kim F. Storm http://www.cua.dk -- Alan Mackenzie (Munich, Germany) acm@muc.de