[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: query-replace
From: |
Miles Bader |
Subject: |
Re: query-replace |
Date: |
Sat, 06 May 2006 09:40:26 +0900 |
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)
-Miles
--
"Suppose we've chosen the wrong god. Every time we go to church we're
just making him madder and madder." -- Homer Simpson
- Re: query-replace, (continued)
- Message not available
- Re: query-replace,
Miles Bader <=
- Re: query-replace, Kevin Rodgers, 2006/05/08
- Message not available
- Re: query-replace, David Combs, 2006/05/30