* word-search-forward: How to do it again, and again, and again ...?
@ 2006-06-27 16:16 David Combs
2006-06-28 6:04 ` Andreas Roehler
0 siblings, 1 reply; 2+ messages in thread
From: David Combs @ 2006-06-27 16:16 UTC (permalink / raw)
That word-search seems nice -- easier typing-in than,
say, the regexp "M-C-S \<word\>"
Not only that, but it doesn't require (doesn't allow)
a regexp, which sometimes makes searching easier,
as when searching for, well, regexps.
But there seems no way to do it easily, *repeatedly*,
the way you *can* do with eg isearch -- just keep
your pinky on the control-key (assuming a "decent"
keyboard <g>) and repeatedly pushing "s".
Suggestions?
(Yeah, a kbd-macro, but that's holding down control
plus *two* keystrokes (x and e) -- plus it's
a new macro for each search-string ...)
What, a defun? (Maybe you'll show it.)
Thanks!
David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: word-search-forward: How to do it again, and again, and again ...?
2006-06-27 16:16 word-search-forward: How to do it again, and again, and again ...? David Combs
@ 2006-06-28 6:04 ` Andreas Roehler
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Roehler @ 2006-06-28 6:04 UTC (permalink / raw)
David Combs wrote:
> That word-search seems nice -- easier typing-in than,
> say, the regexp "M-C-S \<word\>"
>
> Not only that, but it doesn't require (doesn't allow)
> a regexp, which sometimes makes searching easier,
> as when searching for, well, regexps.
>
> But there seems no way to do it easily, *repeatedly*,
> the way you *can* do with eg isearch -- just keep
> your pinky on the control-key (assuming a "decent"
> keyboard <g>) and repeatedly pushing "s".
>
> Suggestions?
>
> (Yeah, a kbd-macro, but that's holding down control
> plus *two* keystrokes (x and e) -- plus it's
> a new macro for each search-string ...)
>
> What, a defun? (Maybe you'll show it.)
>
>
> Thanks!
>
> David
To do repeated word-search-forward
C-s RET
INPUT
afterwards you can repeat it with `s' while keeping \C
pressed - similar to isearch
The same with search-forward-regexp
To switch off `i'-search
do
C-M-s RET
and to repeat the search
just keep C-M pressed, while repeating `s',
It's similar to C-s - search.
(Use M-n or M-p to load previous search strings)
__
Andreas Roehler
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-28 6:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 16:16 word-search-forward: How to do it again, and again, and again ...? David Combs
2006-06-28 6:04 ` Andreas Roehler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).