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: How do I do _THIS_ with emacsclient? Date: Sun, 29 Jul 2007 19:53:05 +0200 Message-ID: <85sl77umf2.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 1185731633 5652 80.91.229.12 (29 Jul 2007 17:53:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2007 17:53:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 19:53:46 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 1IFCxe-00026L-JM for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 19:53:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFCxd-00062I-K9 for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 13:53:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFCxX-0005jY-IW for emacs-devel@gnu.org; Sun, 29 Jul 2007 13:53:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFCxV-0005fY-LT for emacs-devel@gnu.org; Sun, 29 Jul 2007 13:53:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFCxV-0005eY-5G for emacs-devel@gnu.org; Sun, 29 Jul 2007 13:53:37 -0400 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IFCxU-0001La-13 for emacs-devel@gnu.org; Sun, 29 Jul 2007 13:53:36 -0400 Original-Received: from mail-in-14-z2.arcor-online.net (mail-in-14-z2.arcor-online.net [151.189.8.31]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id E6E022CAABA for ; Sun, 29 Jul 2007 19:53:33 +0200 (CEST) Original-Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-14-z2.arcor-online.net (Postfix) with ESMTP id D557C100C0 for ; Sun, 29 Jul 2007 19:53:33 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-017-015.pools.arcor-ip.net [84.61.17.15]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 8E7C6292B75 for ; Sun, 29 Jul 2007 19:53:33 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C0F2E1C39595; Sun, 29 Jul 2007 19:53:05 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.1/3805/Sun Jul 29 18:57:32 2007 on mail-in-01.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:75786 Archived-At: 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. This behavior clearly is dissatisfactory. Any idea what I could write to have this more or less work with emacsclient without breaking when using Emacs? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum