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

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

Problem quoting expression to be eval'ed by emacsclient


From: Sebastien Vauban
Subject: Problem quoting expression to be eval'ed by emacsclient
Date: Wed, 23 Oct 2013 10:33:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

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

-- 
Sebastien Vauban


reply via email to

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