aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-05-20 17:25:18 +0000
committerRichard M. Stallman2001-05-20 17:25:18 +0000
commitfc98b4ba79670bf92ff044d02ecc94c761f81a13 (patch)
tree7feefdffe48b2289e2fd880da7ff698cc455d844
parent6442995370ee3b861646b96fcdb28fe1ac6b7d57 (diff)
downloademacs-fc98b4ba79670bf92ff044d02ecc94c761f81a13.tar.gz
emacs-fc98b4ba79670bf92ff044d02ecc94c761f81a13.zip
Explain M-! output can go in echo area.
Default for shell-completion-fignore is nil. C-c C-a is actually comint-bol-or-process-mark. shell-set-directory-error-hook does not really exist. comint-dynamic-complete-variable does not really exist. Terminal buffer is *terminal*, not *term*. Other minor changes.
-rw-r--r--man/misc.texi74
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
311emulator window. 311emulator window.
312 312
313There is a shell implemented entirely in Emacs, documented in a separate 313There is a shell implemented entirely in Emacs, documented in a separate
314manual. @xref{, ,Eshell , eshell, Eshell: The Emacs Shell}. 314manual. @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
355minibuffer and executes it as a shell command in a subshell made just 355minibuffer and executes it as a shell command in a subshell made just
356for that command. Standard input for the command comes from the null 356for that command. Standard input for the command comes from the null
357device. If the shell command produces any output, the output goes into 357device. If the shell command produces any output, the output appears
358an Emacs buffer named @samp{*Shell Command Output*}, which is displayed 358either in the echo area (if it is short), or in an Emacs buffer named
359in another window but not selected. A numeric argument, as in @kbd{M-1 359@samp{*Shell Command Output*}, which is displayed in another window
360M-!}, directs this command to insert any output into the current buffer. 360but not selected (if the output is long). A numeric argument, as in
361In 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
362the output. 362current buffer instead. In that case, point is left before the output
363and 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.
365For a synchronous shell command, @code{shell-command} returns the 366For 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
478At end of buffer send line as input; otherwise, copy current line to 479At end of buffer send line as input; otherwise, copy current line to
479end of buffer and send it (@code{comint-send-input}). When a line is 480end of buffer and send it (@code{comint-send-input}). When a line is
480copied, any prompt at the beginning if the line (text output by 481copied, any prompt at the beginning of the line (text output by
481programs preceding your input) is omitted. See also 482programs 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
493The variable @code{shell-completion-fignore} specifies a list of file 494The variable @code{shell-completion-fignore} specifies a list of file
494name extensions to ignore in Shell mode completion. The default setting 495name extensions to ignore in Shell mode completion. The default
495ignores file names ending in @samp{~}, @samp{#} or @samp{%}. Other 496setting is @code{nil}, but some users prefer @code{("~" "#" "%")} to
497ignore file names ending in @samp{~}, @samp{#} or @samp{%}. Other
496related Comint modes use the variable @code{comint-completion-fignore} 498related Comint modes use the variable @code{comint-completion-fignore}
497instead. 499instead.
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
517Move to the beginning of the line, but after the prompt if any 519Move 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
519second time it moves back to the process mark, which is the beginning of 521in a row, the second time it moves back to the process mark, which is
520the input that you have not yet sent to the subshell. (Normally that is 522the beginning of the input that you have not yet sent to the subshell.
521the 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.) 524line---but after @kbd{C-c @key{SPC}} the process mark may be in a
525previous line.)
523 526
524@item C-c @key{SPC} 527@item C-c @key{SPC}
525Accumulate multiple lines of input, then send them together. This 528Accumulate multiple lines of input, then send them together. This
@@ -859,10 +862,12 @@ recognize commands with the meaning of @samp{popd} and @samp{cd}.
859These commands are recognized only at the beginning of a shell command 862These commands are recognized only at the beginning of a shell command
860line. 863line.
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
921the possible completions whenever completion is not exact. 926the 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
925completion using the environment variables as set within Emacs. The
926variables controlling file name completion apply to variable-name
927completion too. This command is normally available through the menu
928bar.
929
930@vindex shell-command-execonly
931 Command completion normally considers only executable files. 929 Command completion normally considers only executable files.
932If you set @code{shell-command-execonly} to @code{nil}, 930If you set @code{shell-completion-execonly} to @code{nil},
933it considers nonexecutable files as well. 931it 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
951an Emacs buffer, use @kbd{M-x term}. This creates (or reuses) a 949an Emacs buffer, use @kbd{M-x term}. This creates (or reuses) a
952buffer named @samp{*term*}, and runs a subshell with input coming from 950buffer named @samp{*terminal*}, and runs a subshell with input coming
953your keyboard, and output going to that buffer. 951from 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
956line mode, Term basically acts like Shell mode; see @ref{Shell Mode}. 954line 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
976as for Shell mode. To make multiple terminal emulators, rename the 974as for Shell mode. To make multiple terminal emulators, rename the
977buffer @samp{*term*} to something different using @kbd{M-x 975buffer @samp{*terminal*} to something different using @kbd{M-x
978rename-uniquely}, just as with Shell mode. 976rename-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})
1169to exit. @kbd{C-x #} also checks for other pending external requests 1167to exit. @kbd{C-x #} also checks for other pending external requests
1170to edit various files, and selects the next such file. 1168to 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
1173to arrive at it with @kbd{C-x #}. But @kbd{C-x #} is the only way to 1171have to arrive at it with @kbd{C-x #}. But @kbd{C-x #} is the way to
1174say that you are ``finished'' with one. 1172say 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
1375rendition of the current buffer as a cursive handwritten document. It 1373rendition of the current buffer as a cursive handwritten document. It
1376can be customized in group @code{handwrite}. 1374can be customized in group @code{handwrite}. This function only
1375supports 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
1817Other Hexl commands let you insert strings (sequences) of binary bytes, 1816Other Hexl commands let you insert strings (sequences) of binary
1818move by short's or int's, etc.; type @kbd{C-h a hexl- RET} for details. 1817bytes, 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}
2111Load a URL into a Web browser. 2111Load 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}
2223Find the definition @var{function} in its source file. 2223Find 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}
2225Find the definition of @var{variable} in its source file. 2225Find 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}