|
List Info
Thread: How do I do _THIS_ with emacsclient?
|
|
| How do I do _THIS_ with emacsclient? |

|
2007-07-29 12:53:05 |
Hi, I have the following problem: I try using something
like
$ --eval "(ediff-files (pop
command-line-args-left)
(pop command-line-args-left))" "file1"
"file2"
and when $ 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
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: How do I do _THIS_ with emacsclient? |

|
2007-07-29 14:53:58 |
On Sun, 29 Jul 2007 19:53:05, David Kastrup wrote:
>
>
> Hi, I have the following problem: I try using something
like
> $ --eval "(ediff-files (pop
command-line-args-left)
> (pop command-line-args-left))" "file1"
"file2"
>
> and when $ 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:
$ --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.ne
t/> Better Safe Than Sorry
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: How do I do _THIS_ with emacsclient? |

|
2007-07-29 14:56:27 |
"Ehud Karni" <ehud unix.mvs.co.il> writes:
> On Sun, 29 Jul 2007 19:53:05, David Kastrup wrote:
>>
>>
>> Hi, I have the following problem: I try using
something like
>> $ --eval "(ediff-files (pop
command-line-args-left)
>> (pop command-line-args-left))"
"file1" "file2"
>>
>> and when $ 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:
> $ --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
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
| Re: How do I do _THIS_ with emacsclient? |

|
2007-07-29 15:10:05 |
On Sun, 29 Jul 2007 21:56:27, David Kastrup wrote:
>
> "Ehud Karni" <ehud unix.mvs.co.il> writes:
>
> > On Sun, 29 Jul 2007 19:53:05, David Kastrup
wrote:
> >>
> >>
> >> Hi, I have the following problem: I try using
something like
> >> $ --eval "(ediff-files (pop
command-line-args-left)
> >> (pop command-line-args-left))"
"file1" "file2"
> >>
> >> and when $ 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:
> > $ --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_$$
$ --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 <http://www.keyserver.ne
t/> Better Safe Than Sorry
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|