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: How do I do _THIS_ with emacsclient? Date: Sun, 29 Jul 2007 21:56:27 +0200 Message-ID: <85odhvugpg.fsf@lola.goethe.zz> References: <85sl77umf2.fsf@lola.goethe.zz> <200707291953.l6TJrw9k029030@beta.mvs.co.il> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185739034 27696 80.91.229.12 (29 Jul 2007 19:57:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2007 19:57:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: ehud@unix.mvs.co.il Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 21:57:07 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 1IFEt0-0007f0-J3 for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 21:57:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFEt0-0000ox-3N for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 15:57:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFEsw-0000ok-58 for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:57:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFEst-0000oY-Mi for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:57:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFEst-0000oV-GX for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:56:59 -0400 Original-Received: from mail-in-04.arcor-online.net ([151.189.21.44]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IFEst-0002pp-8B for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:56:59 -0400 Original-Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 924B317F92F; Sun, 29 Jul 2007 21:56:57 +0200 (CEST) Original-Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 7E16023D2D9; Sun, 29 Jul 2007 21:56:57 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-017-015.pools.arcor-ip.net [84.61.17.15]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 5C9BF2BAF06; Sun, 29 Jul 2007 21:56:57 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 9F49E1C39595; Sun, 29 Jul 2007 21:56:27 +0200 (CEST) In-Reply-To: <200707291953.l6TJrw9k029030@beta.mvs.co.il> (Ehud Karni's message of "Sun\, 29 Jul 2007 22\:53\:58 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3806/Sun Jul 29 20:19:59 2007 on mail-in-08.arcor-online.net X-Virus-Status: Clean 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:75788 Archived-At: "Ehud Karni" writes: > On Sun, 29 Jul 2007 19:53:05, David Kastrup wrote: >> >> >> Hi, I have the following problem: I try using something like >> ${EDITOR} --eval "(ediff-files (pop command-line-args-left) \ >> (pop command-line-args-left))" "file1" "file2" >> >> and when ${EDITOR} is equal to emacsclient, this fails pretty badly: >> command-line-args-left is nil, and Emacs tried to execute file1 and >> file2, leading to undefined variable complaints. > > I don't know what to do about the argmunents not available with > `command-line-args-left' but why not use a simpler command like: > ${EDITOR} --eval '(ediff-files "file1" "file2")' Because file1 and file2 may not be properly quoted for use in Lisp strings. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum