From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Problem quoting expression to be eval'ed by emacsclient Date: Wed, 23 Oct 2013 10:33:03 +0200 Organization: Sebastien Vauban Message-ID: <86y55kcrpc.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382517317 4102 80.91.229.3 (23 Oct 2013 08:35:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2013 08:35:17 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Oct 23 10:35:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYtuT-0004tK-QC for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 10:35:21 +0200 Original-Received: from localhost ([::1]:48225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYtuT-00062V-3f for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 04:35:21 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="4970"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1/8c+bkS2OPHa7tEoaCiBzk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:QyyP+1He9ClC7mWbPCBDwHnf0kk= sha1:jGCG4vTUrmCQWdLqFYqxlixIBm0= Original-Xref: usenet.stanford.edu gnu.emacs.help:201894 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:94164 Archived-At: 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