help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem quoting expression to be eval'ed by emacsclient


From: Andreas Röhler
Subject: Re: Problem quoting expression to be eval'ed by emacsclient
Date: Wed, 23 Oct 2013 12:14:52 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0

Am 23.10.2013 10:33, schrieb Sebastien Vauban:
Hello,

I'm trying to evaluate an expression via `emacsclient' (from a Zsh shell),
for example:

--8<---------------cut here---------------start------------->8---
$ emacsclient -e "(message \"hello\")"
--8<---------------cut here---------------end--------------->8---

But all I get is:

   *ERROR*: End of file during parsing

Using `bash -x', I see that's due to a quoting problem:

--8<---------------cut here---------------start------------->8---
$ bash -x emacsclient -e "(message \"hello\")"
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '(message' '"hello")'

*ERROR*: End of file during parsing

$ bash -x emacsclient -e '(message \"hello\")'
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '(message' 
'\"hello\")'

*ERROR*: End of file during parsing

$ bash -x emacsclient -e \"(message \"hello\")\"
zsh: no matches found: "(message "hello")"

$ bash -x emacsclient "-e \"(message \"hello\")\""
+ 'C:/Program Files (x86)/emacs-trunk/bin/emacsclient' -e '"(message' 
'"hello")"'

*ERROR*: End of file during parsing
--8<---------------cut here---------------end--------------->8---

But I don't see how to pass the right expression to `emacsclient'. Is there
anybody able to help me sort this out?  TIA!

Best regards,
   Seb


Maybe something with  batch-mode?

That works here, however not emacsclient:

emacs -Q --batch --eval "(message \"%s\" \"hello\")"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]