aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-05-18 22:50:45 +0300
committerEli Zaretskii2016-05-18 22:50:45 +0300
commitc45d9f61f7ecf77baf73e16985e484c0b2299401 (patch)
treed1634e299a25648fa29ded11a556ce6cbc0f70fc
parent3b5e38cde194c4faa3865aa437b4a2749946c24d (diff)
downloademacs-c45d9f61f7ecf77baf73e16985e484c0b2299401.tar.gz
emacs-c45d9f61f7ecf77baf73e16985e484c0b2299401.zip
Improve documentation of 'server-name'
* doc/emacs/misc.texi (Emacs Server): Fix example of setting 'server-name'. Mention how to do that with daemon sessions. (Bug#23576)
-rw-r--r--doc/emacs/misc.texi9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index af2b6acd8a4..497a4abd71b 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -1596,10 +1596,17 @@ variable to @samp{emacsclient +%d %s}.}
1596 You can run multiple Emacs servers on the same machine by giving 1596 You can run multiple Emacs servers on the same machine by giving
1597each one a unique @dfn{server name}, using the variable 1597each one a unique @dfn{server name}, using the variable
1598@code{server-name}. For example, @kbd{M-x set-variable @key{RET} 1598@code{server-name}. For example, @kbd{M-x set-variable @key{RET}
1599server-name @key{RET} foo @key{RET}} sets the server name to 1599server-name @key{RET} "foo" @key{RET}} sets the server name to
1600@samp{foo}. The @code{emacsclient} program can specify a server by 1600@samp{foo}. The @code{emacsclient} program can specify a server by
1601name, using the @samp{-s} option (@pxref{emacsclient Options}). 1601name, using the @samp{-s} option (@pxref{emacsclient Options}).
1602 1602
1603 If you want to run multiple Emacs daemons (@pxref{Initial Options}),
1604you can give each daemon its own server name like this:
1605
1606@example
1607 emacs --eval "(setq server-name \"foo\")" --daemon
1608@end example
1609
1603@findex server-eval-at 1610@findex server-eval-at
1604 If you have defined a server by a unique server name, it is possible 1611 If you have defined a server by a unique server name, it is possible
1605to connect to the server from another Emacs instance and evaluate Lisp 1612to connect to the server from another Emacs instance and evaluate Lisp