unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23576: [documentation] ‘Using Emacs as a Server’: ‘M-x set-variable RET server-name RET foo RET’
@ 2016-05-18 19:25 Dmitry Alexandrov
  2016-05-18 19:53 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Alexandrov @ 2016-05-18 19:25 UTC (permalink / raw)
  To: 23576

Chapter 38 ‘Using Emacs as a Server’ in ‘GNU Emacs Manual’ says [0] the 
following:

     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’.

[0] 
https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html

First of all, ‘M-x set-variable RET server-name RET foo RET’ just does 
not work, returning “Value ‘foo’ does not match type string of 
server-name”.  It actually should be ‘M-x set-variable RET server-name 
RET "foo" RET’, since ‘server-name’ requires a string.

However, I found this example pretty confusing in general: when the 
server is not started yet, setting ‘server-name’ with ‘M-x set-variable’ 
is impossible (variable does not exist yet); when the server is already 
running, there is no much sense in setting it, since it does not rename 
the instance on-the-fly.

¿Would not it be more useful to give as an example of how to start 
multiple Emacs servers something like:

$ emacs --eval '(setq server-name "foo")' --daemon





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#23576: [documentation] ‘Using Emacs as a Server’: ‘M-x set-variable RET server-name RET foo RET’
  2016-05-18 19:25 bug#23576: [documentation] ‘Using Emacs as a Server’: ‘M-x set-variable RET server-name RET foo RET’ Dmitry Alexandrov
@ 2016-05-18 19:53 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2016-05-18 19:53 UTC (permalink / raw)
  To: Dmitry Alexandrov; +Cc: 23576-done

> From: Dmitry Alexandrov <321942@gmail.com>
> Date: Wed, 18 May 2016 22:25:38 +0300
> 
> Chapter 38 ‘Using Emacs as a Server’ in ‘GNU Emacs Manual’ says [0] the 
> following:
> 
>      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’.
> 
> [0] 
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html
> 
> First of all, ‘M-x set-variable RET server-name RET foo RET’ just does 
> not work, returning “Value ‘foo’ does not match type string of 
> server-name”.  It actually should be ‘M-x set-variable RET server-name 
> RET "foo" RET’, since ‘server-name’ requires a string.

Fixed on the release branch.

> However, I found this example pretty confusing in general: when the 
> server is not started yet, setting ‘server-name’ with ‘M-x set-variable’ 
> is impossible (variable does not exist yet);

Fixed on master branch.

> when the server is already running, there is no much sense in
> setting it, since it does not rename the instance on-the-fly.

But it affects the next one.

> ¿Would not it be more useful to give as an example of how to start 
> multiple Emacs servers something like:
> 
> $ emacs --eval '(setq server-name "foo")' --daemon

I added this, but I don't think it should replace what's in the
manual: not all the uses of the server are in daemon sessions.

Thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-18 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-18 19:25 bug#23576: [documentation] ‘Using Emacs as a Server’: ‘M-x set-variable RET server-name RET foo RET’ Dmitry Alexandrov
2016-05-18 19:53 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).