[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: server-start and server-name doesn't seem to work
From: |
Harry Putnam |
Subject: |
Re: server-start and server-name doesn't seem to work |
Date: |
Fri, 16 Oct 2009 18:47:43 -0500 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> After M-x server-start
>> If I do M-x set-variable <RET> server-name <RET> foo <RET>
>
> BTW, even if you use "foo", you'll bump into the limitation that a given
> Emacs instance can only run a single Emacs server at a time. So you
> need to change server-name *before* calling server-start.
>From what I see... server-name is not available as a variable *until*
you do `server-start'. At least in a freshly started emacs the cmd
M-x set-variable <RET> server-name <RET> shows `no match'
But becomes available if I do M-x server-start. (or M-x server-mode).
But no matter how I go at it... it appears not to work if I name the
server.
at least `emacsclient -s name -c' fails.
How do you recommend I acquire a named server from a running emacs?
I mean aside from the shell cmdline. The manual is pretty clear in
saying it is something I should be able to do:
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'. The `emacsclient' program can
specify a server by name, using the `-s' option (*note emacsclient
Options::).