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

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

Re: Remembering a regexp across searches


From: David Kastrup
Subject: Re: Remembering a regexp across searches
Date: Wed, 02 Feb 2005 11:25:23 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Michael Preminger <michaelp@hio.no> writes:

> Maybe something I would expect to find in the FAQ, but to no avail:
>
> I need to do repeating incremental searches of regular expression.
>
> when I find what I was looking for - I need to do some changes
> (manually), and then search for the next occurrence corresponding to
> the same regexp.
>
> Sometimes the regexps are complicated, and retyping them in the
> Iserach-buffer is tedious.
>
> How do I avoid this re-typing? Is there a way to make emacs "remember"
> a regexp and re-use it in a handy way?

Just type another C-s and you are set.

So if you did your first search with 
C-u C-s something
then
C-u C-s C-s

will repeat the search.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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