[Top][All Lists]

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

Re: Pretest

From: Stefan Monnier
Subject: Re: Pretest
Date: Sun, 19 Nov 2006 20:15:46 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

> Again: what is the problem with
> emacsclient -a 'emacs --eval (server-start)'
> ?

Depends what you intend this to solve.  What they want is to be able to say
"emacsclient <maybesomeoptionshere> <file>" and it should always work the
same way, whether Emacs was already started or not.

Your above invocation has no <file>, so it doesn't directly solve
their problem.

If you intended something like

   emacsclient -a 'emacs --eval (server-start)' <file>

then it suffers from the problem that this command will only exit after the
Emacs server exits, rather than after you finish editing <file>.
So instead they intend to do something like

   emacsclient -a 'emacs --eval (server-start) & emacsclient' <file>

but then they need to deal with the fact that the server is only accessible
after some amount of time, so the emacsclient after the "&" needs to be able
to deal with temporary connection failures.


reply via email to

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