From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: A not quite stylish proposal for command line processing Date: Mon, 30 Jul 2007 19:24:10 +0200 Message-ID: <46AE1EBA.7000703@gmail.com> References: <85k5sjwe70.fsf@lola.goethe.zz> <46AE1756.1020801@gmail.com> <86odhtrf3s.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185816328 19112 80.91.229.12 (30 Jul 2007 17:25:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 17:25:28 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 19:25:21 2007 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 1IFYzg-0000yL-NR for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2007 19:25:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFYzg-0005f2-6w for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2007 13:25:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFYyg-0005EN-Iu for emacs-devel@gnu.org; Mon, 30 Jul 2007 13:24:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFYyf-0005DV-0m for emacs-devel@gnu.org; Mon, 30 Jul 2007 13:24:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFYye-0005DS-UU for emacs-devel@gnu.org; Mon, 30 Jul 2007 13:24:16 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IFYya-0003Au-2s; Mon, 30 Jul 2007 13:24:12 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:64697 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IFYyX-0008Fz-8x; Mon, 30 Jul 2007 19:24:10 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 In-Reply-To: <86odhtrf3s.fsf@lola.quinscape.zz> X-Antivirus: avast! (VPS 000762-2, 2007-07-30), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1IFYyX-0008Fz-8x. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IFYyX-0008Fz-8x cce7c522abe0900404f685191937116c X-detected-kernel: Linux 2.6? (barebone, rare!) 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:75821 Archived-At: David Kastrup wrote: > "Lennart Borgman (gmail)" writes: > >> Richard Stallman wrote: >>> It would allow to write >>> >>> emacs --eval '(ediff-files (*argv++) (*argv++))' "$FILE1" "$FILE2" >>> >>> It is a cute hack, but does anyone really want to use this? >> >> Maybe on w32, but I prefer using emacsclient for this. > > emacsclient does not help here. And the below assumes that you can > flip backslashes without changing their meaning. Not likely to be > true for regexps or similar. Getting them and other strings and > special characters unmolested into Emacs using portable shell scripts > is actually a royal nuisance without using command-line-args-left. Yes, you are right. Your idea with command-line-args-left and argument handling in emacsclient that are more like those of emacs is the right way to go.