1247 |
If you set the variable @code{server-window} to a window or a frame, |
If you set the variable @code{server-window} to a window or a frame, |
1248 |
@kbd{C-x #} displays the server buffer in that window or in that frame. |
@kbd{C-x #} displays the server buffer in that window or in that frame. |
1249 |
|
|
1250 |
|
@vindex server-name |
1251 |
|
You can run multiple Emacs servers on the same machine by giving |
1252 |
|
each one a unique ``server name'', using the variable |
1253 |
|
@code{server-name}. For example, @kbd{M-x set-variable RET |
1254 |
|
server-name RET foo} sets the server name to @samp{foo}. The |
1255 |
|
@code{emacsclient} program can visit a server by name using the |
1256 |
|
@samp{-s} option. |
1257 |
|
|
1258 |
While @code{mail} or another application is waiting for |
While @code{mail} or another application is waiting for |
1259 |
@code{emacsclient} to finish, @code{emacsclient} does not read terminal |
@code{emacsclient} to finish, @code{emacsclient} does not read terminal |
1260 |
input. So the terminal that @code{mail} was using is effectively |
input. So the terminal that @code{mail} was using is effectively |
1337 |
This can be used typically when connecting from home to an Emacs |
This can be used typically when connecting from home to an Emacs |
1338 |
server running on your machine at your workplace. |
server running on your machine at your workplace. |
1339 |
|
|
1340 |
|
If there is more than one Emacs server running, you can specify a |
1341 |
|
server name with the option @samp{-s @var{name}}. |
1342 |
|
|
1343 |
You can also use @code{emacsclient} to execute any piece of Emacs Lisp |
You can also use @code{emacsclient} to execute any piece of Emacs Lisp |
1344 |
code, using the option @samp{--eval}. When this option is given, the |
code, using the option @samp{--eval}. When this option is given, the |
1345 |
rest of the arguments is not taken as a list of files to visit but as |
rest of the arguments is not taken as a list of files to visit but as |