From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: How do I do _THIS_ with emacsclient? Date: Sun, 29 Jul 2007 22:53:58 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <200707291953.l6TJrw9k029030@beta.mvs.co.il> References: <85sl77umf2.fsf@lola.goethe.zz> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185738861 27198 80.91.229.12 (29 Jul 2007 19:54:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2007 19:54:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: dak@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 21:54:14 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 1IFEqE-0006tL-FB for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 21:54:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFEqB-0005uv-DU for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 15:54:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFEq8-0005uq-JV for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:54:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFEq5-0005sw-Uw for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:54:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFEq5-0005st-S5 for emacs-devel@gnu.org; Sun, 29 Jul 2007 15:54:05 -0400 Original-Received: from bzq-193-16-147-12.bgp.bezeqint.net ([193.16.147.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IFEq4-0001wz-6c; Sun, 29 Jul 2007 15:54:04 -0400 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.7/8.13.7) with ESMTP id l6TJrxj7001020; Sun, 29 Jul 2007 22:53:59 +0300 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.13.8/8.13.8) with ESMTP id l6TJrxXB029034; Sun, 29 Jul 2007 22:53:59 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.13.8/8.13.8/Submit) id l6TJrw9k029030; Sun, 29 Jul 2007 22:53:58 +0300 In-reply-to: <85sl77umf2.fsf@lola.goethe.zz> (message from David Kastrup on Sun, 29 Jul 2007 19:53:05 +0200) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) 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:75787 Archived-At: 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")' Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry