unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: dak@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: How do I do _THIS_ with emacsclient?
Date: Sun, 29 Jul 2007 22:53:58 +0300	[thread overview]
Message-ID: <200707291953.l6TJrw9k029030@beta.mvs.co.il> (raw)
In-Reply-To: <85sl77umf2.fsf@lola.goethe.zz> (message from David Kastrup on Sun, 29 Jul 2007 19:53:05 +0200)

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 <http://www.keyserver.net/>    Better Safe Than Sorry

  reply	other threads:[~2007-07-29 19:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 17:53 How do I do _THIS_ with emacsclient? David Kastrup
2007-07-29 19:53 ` Ehud Karni [this message]
2007-07-29 19:56   ` David Kastrup
2007-07-29 20:10     ` Ehud Karni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707291953.l6TJrw9k029030@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).