emacs-devel
[Top][All Lists]
Advanced

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

RE: be able to replace during isearch


From: Drew Adams
Subject: RE: be able to replace during isearch
Date: Sun, 1 Jul 2007 07:02:36 -0700

> > The idea is that you would not need to leave isearch to perform
> > replacements. Whenever you wanted to replace the current search
> > occurrence, you would hit a certain key. The first time you do
> > this, you would be asked for the replacement string.
>
> I would like this, I remember thinking about this while iseaching some
> time back. Would it also be possible to have a key that asks for
> another replacement to be used for later replacements if I am not
> happy with the previous one I entered? I might want to replace X with
> Y in one place and with Z in another.

That's just what I meant by one of the nice-to-haves (2): "redefine the
replacement":

> > Nice-to-haves: In Icicles search, you can use any replacement expression
> > that is accepted by `query-replace-regexp', and there are additional key
> > bindings during search to (1) replace all and (2) redefine the
> > replacement to use. These would also be useful additions for isearch.

In Icicles, for instance, there is a key to define the replacement string,
which you can hit at any time. It prompts you for the replacement to use.
Hitting it is implied the first time you hit the key to perform the
replacement.





reply via email to

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