emacs-devel
[Top][All Lists]
Advanced

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

Re: general perform-replace REPLACEMENTS arg for regexpquery-replacement


From: Juri Linkov
Subject: Re: general perform-replace REPLACEMENTS arg for regexpquery-replacement?
Date: Wed, 19 Nov 2008 00:18:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>> The only place currently preventing this is prin1-to-string that turns
>> a list into a string.  We could change it to keep the list intact.
>
> Yes, but then you lose the ability to get the current behavior: replace by the
> string, "(\"zzz\" \"aaa\")".

When you want to replace by the string, you don't need `\,'.

> IMO, two different syntaxes are needed to separate the two different user
> intentions: a sexp that evals to a string "(...)" and a sexp that evals to a
> list of strings to pass to `perform-replace'.

There two syntaxes naturally are `\,(' and `\,'('.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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