aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/misc.texi26
1 files changed, 16 insertions, 10 deletions
diff --git a/man/misc.texi b/man/misc.texi
index bb3100a4332..4be159f8c41 100644
--- a/man/misc.texi
+++ b/man/misc.texi
@@ -492,11 +492,13 @@ of the special key bindings of Shell mode:
492@item @key{RET} 492@item @key{RET}
493@kindex RET @r{(Shell mode)} 493@kindex RET @r{(Shell mode)}
494@findex comint-send-input 494@findex comint-send-input
495@vindex comint-use-prompt-regexp-instead-of-fields
496@cindex prompt, shell
495At end of buffer send line as input; otherwise, copy current line to end 497At end of buffer send line as input; otherwise, copy current line to end
496of buffer and send it (@code{comint-send-input}). When a line is 498of buffer and send it (@code{comint-send-input}). When a line is
497copied, any text at the beginning of the line that matches the variable 499copied, any prompt is left out (where the prompt is the part of the line
498@code{shell-prompt-pattern} is left out; this variable's value should be 500that was not input by the user; see also
499a regexp string that matches the prompts that your shell uses. 501@code{comint-use-prompt-regexp-instead-of-fields}).
500 502
501@item @key{TAB} 503@item @key{TAB}
502@kindex TAB @r{(Shell mode)} 504@kindex TAB @r{(Shell mode)}
@@ -677,9 +679,8 @@ command plus the output that follows it in the buffer.
677 Shell mode is a derivative of Comint mode, a general-purpose mode for 679 Shell mode is a derivative of Comint mode, a general-purpose mode for
678communicating with interactive subprocesses. Most of the features of 680communicating with interactive subprocesses. Most of the features of
679Shell mode actually come from Comint mode, as you can see from the 681Shell mode actually come from Comint mode, as you can see from the
680command names listed above. The special features of Shell mode in 682command names listed above. The special features of Shell mode include
681particular include the choice of regular expression for detecting 683the directory tracking feature, and a few user commands.
682prompts, the directory tracking feature, and a few user commands.
683 684
684 Other Emacs features that use variants of Comint mode include GUD 685 Other Emacs features that use variants of Comint mode include GUD
685(@pxref{Debuggers}) and @kbd{M-x run-lisp} (@pxref{External Lisp}). 686(@pxref{Debuggers}) and @kbd{M-x run-lisp} (@pxref{External Lisp}).
@@ -822,12 +823,17 @@ then resubmit the command to the shell by typing @key{RET}.
822 823
823@vindex shell-prompt-pattern 824@vindex shell-prompt-pattern
824@vindex comint-prompt-regexp 825@vindex comint-prompt-regexp
826@vindex comint-use-prompt-regexp-instead-of-fields
827@cindex prompt, shell
825 History references take effect only following a shell prompt. The 828 History references take effect only following a shell prompt. The
829prompt is defined to be any text not input by the user, unless the
830variable @code{comint-use-prompt-regexp-instead-of-fields} is
831non-@code{nil} (the default value is @code{nil}). When
832@code{comint-use-prompt-regexp-instead-of-fields} is non-@code{nil}, the
826variable @code{shell-prompt-pattern} specifies how to recognize a shell 833variable @code{shell-prompt-pattern} specifies how to recognize a shell
827prompt. Comint modes in general use the variable 834prompt, and comint modes in general use the variable
828@code{comint-prompt-regexp} to specify how to find a prompt; Shell mode 835@code{comint-prompt-regexp} (shell mode uses @code{shell-prompt-pattern}
829uses @code{shell-prompt-pattern} to set up the local value of 836to set up the local value of @code{comint-prompt-regexp}).
830@code{comint-prompt-regexp}.
831 837
832@vindex comint-input-autoexpand 838@vindex comint-input-autoexpand
833 Shell mode can optionally expand history references in the buffer when 839 Shell mode can optionally expand history references in the buffer when