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 <address@hidden>,
Kevin Rodgers  <address@hidden> wrote:
>Miles Bader wrote:
>> Kevin Rodgers <address@hidden> 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]