From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: add non-chord keys to repeat isearch Date: Tue, 9 Jun 2009 16:47:16 +0000 Message-ID: <20090609164716.GA11634@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244566796 3368 80.91.229.12 (9 Jun 2009 16:59:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 16:59:56 +0000 (UTC) Cc: 'Emacs-Devel devel' To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 09 18:59:49 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ME4fs-0003Fz-97 for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2009 18:59:48 +0200 Original-Received: from localhost ([127.0.0.1]:39957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME4fr-0000q4-KK for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2009 12:59:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ME4Sm-0002oe-92 for emacs-devel@gnu.org; Tue, 09 Jun 2009 12:46:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ME4Sh-0002jo-ON for emacs-devel@gnu.org; Tue, 09 Jun 2009 12:46:15 -0400 Original-Received: from [199.232.76.173] (port=49935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME4Sh-0002jZ-Db for emacs-devel@gnu.org; Tue, 09 Jun 2009 12:46:11 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:3798 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ME4Sg-0008RV-SG for emacs-devel@gnu.org; Tue, 09 Jun 2009 12:46:11 -0400 Original-Received: (qmail 66294 invoked by uid 3782); 9 Jun 2009 16:46:02 -0000 Original-Received: from acm.muc.de (pD9E234E7.dip.t-dialin.net [217.226.52.231]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 09 Jun 2009 18:46:00 +0200 Original-Received: (qmail 13459 invoked by uid 1000); 9 Jun 2009 16:47:16 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111395 Archived-At: Hi, Drew! On Tue, Jun 09, 2009 at 08:44:41AM -0700, Drew Adams wrote: > I often repeat `C-s' (same search string), over and over and over. You > too, right? Poor pinky. Mine doesn't seem to mind at all. But I know some do. > (define-key isearch-mode-map [next] 'isearch-repeat-forward) > (define-key isearch-mode-map [prior] 'isearch-repeat-backward) > Duh! Why I never bothered to do that before, I dunno. I've been doing > it forever in Framemaker (which doesn't have incremental search), but I > never thought to do it for Emacs too. Blinded by habit, I guess. > I propose that Emacs do the same thing out of the box. > Someone (Richard?) will no doubt argue that he prefers to have `next' > exit Isearch and move down a page, and similarly for alternative > bindings one might propose here. And perhaps there will be other > arguments against (I know some people just don't like adding bindings > to `isearch-mode-map'). But to me this is a no-brainer (now that I > think of it ;-)). > WDOT? Please don't. These two keys are already used in Isearch Mode for scrolling. To see this, set `isearch-allow-scroll' to t. Then and are handy keys for seeing more text around the match without having to leave isearch and start again. The same applies to any keys bound to commands which have the `isearch-scroll' non-nil. I can't think of any more suitable keys for this - maybe keypad-+/-, or keypad-del/enter, but they're probably not reliably on all keyboards. Sorry to be so negative. > P.S. No removal of any bindings, just addition of these two. > You can still use `C-s C-s C-s C-s C-s C-s' if you prefer. -- Alan Mackenzie (Nuremberg, Germany).