comparison man/misc.texi @ 90519:138ce2701550

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 320-342) - Update from CVS - Merge from gnus--rel--5.10 - lisp/play/cookie1.el (cookie): Work properly when there's only one entry - Add note about "link" button-class to etc/TODO * gnus--rel--5.10 (patch 108-112) - Merge from emacs--devo--0 - Clean up merge mistakes - Update from CVS - Update from CVS: texi/gnus.texi (Summary Buffer Lines): Fix typo. Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-86
author Miles Bader <miles@gnu.org>
date Thu, 06 Jul 2006 08:59:39 +0000
parents a8190f7e546e 4d628cade603
children 8a8e69664178
comparison
equal deleted inserted replaced
90518:64c755511769 90519:138ce2701550
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.
1774 1774
1775 @dfn{Narrowing} means focusing in on some portion of the buffer, 1775 @dfn{Narrowing} means focusing in on some portion of the buffer,
1776 making the rest temporarily inaccessible. The portion which you can 1776 making the rest temporarily inaccessible. The portion which you can
1777 still get to is called the @dfn{accessible portion}. Canceling the 1777 still get to is called the @dfn{accessible portion}. Canceling the
1778 narrowing, which makes the entire buffer once again accessible, is 1778 narrowing, which makes the entire buffer once again accessible, is
1779 called @dfn{widening}. The amount of narrowing in effect in a buffer at 1779 called @dfn{widening}. The bounds of narrowing in effect in a buffer
1780 any time is called the buffer's @dfn{restriction}. 1780 are called the buffer's @dfn{restriction}.
1781 1781
1782 Narrowing can make it easier to concentrate on a single subroutine or 1782 Narrowing can make it easier to concentrate on a single subroutine or
1783 paragraph by eliminating clutter. It can also be used to restrict the 1783 paragraph by eliminating clutter. It can also be used to limit the
1784 range of operation of a replace command or repeating keyboard macro. 1784 range of operation of a replace command or repeating keyboard macro.
1785 1785
1786 @table @kbd 1786 @table @kbd
1787 @item C-x n n 1787 @item C-x n n
1788 Narrow down to between point and mark (@code{narrow-to-region}). 1788 Narrow down to between point and mark (@code{narrow-to-region}).