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: 16 Jun 2004 00:43:37 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

David Kastrup <address@hidden> writes:

> Andreas Schwab <address@hidden> writes:
> 
> > Juri Linkov <address@hidden> writes:
> > 
> > > Index: replace.el
> > > ===================================================================
> > > RCS file: /cvsroot/emacs/emacs/lisp/replace.el,v
> > > retrieving revision 1.172
> > > diff -c -r1.172 replace.el
> > > *** replace.el    10 Jun 2004 04:21:14 -0000      1.172
> > > --- replace.el    15 Jun 2004 17:57:28 -0000
> > > ***************
> > > *** 174,179 ****
> > > --- 183,199 ----
> > >              (if (and transient-mark-mode mark-active)
> > >                  (region-end)))))
> > >   
> > > +   (if (string-match "\\\\'" to-string)
> > > +       (let (to expr)
> > > +         (while (string-match "\\\\'" to-string)
> > 
> > That needs more careful treatment, to handle cases like "\\\\'" where one
> > wants to substitute a backslash followed by a single quote.
> 
> I am going to take a stab at this.


I don't like the \'(...) form  -- to me ' means "DONT INTERPRET"

Maybe \=(...) is better ?

Also, \? could be used to ask the user for a string to insert at
that point in each replacement...


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





reply via email to

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