From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: A not quite stylish proposal for command line processing Date: Mon, 30 Jul 2007 18:57:12 +0200 Message-ID: <86sl75rfrr.fsf@lola.quinscape.zz> References: <85k5sjwe70.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185814652 12731 80.91.229.12 (30 Jul 2007 16:57:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 16:57:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 18:57:26 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 1IFYYb-0006tI-Dq for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2007 18:57:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFYYb-0001Br-4J for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2007 12:57:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFYYW-00015O-JE for emacs-devel@gnu.org; Mon, 30 Jul 2007 12:57:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFYYV-00012c-3M for emacs-devel@gnu.org; Mon, 30 Jul 2007 12:57:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFYYU-00012Z-Vp for emacs-devel@gnu.org; Mon, 30 Jul 2007 12:57:15 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFYYU-00041I-9J for emacs-devel@gnu.org; Mon, 30 Jul 2007 12:57:14 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id SAA26079 for ; Mon, 30 Jul 2007 18:57:03 +0200 X-Delivered-To: Original-Received: (qmail 8805 invoked from network); 30 Jul 2007 16:57:12 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 30 Jul 2007 16:57:12 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id F3C598FA2F; Mon, 30 Jul 2007 18:57:12 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Mon\, 30 Jul 2007 12\:44\:13 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:75817 Archived-At: Richard Stallman writes: > 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? The problem is that the equivalent (pop command-line-args-left) is the only way to pass strings from the shell or elsewhere without having to requote them as Lisp strings. (*argv++) might be quite over the top, but at least (pop argv) would still be quite concise, much more Lispish, and it might make it easier for people to actually find the respective variable. On a different tack, currently emacsclient behaves different when parsing --eval and command line arguments and does not support command-line-args-left. I am currently fixing this in server.el. Making emacsclient mimic the normal Emacs commandline more closely makes it easier to substitute one for the other. It may be somewhat pointless in checking this in before the multi-tty merge, but at least I hope to be able to provide a patch for discussion. -- David Kastrup