[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Word Delimited Query Replace
From: |
Juri Linkov |
Subject: |
Re: Word Delimited Query Replace |
Date: |
Sun, 19 Oct 2008 02:29:19 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
>> Currently, M-s w is broken, and I'll will try to fix it. But even
>> after it is fixed, I think it would be good to provide two ways to run
>> word replacement from isearch, exactly as we already provide two ways
>> to run regexp replacement:
>> regexp search/replace: C-M-s M-% and C-s C-M-%
>> word search/replace: M-s w M-% and C-s C-u M-%
>
> I'd rather discourage the second alternatives. After all, C-s C-M-% is
> rather odd since it'll use the string you searched as a regexp, so if
> you were searching for the string "a*b" the replacement will not apply
> to what isearch matched.
IMHO, it would be worse when the user habitually types C-u M-% to run
word replacement or C-M-% to run regexp replacement and these keys do not
do what the user wants.
We could provide these keys only as a back-up for the case we the user
intuitively types it, and discourage them simply by not advertising in
the documentation.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: read-regexp, (continued)
Re: read-regexp, Eli Zaretskii, 2008/10/18
Word Delimited Query Replace (was: read-regexp), Juri Linkov, 2008/10/18