diff options
| -rw-r--r-- | man/misc.texi | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/man/misc.texi b/man/misc.texi index f46ea90a3b9..0282bf6a552 100644 --- a/man/misc.texi +++ b/man/misc.texi | |||
| @@ -311,7 +311,7 @@ to an Emacs buffer named @samp{*shell*} or run a shell inside a terminal | |||
| 311 | emulator window. | 311 | emulator window. |
| 312 | 312 | ||
| 313 | There is a shell implemented entirely in Emacs, documented in a separate | 313 | There is a shell implemented entirely in Emacs, documented in a separate |
| 314 | manual. @xref{, ,Eshell , eshell, Eshell: The Emacs Shell}. | 314 | manual. @xref{Top,Eshell,Eshell, eshell, Eshell: The Emacs Shell}. |
| 315 | 315 | ||
| 316 | @table @kbd | 316 | @table @kbd |
| 317 | @item M-! @var{cmd} @key{RET} | 317 | @item M-! @var{cmd} @key{RET} |
| @@ -354,12 +354,13 @@ Start the Emacs shell. | |||
| 354 | @kbd{M-!} (@code{shell-command}) reads a line of text using the | 354 | @kbd{M-!} (@code{shell-command}) reads a line of text using the |
| 355 | minibuffer and executes it as a shell command in a subshell made just | 355 | minibuffer and executes it as a shell command in a subshell made just |
| 356 | for that command. Standard input for the command comes from the null | 356 | for that command. Standard input for the command comes from the null |
| 357 | device. If the shell command produces any output, the output goes into | 357 | device. If the shell command produces any output, the output appears |
| 358 | an Emacs buffer named @samp{*Shell Command Output*}, which is displayed | 358 | either in the echo area (if it is short), or in an Emacs buffer named |
| 359 | in another window but not selected. A numeric argument, as in @kbd{M-1 | 359 | @samp{*Shell Command Output*}, which is displayed in another window |
| 360 | M-!}, directs this command to insert any output into the current buffer. | 360 | but not selected (if the output is long). A numeric argument, as in |
| 361 | In that case, point is left before the output and the mark is set after | 361 | @kbd{M-1 M-!}, directs this command to insert any output into the |
| 362 | the output. | 362 | current buffer instead. In that case, point is left before the output |
| 363 | and the mark is set after the output. | ||
| 363 | 364 | ||
| 364 | If the shell command line ends in @samp{&}, it runs asynchronously. | 365 | If the shell command line ends in @samp{&}, it runs asynchronously. |
| 365 | For a synchronous shell command, @code{shell-command} returns the | 366 | For a synchronous shell command, @code{shell-command} returns the |
| @@ -477,9 +478,9 @@ of the special key bindings of Shell mode: | |||
| 477 | @findex comint-send-input | 478 | @findex comint-send-input |
| 478 | At end of buffer send line as input; otherwise, copy current line to | 479 | At end of buffer send line as input; otherwise, copy current line to |
| 479 | end of buffer and send it (@code{comint-send-input}). When a line is | 480 | end of buffer and send it (@code{comint-send-input}). When a line is |
| 480 | copied, any prompt at the beginning if the line (text output by | 481 | copied, any prompt at the beginning of the line (text output by |
| 481 | programs preceding your input) is omitted. See also | 482 | programs preceding your input) is omitted. (See also the variable |
| 482 | @code{comint-use-prompt-regexp-instead-of-fields}). | 483 | @code{comint-use-prompt-regexp-instead-of-fields}.) |
| 483 | 484 | ||
| 484 | @item @key{TAB} | 485 | @item @key{TAB} |
| 485 | @kindex TAB @r{(Shell mode)} | 486 | @kindex TAB @r{(Shell mode)} |
| @@ -491,8 +492,9 @@ references (@pxref{History References}) and environment variable names. | |||
| 491 | @vindex shell-completion-fignore | 492 | @vindex shell-completion-fignore |
| 492 | @vindex comint-completion-fignore | 493 | @vindex comint-completion-fignore |
| 493 | The variable @code{shell-completion-fignore} specifies a list of file | 494 | The variable @code{shell-completion-fignore} specifies a list of file |
| 494 | name extensions to ignore in Shell mode completion. The default setting | 495 | name extensions to ignore in Shell mode completion. The default |
| 495 | ignores file names ending in @samp{~}, @samp{#} or @samp{%}. Other | 496 | setting is @code{nil}, but some users prefer @code{("~" "#" "%")} to |
| 497 | ignore file names ending in @samp{~}, @samp{#} or @samp{%}. Other | ||
| 496 | related Comint modes use the variable @code{comint-completion-fignore} | 498 | related Comint modes use the variable @code{comint-completion-fignore} |
| 497 | instead. | 499 | instead. |
| 498 | 500 | ||
| @@ -513,13 +515,14 @@ position in the buffer, @kbd{C-d} deletes a character as usual. | |||
| 513 | 515 | ||
| 514 | @item C-c C-a | 516 | @item C-c C-a |
| 515 | @kindex C-c C-a @r{(Shell mode)} | 517 | @kindex C-c C-a @r{(Shell mode)} |
| 516 | @findex comint-bol | 518 | @findex comint-bol-or-process-mark |
| 517 | Move to the beginning of the line, but after the prompt if any | 519 | Move to the beginning of the line, but after the prompt if any |
| 518 | (@code{comint-bol}). If you repeat this command twice in a row, the | 520 | (@code{comint-bol-or-process-mark}). If you repeat this command twice |
| 519 | second time it moves back to the process mark, which is the beginning of | 521 | in a row, the second time it moves back to the process mark, which is |
| 520 | the input that you have not yet sent to the subshell. (Normally that is | 522 | the beginning of the input that you have not yet sent to the subshell. |
| 521 | the same place---the end of the prompt on this line---but after @kbd{C-c | 523 | (Normally that is the same place---the end of the prompt on this |
| 522 | @key{SPC}} the process mark may be in a previous line.) | 524 | line---but after @kbd{C-c @key{SPC}} the process mark may be in a |
| 525 | previous line.) | ||
| 523 | 526 | ||
| 524 | @item C-c @key{SPC} | 527 | @item C-c @key{SPC} |
| 525 | Accumulate multiple lines of input, then send them together. This | 528 | Accumulate multiple lines of input, then send them together. This |
| @@ -859,10 +862,12 @@ recognize commands with the meaning of @samp{popd} and @samp{cd}. | |||
| 859 | These commands are recognized only at the beginning of a shell command | 862 | These commands are recognized only at the beginning of a shell command |
| 860 | line. | 863 | line. |
| 861 | 864 | ||
| 865 | @ignore @c This seems to have been deleted long ago. | ||
| 862 | @vindex shell-set-directory-error-hook | 866 | @vindex shell-set-directory-error-hook |
| 863 | If Emacs gets an error while trying to handle what it believes is a | 867 | If Emacs gets an error while trying to handle what it believes is a |
| 864 | @samp{cd}, @samp{pushd} or @samp{popd} command, it runs the hook | 868 | @samp{cd}, @samp{pushd} or @samp{popd} command, it runs the hook |
| 865 | @code{shell-set-directory-error-hook} (@pxref{Hooks}). | 869 | @code{shell-set-directory-error-hook} (@pxref{Hooks}). |
| 870 | @end ignore | ||
| 866 | 871 | ||
| 867 | @findex dirs | 872 | @findex dirs |
| 868 | If Emacs gets confused about changes in the current directory of the | 873 | If Emacs gets confused about changes in the current directory of the |
| @@ -920,16 +925,9 @@ algorithm cannot add even a single character. | |||
| 920 | @code{comint-completion-autolist}, if non-@code{nil}, says to list all | 925 | @code{comint-completion-autolist}, if non-@code{nil}, says to list all |
| 921 | the possible completions whenever completion is not exact. | 926 | the possible completions whenever completion is not exact. |
| 922 | 927 | ||
| 923 | @findex comint-dynamic-complete-variable | 928 | @vindex shell-completion-execonly |
| 924 | The command @code{comint-dynamic-complete-variable} does variable-name | ||
| 925 | completion using the environment variables as set within Emacs. The | ||
| 926 | variables controlling file name completion apply to variable-name | ||
| 927 | completion too. This command is normally available through the menu | ||
| 928 | bar. | ||
| 929 | |||
| 930 | @vindex shell-command-execonly | ||
| 931 | Command completion normally considers only executable files. | 929 | Command completion normally considers only executable files. |
| 932 | If you set @code{shell-command-execonly} to @code{nil}, | 930 | If you set @code{shell-completion-execonly} to @code{nil}, |
| 933 | it considers nonexecutable files as well. | 931 | it considers nonexecutable files as well. |
| 934 | 932 | ||
| 935 | @findex shell-pushd-tohome | 933 | @findex shell-pushd-tohome |
| @@ -949,8 +947,8 @@ underlying shell, of course. | |||
| 949 | 947 | ||
| 950 | To run a subshell in a terminal emulator, putting its typescript in | 948 | To run a subshell in a terminal emulator, putting its typescript in |
| 951 | an Emacs buffer, use @kbd{M-x term}. This creates (or reuses) a | 949 | an Emacs buffer, use @kbd{M-x term}. This creates (or reuses) a |
| 952 | buffer named @samp{*term*}, and runs a subshell with input coming from | 950 | buffer named @samp{*terminal*}, and runs a subshell with input coming |
| 953 | your keyboard, and output going to that buffer. | 951 | from your keyboard, and output going to that buffer. |
| 954 | 952 | ||
| 955 | The terminal emulator uses Term mode, which has two input modes. In | 953 | The terminal emulator uses Term mode, which has two input modes. In |
| 956 | line mode, Term basically acts like Shell mode; see @ref{Shell Mode}. | 954 | line mode, Term basically acts like Shell mode; see @ref{Shell Mode}. |
| @@ -974,7 +972,7 @@ You can actually run Emacs inside an Emacs Term window. | |||
| 974 | 972 | ||
| 975 | The file name used to load the subshell is determined the same way | 973 | The file name used to load the subshell is determined the same way |
| 976 | as for Shell mode. To make multiple terminal emulators, rename the | 974 | as for Shell mode. To make multiple terminal emulators, rename the |
| 977 | buffer @samp{*term*} to something different using @kbd{M-x | 975 | buffer @samp{*terminal*} to something different using @kbd{M-x |
| 978 | rename-uniquely}, just as with Shell mode. | 976 | rename-uniquely}, just as with Shell mode. |
| 979 | 977 | ||
| 980 | Unlike Shell mode, Term mode does not track the current directory by | 978 | Unlike Shell mode, Term mode does not track the current directory by |
| @@ -1169,8 +1167,8 @@ use @env{EDITOR} wait for the ``editor'' (actually, @code{emacsclient}) | |||
| 1169 | to exit. @kbd{C-x #} also checks for other pending external requests | 1167 | to exit. @kbd{C-x #} also checks for other pending external requests |
| 1170 | to edit various files, and selects the next such file. | 1168 | to edit various files, and selects the next such file. |
| 1171 | 1169 | ||
| 1172 | You can switch to a server buffer manually if you wish; you don't have | 1170 | You can switch to a server buffer manually if you wish; you don't |
| 1173 | to arrive at it with @kbd{C-x #}. But @kbd{C-x #} is the only way to | 1171 | have to arrive at it with @kbd{C-x #}. But @kbd{C-x #} is the way to |
| 1174 | say that you are ``finished'' with one. | 1172 | say that you are ``finished'' with one. |
| 1175 | 1173 | ||
| 1176 | @vindex server-kill-new-buffers | 1174 | @vindex server-kill-new-buffers |
| @@ -1373,7 +1371,8 @@ it to the printer. | |||
| 1373 | @cindex handwriting | 1371 | @cindex handwriting |
| 1374 | @kbd{M-x handwrite} is more frivolous. It generates a PostScript | 1372 | @kbd{M-x handwrite} is more frivolous. It generates a PostScript |
| 1375 | rendition of the current buffer as a cursive handwritten document. It | 1373 | rendition of the current buffer as a cursive handwritten document. It |
| 1376 | can be customized in group @code{handwrite}. | 1374 | can be customized in group @code{handwrite}. This function only |
| 1375 | supports ISO 8859-1 characters. | ||
| 1377 | 1376 | ||
| 1378 | @ifinfo | 1377 | @ifinfo |
| 1379 | The following section describes variables for customizing these commands. | 1378 | The following section describes variables for customizing these commands. |
| @@ -1814,8 +1813,9 @@ invoked @code{hexl-mode}. | |||
| 1814 | @end table | 1813 | @end table |
| 1815 | 1814 | ||
| 1816 | @noindent | 1815 | @noindent |
| 1817 | Other Hexl commands let you insert strings (sequences) of binary bytes, | 1816 | Other Hexl commands let you insert strings (sequences) of binary |
| 1818 | move by short's or int's, etc.; type @kbd{C-h a hexl- RET} for details. | 1817 | bytes, move by short's or int's, etc.; type @kbd{C-h a hexl- |
| 1818 | @key{RET}} for details. | ||
| 1819 | 1819 | ||
| 1820 | 1820 | ||
| 1821 | @node Saving Emacs Sessions, Recursive Edit, Editing Binary Files, Top | 1821 | @node Saving Emacs Sessions, Recursive Edit, Editing Binary Files, Top |
| @@ -2107,7 +2107,7 @@ fashion. | |||
| 2107 | @cindex URLs | 2107 | @cindex URLs |
| 2108 | 2108 | ||
| 2109 | @table @kbd | 2109 | @table @kbd |
| 2110 | @item M-x browse-url @key{RET} @var{url} @key{ret} | 2110 | @item M-x browse-url @key{RET} @var{url} @key{RET} |
| 2111 | Load a URL into a Web browser. | 2111 | Load a URL into a Web browser. |
| 2112 | @end table | 2112 | @end table |
| 2113 | 2113 | ||
| @@ -2220,7 +2220,7 @@ find the one you select (@code{ffap-menu}). | |||
| 2220 | 2220 | ||
| 2221 | @table @kbd | 2221 | @table @kbd |
| 2222 | @item M-x find-function @key{RET} @var{function} @key{RET} | 2222 | @item M-x find-function @key{RET} @var{function} @key{RET} |
| 2223 | Find the definition @var{function} in its source file. | 2223 | Find the definition of @var{function} in its source file. |
| 2224 | @item M-x find-variable @key{RET} @var{variable} @key{RET} | 2224 | @item M-x find-variable @key{RET} @var{variable} @key{RET} |
| 2225 | Find the definition of @var{variable} in its source file. | 2225 | Find the definition of @var{variable} in its source file. |
| 2226 | @item M-x find-function-on-key @key{RET} @var{key} | 2226 | @item M-x find-function-on-key @key{RET} @var{key} |