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 23:10:05 +0300 Organization: Mivtach-Simon Insurance agencies Message-ID: <200707292010.l6TKA5bi005095@beta.mvs.co.il> References: <85sl77umf2.fsf@lola.goethe.zz> <200707291953.l6TJrw9k029030@beta.mvs.co.il> <85odhvugpg.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 1185739831 30092 80.91.229.12 (29 Jul 2007 20:10:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2007 20:10:31 +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 22:10:23 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 1IFF5n-0002Rg-4Y for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 22:10:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFF5m-0004SD-G1 for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2007 16:10:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFF5i-0004Pa-Ow for emacs-devel@gnu.org; Sun, 29 Jul 2007 16:10:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFF5h-0004NC-Dg for emacs-devel@gnu.org; Sun, 29 Jul 2007 16:10:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFF5h-0004N2-8N for emacs-devel@gnu.org; Sun, 29 Jul 2007 16:10:13 -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 1IFF5f-0004qe-DU; Sun, 29 Jul 2007 16:10:12 -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 l6TKA5AO015177; Sun, 29 Jul 2007 23:10:06 +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 l6TKA532005098; Sun, 29 Jul 2007 23:10:05 +0300 Original-Received: (from root@localhost) by beta.mvs.co.il (8.13.8/8.13.8/Submit) id l6TKA5bi005095; Sun, 29 Jul 2007 23:10:05 +0300 In-reply-to: <85odhvugpg.fsf@lola.goethe.zz> (message from David Kastrup on Sun, 29 Jul 2007 21:56:27 +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:75789 Archived-At: On Sun, 29 Jul 2007 21:56:27, David Kastrup wrote: > > "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 arguments 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. Is it a real problem or a principal one ? For real life you can always do: ln -s "file1" /tmp/file1_$$ ln -s "file2" /tmp/file2_$$ ${EDITOR} --eval '(ediff-files "'/tmp/file1_$$'" "'/tmp/file2_$$'")' rm -f /tmp/file1_$$ /tmp/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