From: Alan Mackenzie <acm@muc.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 'Emacs-Devel devel' <emacs-devel@gnu.org>
Subject: Re: add non-chord keys to repeat isearch
Date: Tue, 9 Jun 2009 16:47:16 +0000 [thread overview]
Message-ID: <20090609164716.GA11634@muc.de> (raw)
In-Reply-To: <EC6DB690AE6A427780A6C81C9F728E21@us.oracle.com>
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 <next>
and <prior> 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).
next prev parent reply other threads:[~2009-06-09 16:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 15:44 add non-chord keys to repeat isearch Drew Adams
2009-06-09 15:51 ` Deniz Dogan
2009-06-09 15:59 ` Drew Adams
2009-06-09 16:47 ` Alan Mackenzie [this message]
2009-06-09 17:08 ` Drew Adams
2009-06-09 17:45 ` Deniz Dogan
2009-06-09 17:48 ` Alan Mackenzie
2009-06-09 18:27 ` Drew Adams
2009-06-09 19:56 ` Alan Mackenzie
2009-06-10 17:32 ` Drew Adams
2009-06-14 17:12 ` Alan Mackenzie
2009-06-09 23:06 ` Miles Bader
2009-06-10 17:32 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090609164716.GA11634@muc.de \
--to=acm@muc.de \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.