[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: improving query-replace and query-replace-regexp
From: |
Miles Bader |
Subject: |
Re: improving query-replace and query-replace-regexp |
Date: |
Sat, 29 May 2004 17:31:32 -0400 |
User-agent: |
Mutt/1.3.28i |
On Sun, May 30, 2004 at 12:15:00AM +0300, Juri Linkov wrote:
> But an empty argument to M-% can't be used to repeat query-replace
> because the first argument of query-replace makes sense even when
> it is empty. It can be used to insert a replacement string between
> all characters, i.e. to change a string like "abcdef" into ";a;b;c;d;e;f;"
> by (query-replace "" ";"). This is an infrequent operation but
> still makes sense.
I don't think it's frequent enough to matter; the "empty string inserts
between characters" usage is a kludgey hack, not something you expect people
to know about.
> There should be a better solution like already proposed M-% M-% with
> the second M-% typed in the minibuffer.
That's a really kludgey hack too. Minibuffer input is _not like_ isearch
input...
-Miles
--
Saa, shall we dance? (from a dance-class advertisement)
Re: improving query-replace and query-replace-regexp, Miles Bader, 2004/05/29
Re: improving query-replace and query-replace-regexp, Stefan Daschek, 2004/05/29