emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace-regexp-eval is quite nice, but...


From: David Kastrup
Subject: Re: query-replace-regexp-eval is quite nice, but...
Date: 02 Feb 2004 16:03:27 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Andreas Schwab <address@hidden> writes:

> "Ehud Karni" <address@hidden> writes:
> 
> > How about checking regexp-flag (which is bound by `perform-replace') ?
> >
> > Assuming your "literal" result string (containing \n) is STR you can
> > add something like this to your lisp:
> >
> >        (if regexp-flag
> >            (regexp-quote STR)
> >            STR)
> 
> regexp-flag is always non-nil when called from query-replace-regexp-eval,
> and regexp-quote quotes too much for replace-match.

Not to mention that "e" (edit the replacement string) would be really
annoying.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum





reply via email to

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