diff options
| author | Miles Bader | 2000-10-16 07:19:11 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-10-16 07:19:11 +0000 |
| commit | bd9e92878be4d85998560efbefcedf45c26dccec (patch) | |
| tree | 17a7683a49d345ac7c64566122705733fb2b5a8f | |
| parent | 6165b6e387d4f7ec249d36a0913b628d1497c225 (diff) | |
| download | emacs-bd9e92878be4d85998560efbefcedf45c26dccec.tar.gz emacs-bd9e92878be4d85998560efbefcedf45c26dccec.zip | |
Update references to shell prompts and comint-prompt-regexp, etc.
| -rw-r--r-- | man/misc.texi | 26 |
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 | ||
| 495 | At end of buffer send line as input; otherwise, copy current line to end | 497 | At end of buffer send line as input; otherwise, copy current line to end |
| 496 | of buffer and send it (@code{comint-send-input}). When a line is | 498 | of buffer and send it (@code{comint-send-input}). When a line is |
| 497 | copied, any text at the beginning of the line that matches the variable | 499 | copied, 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 | 500 | that was not input by the user; see also |
| 499 | a 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 |
| 678 | communicating with interactive subprocesses. Most of the features of | 680 | communicating with interactive subprocesses. Most of the features of |
| 679 | Shell mode actually come from Comint mode, as you can see from the | 681 | Shell mode actually come from Comint mode, as you can see from the |
| 680 | command names listed above. The special features of Shell mode in | 682 | command names listed above. The special features of Shell mode include |
| 681 | particular include the choice of regular expression for detecting | 683 | the directory tracking feature, and a few user commands. |
| 682 | prompts, 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 |
| 829 | prompt is defined to be any text not input by the user, unless the | ||
| 830 | variable @code{comint-use-prompt-regexp-instead-of-fields} is | ||
| 831 | non-@code{nil} (the default value is @code{nil}). When | ||
| 832 | @code{comint-use-prompt-regexp-instead-of-fields} is non-@code{nil}, the | ||
| 826 | variable @code{shell-prompt-pattern} specifies how to recognize a shell | 833 | variable @code{shell-prompt-pattern} specifies how to recognize a shell |
| 827 | prompt. Comint modes in general use the variable | 834 | prompt, 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} |
| 829 | uses @code{shell-prompt-pattern} to set up the local value of | 836 | to 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 |