Mercurial > emacs
comparison man/misc.texi @ 71593:4d628cade603
fix overfull/underfull boxes
author | Karl Berry <karl@gnu.org> |
---|---|
date | Mon, 03 Jul 2006 18:17:21 +0000 |
parents | 044c5a8f7744 |
children | d3243ee91ba0 138ce2701550 |
comparison
equal
deleted
inserted
replaced
71592:78e1e4fcd148 | 71593:4d628cade603 |
---|---|
1329 | 1329 |
1330 @node Invoking emacsclient,, Emacs Server, Emacs Server | 1330 @node Invoking emacsclient,, Emacs Server, Emacs Server |
1331 @subsection Invoking @code{emacsclient} | 1331 @subsection Invoking @code{emacsclient} |
1332 | 1332 |
1333 To run the @code{emacsclient} program, specify file names as arguments, | 1333 To run the @code{emacsclient} program, specify file names as arguments, |
1334 and optionally line numbers as well. Do it like this: | 1334 and optionally line numbers as well, like this: |
1335 | 1335 |
1336 @example | 1336 @example |
1337 emacsclient @r{@{}@r{[}+@var{line}@r{[}@var{column}@r{]}@r{]} @var{filename}@r{@}}@dots{} | 1337 emacsclient @r{@{}@r{[}+@var{line}@r{[}@var{column}@r{]}@r{]} @var{filename}@r{@}}@dots{} |
1338 @end example | 1338 @end example |
1339 | 1339 |
1350 | 1350 |
1351 But if you use the option @samp{-n} or @samp{--no-wait} when running | 1351 But if you use the option @samp{-n} or @samp{--no-wait} when running |
1352 @code{emacsclient}, then it returns immediately. (You can take as | 1352 @code{emacsclient}, then it returns immediately. (You can take as |
1353 long as you like to edit the files in Emacs.) | 1353 long as you like to edit the files in Emacs.) |
1354 | 1354 |
1355 The option @samp{--alternate-editor=@var{command}} is useful when | 1355 The option @samp{--alternate-editor=@var{command}} specifies a |
1356 running @code{emacsclient} in a script. It specifies a command to run | 1356 command to run if @code{emacsclient} fails to contact Emacs. This is |
1357 if @code{emacsclient} fails to contact Emacs. For example, the | 1357 useful when running @code{emacsclient} in a script. For example, the |
1358 following setting for the @var{EDITOR} environment variable will | 1358 following setting for the @env{EDITOR} environment variable will |
1359 always give you an editor, even if no Emacs server is running: | 1359 always give you an editor, even if no Emacs server is running: |
1360 | 1360 |
1361 @example | 1361 @example |
1362 EDITOR="emacsclient --alternate-editor emacs +%d %s" | 1362 EDITOR="emacsclient --alternate-editor emacs +%d %s" |
1363 @end example | 1363 @end example |
1364 | 1364 |
1365 @noindent | 1365 @noindent |
1366 The environment variable @var{ALTERNATE_EDITOR} has the same effect, but | 1366 The environment variable @env{ALTERNATE_EDITOR} has the same effect, with |
1367 the value of the @samp{--alternate-editor} takes precedence. | 1367 the value of the @samp{--alternate-editor} option taking precedence. |
1368 | 1368 |
1369 @pindex emacs.bash | 1369 @pindex emacs.bash |
1370 Alternatively, the file @file{etc/emacs.bash} defines a bash | 1370 Alternatively, the file @file{etc/emacs.bash} defines a bash |
1371 function which will communicate with a running Emacs server, or start | 1371 function which will communicate with a running Emacs server, or start |
1372 one if none exists. | 1372 one if none exists. |