From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: emacsclient, -a emacs, and --eval (rephrased) Date: Sun, 3 Mar 2013 08:53:18 -0800 Message-ID: References: <3D65E04168FA09429B823CA3FE25C4473BCF664B@EXCHMBX01.fed.cclrc.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01682052d11e9e04d7081335 X-Trace: ger.gmane.org 1362329615 4037 80.91.229.3 (3 Mar 2013 16:53:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Mar 2013 16:53:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Florian v. Savigny" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 03 17:53:59 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 1UCCAf-0007ER-TW for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 17:53:58 +0100 Original-Received: from localhost ([::1]:49709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCAK-00055S-Gg for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Mar 2013 11:53:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCA7-00055B-CR for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:53:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCCA4-0004Kr-LN for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:53:23 -0500 Original-Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]:65259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCA4-0004Kg-Dq for help-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:53:20 -0500 Original-Received: by mail-ea0-f170.google.com with SMTP id a11so647926eaa.29 for ; Sun, 03 Mar 2013 08:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=csQ4wW75wKnOOihVdgb5GSn0nW7/KlaTmULgq2S4y5s=; b=K8GpiG3/o86xzUZKWJ6lHkm/M3ybuV7EOrk88+uXDHx147VGEoeeWgWpCGsjbH9K2K oIBbJHSZyyKw+bnPu6Am6la6u7x1kmFHziLAbyyhYaNpABFBfv98wgjkX+yVzJJJny5L BxXCW6b7UGbFWNkOLRy25veCJ6asd/fObJxNICW965xuOKeHg6NtdvYulIqumM1AZFZ5 F/3sHuIXM5pBsrmjnxd4nqHwE1g1x0TRlqG8jhRBZZ6xwGaQdbgsjqqzMxrweXevbar9 Uwy9NMyvUzcb/Lt+Jym6WvU76ljPEuYscOQ6II34CZHr/f4W3sNCPyKcMZToAaJWy2s7 SsXQ== X-Received: by 10.15.101.204 with SMTP id bp52mr49562713eeb.31.1362329599015; Sun, 03 Mar 2013 08:53:19 -0800 (PST) Original-Received: by 10.223.198.2 with HTTP; Sun, 3 Mar 2013 08:53:18 -0800 (PST) Original-Received: by 10.223.198.2 with HTTP; Sun, 3 Mar 2013 08:53:18 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22a 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:89325 Archived-At: --089e01682052d11e9e04d7081335 Content-Type: text/plain; charset=ISO-8859-1 On Feb 28, 2013 10:26 AM, "Florian v. Savigny" wrote: > > > Encouraged by Ronaldos post, I thought I might rephrase one aspect of > my problem, hoping this might lead to the (or some) solution: > > When I call > > emacsclient -a emacs --eval "(rmail)" > > Emacs will start up and run rmail if it is started as emacsclient > (i.e. if emacs and its server are already running). But when started > as emacs, it starts by opening a new file called "(rmail)". > > This is confusing to me, as the --eval option is documented for both > emacsclient and emacs, leading me to think both should interpret it in > the same way. > > This seems basic enough - can anybody explain to me what I am missing > here? > > Thanks so much in advance! Not an answer to your question, but it might be helpful to know that if your alternate editor is "" , then emacsclient will start the emacs server and try again to run your original command. --089e01682052d11e9e04d7081335 Content-Type: text/html; charset=ISO-8859-1

On Feb 28, 2013 10:26 AM, "Florian v. Savigny" <florian@fsavigny.de> wrote:
>
>
> Encouraged by Ronaldos post, I thought I might rephrase one aspect of
> my problem, hoping this might lead to the (or some) solution:
>
> When I call
>
> emacsclient -a emacs --eval "(rmail)"
>
> Emacs will start up and run rmail if it is started as emacsclient
> (i.e. if emacs and its server are already running). But when started
> as emacs, it starts by opening a new file called "(rmail)".
>
> This is confusing to me, as the --eval option is documented for both
> emacsclient and emacs, leading me to think both should interpret it in
> the same way.
>
> This seems basic enough - can anybody explain to me what I am missing
> here?
>
> Thanks so much in advance!

Not an answer to your question, but it might be helpful to know that if your alternate editor is "" , then emacsclient will start the emacs server and try again to run your original command.

--089e01682052d11e9e04d7081335--