Mercurial > emacs
changeset 60954:276ede258da1
(Emacs Server): Document server-name.
(Invoking emacsclient): Document -s option for server names.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 26 Mar 2005 01:53:30 +0000 |
parents | ec2b6eebb74a |
children | 5270dfec18f9 |
files | man/misc.texi |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/man/misc.texi Sat Mar 26 01:52:50 2005 +0000 +++ b/man/misc.texi Sat Mar 26 01:53:30 2005 +0000 @@ -1247,6 +1247,14 @@ If you set the variable @code{server-window} to a window or a frame, @kbd{C-x #} displays the server buffer in that window or in that frame. +@vindex server-name + You can run multiple Emacs servers on the same machine by giving +each one a unique ``server name'', using the variable +@code{server-name}. For example, @kbd{M-x set-variable RET +server-name RET foo} sets the server name to @samp{foo}. The +@code{emacsclient} program can visit a server by name using the +@samp{-s} option. + While @code{mail} or another application is waiting for @code{emacsclient} to finish, @code{emacsclient} does not read terminal input. So the terminal that @code{mail} was using is effectively @@ -1329,6 +1337,9 @@ This can be used typically when connecting from home to an Emacs server running on your machine at your workplace. +If there is more than one Emacs server running, you can specify a +server name with the option @samp{-s @var{name}}. + You can also use @code{emacsclient} to execute any piece of Emacs Lisp code, using the option @samp{--eval}. When this option is given, the rest of the arguments is not taken as a list of files to visit but as