From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: general perform-replace REPLACEMENTS arg for regexpquery-replacement? Date: Wed, 19 Nov 2008 00:18:22 +0200 Organization: JURTA Message-ID: <871vx865ld.fsf@jurta.org> References: <005901c94752$06ca6e70$0200a8c0@us.oracle.com> <005b01c94771$e8129be0$0200a8c0@us.oracle.com> <877i73p9ia.fsf@jurta.org> <001a01c94853$5a0ee1e0$0200a8c0@us.oracle.com> <873ahq3r0k.fsf@jurta.org> <000101c94919$250e6440$0ab32382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227046947 18142 80.91.229.12 (18 Nov 2008 22:22:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 22:22:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 18 23:23:27 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2Yyb-00033w-6F for ged-emacs-devel@m.gmane.org; Tue, 18 Nov 2008 23:23:17 +0100 Original-Received: from localhost ([127.0.0.1]:58975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2YxS-0005RG-Em for ged-emacs-devel@m.gmane.org; Tue, 18 Nov 2008 17:22:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2YuP-0004Cc-Oz for emacs-devel@gnu.org; Tue, 18 Nov 2008 17:18:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2YuN-0004BS-LF for emacs-devel@gnu.org; Tue, 18 Nov 2008 17:18:57 -0500 Original-Received: from [199.232.76.173] (port=35310 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2YuN-0004BH-Cr for emacs-devel@gnu.org; Tue, 18 Nov 2008 17:18:55 -0500 Original-Received: from relay02.kiev.sovam.com ([62.64.120.197]:61672) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2YuN-0002hX-Ay for emacs-devel@gnu.org; Tue, 18 Nov 2008 17:18:55 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1L2YuK-000Cn5-W1; Wed, 19 Nov 2008 00:18:53 +0200 In-Reply-To: <000101c94919$250e6440$0ab32382@us.oracle.com> (Drew Adams's message of "Mon, 17 Nov 2008 17:01:09 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 1678f860418e8694a064f05d5e21ded6 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 5467 [Oct 22 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105787 Archived-At: >> 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/