[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 16:10:39 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

David Kastrup <address@hidden> writes:

> address@hidden (Kim F. Storm) writes:
> > David Kastrup <address@hidden> writes:
> > 
> > > 
> > > Ok, I just redid this.  I have completely thrown out \\? again: if one
> > > wanted to implement it, the right place would not be in preparing the
> > > replacement list where \, is implemented, but rather during
> > > perform-replace.
> > 
> > Here's a wild idea:
> If you had bothered to read my mail to the end...

Sorry, I stopped reading at "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\\\?"  
in the fourth line of the relevant paragraph:

| And then it should be done _after_ the question
| "replace woozle with heffalump\? (y/n)?" has been answered positively,
| by using a while loop that removes the first proper \? in the string
| (using the "\\(\\`\\|[^\\]\\)\\(\\\\\\\\\\)*\\\\\\?" pattern)
| and calls the replacement string editor with the cursor at the specified
| location, until there is no longer an unescaped \?.  After that, the
| replacement can be performed.

> What is wrong about my proposal to just keep further occurences of \?
> in the string and repeat prompting for the remaining first one until
> none of them remains?  You can either edit out everything at once, if
> you so desire, or just enter stuff at the current location, press
> return, and get the next \? trigger operated on.

Nothing wrong -- Your idea is excellent.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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