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

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

Re: query-replace


From: Kevin Rodgers
Subject: Re: query-replace
Date: Mon, 08 May 2006 11:28:45 -0600
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

Miles Bader wrote:
Kevin Rodgers <ihs_4664@yahoo.com> writes:
Even simpler is M-%  _and_  RET _or_  (where the underscores represent
explicit spaces typed into the pattern strings.
Which doesn't work if "and" occurs at the beginning or end of a line.

Actually, the simplest way is to just use a `C-u' prefix to the replace
or query-replace command -- it causes the replacements only be done on
"word delimited" matches.

So:    C-u M-% and RET or RET

(no significant spaces)

Wow, that is very cool.  I can't believe I wasn't aware of that feature.
However, it would be even nicer if the prefix arg changed the prompt
from "Query replace: " to something like "Query replace word(s): ".

Thanks,
--
Kevin





reply via email to

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