[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I do _THIS_ with emacsclient?
From: |
David Kastrup |
Subject: |
Re: How do I do _THIS_ with emacsclient? |
Date: |
Sun, 29 Jul 2007 21:56:27 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
"Ehud Karni" <address@hidden> 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