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

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

Re: query-replace


From: Nikos Apostolakis
Subject: Re: query-replace
Date: Thu, 04 May 2006 20:40:32 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Pedro Sa da Costa <op132650c@mail.telepac.pt> writes:

> 1 -
> I have this text: "and the android goes away."
> I want to replace the word "and" to "or", but i don't want to
> replace the word " [and]roid".  How should i do this in emacs? The
> M-%  doesn't work in this case.
>

Well you could answer "n" when the query is at the word "android", but
I guess you don't want to do that ;)

You can try "query-replace-regexp" which by default is bound to
"C-M-%", for your example:

"C-M-% \<and\> RET to RET"

> Thanks,
> Pedro

-- 
Nikos





reply via email to

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