help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: word-search-forward: How to do it again, and again, and again ...?


From: Andreas Roehler
Subject: Re: word-search-forward: How to do it again, and again, and again ...?
Date: Wed, 28 Jun 2006 08:04:40 +0200
User-agent: KNode/0.9.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]