[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add non-chord keys to repeat isearch
From: |
Alan Mackenzie |
Subject: |
Re: add non-chord keys to repeat isearch |
Date: |
Tue, 9 Jun 2009 16:47:16 +0000 |
User-agent: |
Mutt/1.5.9i |
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).
- add non-chord keys to repeat isearch, Drew Adams, 2009/06/09
- Re: add non-chord keys to repeat isearch, Deniz Dogan, 2009/06/09
- Re: add non-chord keys to repeat isearch,
Alan Mackenzie <=
- RE: add non-chord keys to repeat isearch, Drew Adams, 2009/06/09
- Re: add non-chord keys to repeat isearch, Deniz Dogan, 2009/06/09
- Re: add non-chord keys to repeat isearch, Alan Mackenzie, 2009/06/09
- RE: add non-chord keys to repeat isearch, Drew Adams, 2009/06/09
- Re: add non-chord keys to repeat isearch, Alan Mackenzie, 2009/06/09
- RE: add non-chord keys to repeat isearch, Drew Adams, 2009/06/10
- Re: add non-chord keys to repeat isearch, Alan Mackenzie, 2009/06/14
- Re: add non-chord keys to repeat isearch, Miles Bader, 2009/06/09
- RE: add non-chord keys to repeat isearch, Drew Adams, 2009/06/10