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

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

Re: multiple emacs servers


From: Juanma Barranquero
Subject: Re: multiple emacs servers
Date: Thu, 18 Oct 2007 20:20:18 +0200

On 10/18/07, David L <address@hidden> wrote:

> The emacs manual says:
>
> You can run multiple Emacs servers on the same machine by giving
> each one a unique "server name", using the variable `server-name'.  For
> example, `M-x set-variable <RET> server-name <RET> foo <RET>' sets the
> server name to `foo'.
>
> I can't get this to work.  Am I doing something wrong or is this
> documentation obsolete?

What are you doing, exactly?

I think it's a misunderstanding. You cannot have two server processes
in the same instance of Emacs (there's only one `server-process'
variable, and `server-start' kills the previous process before
starting one anew), but certainly you can start several Emacsen, each
one with a different value of server-name, and have several Emacs
servers. I do it daily.

  emacs -q --eval '(progn (setq server-name "server1") (server-start))'
  emacs -q --eval '(progn (setq server-name "server2") (server-start))'

and you can use:

  emacsclient --server-file=server1 my-file
  emacsclient --server-file=server2 my-other-file

             Juanma




reply via email to

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