[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: query-replace-interactive not documented
From: |
Kim F. Storm |
Subject: |
Re: query-replace-interactive not documented |
Date: |
17 Jun 2004 00:26:50 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
David Kastrup <address@hidden> writes:
> Juri Linkov <address@hidden> writes:
>
> > It is not important what question it asks. It would work even for
> > two or three different \? in one replacement string. In rare cases
> > where the user needs more \?, he can use \,(read-string "My prompt:
> > ").
> >
> > Or to let it to automatically enumerate prompt strings, i.e. to have
> > a counter in expression generating code in `query-replace-regexp'
> > that will convert several \? in the same string into prompts in a
> > fixed format with the prompt counter added to the prompt string:
> >
> > (concat (read-string "Enter string 1: ") (read-string "Enter string
> > 2: "))
>
> Yes, I might do something like that.
Maybe "Enter string: " for the first one, "Enter string 2:" etc for the
following strings.
> What about the replacement
> strings entered for \?, should they be passed through replace-quote
> or not? Where users enter the replacement themselves, maybe there is
> some incentive to let it have the unquoted meaning, so that users may
> also enter \1 \2 \3 in the replacement string?
This is mostly a non-issue in practice, but I think that whatever
the user enters should be inserted literally.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: query-replace-interactive not documented, (continued)
- Re: query-replace-interactive not documented, Andreas Schwab, 2004/06/15
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/15
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/16
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/16
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/16
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/16
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/16
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/16
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/16
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/16
- Re: query-replace-interactive not documented,
Kim F. Storm <=
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/16
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/17
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/17
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/17
- Re: query-replace-interactive not documented, Kim F. Storm, 2004/06/17
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/17
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/17
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/17
- Re: query-replace-interactive not documented, Juri Linkov, 2004/06/18
- Re: query-replace-interactive not documented, David Kastrup, 2004/06/18