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

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

Re: query-replace


From: David Combs
Subject: Re: query-replace
Date: Wed, 31 May 2006 02:22:53 +0000 (UTC)

In article <mailman.1583.1147109410.9609.help-gnu-emacs@gnu.org>,
Kevin Rodgers  <ihs_4664@yahoo.com> wrote:
>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): ".

A *very* good idea!

Kevin (since they know you) could you please send
the suggestion to the devel-group?

Thanks!

David



reply via email to

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