emacs-devel
[Top][All Lists]
Advanced

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

Re: Word Delimited Query Replace


From: Stefan Monnier
Subject: Re: Word Delimited Query Replace
Date: Sat, 18 Oct 2008 17:37:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Currently, M-s w is broken, and I'll will try to fix it.  But even
> after it is fixed, I think it would be good to provide two ways to run
> word replacement from isearch, exactly as we already provide two ways
> to run regexp replacement:
>   regexp search/replace: C-M-s M-% and C-s C-M-%
>     word search/replace: M-s w M-% and C-s C-u M-%

I'd rather discourage the second alternatives.  After all, C-s C-M-% is
rather odd since it'll use the string you searched as a regexp, so if
you were searching for the string "a*b" the replacement will not apply
to what isearch matched.

>> Also, are you sure your patch works?  As far as I can tell, C-u
>> currently leaves isearch, and I don't see anything in your patch that
>> would change it.
> I have isearch-allow-scroll=t, and it allows C-u to not leave isearch.
> Perhaps this should be the default behavior.

I'd rather not change it.


        Stefan




reply via email to

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