From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: add non-chord keys to repeat isearch Date: Tue, 9 Jun 2009 08:44:41 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244562334 20377 80.91.229.12 (9 Jun 2009 15:45:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2009 15:45:34 +0000 (UTC) To: "'Emacs-Devel devel'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 09 17:45:31 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 1ME3Vv-0007Xw-2r for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2009 17:45:27 +0200 Original-Received: from localhost ([127.0.0.1]:60752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME3Vu-0001Vc-7M for ged-emacs-devel@m.gmane.org; Tue, 09 Jun 2009 11:45:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ME3VN-0001MD-7f for emacs-devel@gnu.org; Tue, 09 Jun 2009 11:44:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ME3VI-0001Lk-9J for emacs-devel@gnu.org; Tue, 09 Jun 2009 11:44:52 -0400 Original-Received: from [199.232.76.173] (port=41271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME3VI-0001Lf-3p for emacs-devel@gnu.org; Tue, 09 Jun 2009 11:44:48 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:44721) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ME3VH-0002Q6-LM for emacs-devel@gnu.org; Tue, 09 Jun 2009 11:44:47 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n59FfQCV030316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Jun 2009 15:41:28 GMT Original-Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n59Fij4k018978 for ; Tue, 9 Jun 2009 15:44:46 GMT Original-Received: from dradamslap1 (/141.144.80.206) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 09 Jun 2009 08:44:39 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcnpGTQ7iC9yVnT3QJScvz0LTlezyQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt006.oracle.com [141.146.116.15] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4A2E8368.029C:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:111392 Archived-At: I often repeat `C-s' (same search string), over and over and over. You too, right? Poor pinky. (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? 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.