emacs-devel
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]