From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Problem quoting expression to be eval'ed by emacsclient Date: Wed, 23 Oct 2013 12:14:52 +0200 Message-ID: <5267A19C.2080700@easy-emacs.de> References: <86y55kcrpc.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382523169 8337 80.91.229.3 (23 Oct 2013 10:12:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2013 10:12:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 12:12:51 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 1VYvQo-0003s3-HL for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 12:12:50 +0200 Original-Received: from localhost ([::1]:48522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYvQo-0007W8-1u for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 06:12:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYvQS-0007N2-Iq for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 06:12:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYvQL-00046g-8H for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 06:12:28 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:49582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYvQK-00046Y-Ud for help-gnu-emacs@gnu.org; Wed, 23 Oct 2013 06:12:21 -0400 Original-Received: from purzel.sitgens (brln-4d0c0836.pool.mediaWays.net [77.12.8.54]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LlpHE-1W7zBy38Ma-00Zjxz; Wed, 23 Oct 2013 12:12:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <86y55kcrpc.fsf@somewhere.org> X-Provags-ID: V02:K0:Bn4SctN2c+hRl++bTpH1uhpyLmxJlaViXVdIzte/oGT gAkxXagf7Vm/3UXLpSMzjgV+IVI1HeIf1cPzXq5U3yJOblE4ag bLQNaMN9qAbZ3RbHDZ8GuQUdMqHFlAnQaoNuG9dqMSzuxZ4mRo OZhh1MCKKbjQRpy4EOLN2Xr9KMYp5Q9HjZz3jr03STOxwkWCr6 e/ogvaMF1xdCPOJyjpW/ETTv/li5tPkT7bztbNa6v/jb/OBcjz gIri9uYF8ByHtenCznyaIar6yUF2H8yUYozJcTXeyQTw5sHOYu kKuockK9pJPGmi5RbVtc5a6xVm2l76+1QSyYgymxE5T/jUrCnt /lHU+wUNNt2uF/G5TbVE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94168 Archived-At: 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\")"