Mercurial > emacs
comparison man/misc.texi @ 46244:c31280155efa
Document C-c . in Shell mode.
In Term mode, C-c C-j and C-c C-k were backwards.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 07 Jul 2002 23:48:41 +0000 |
parents | 6253e4f3654b |
children | 5dbc6d83f14d |
comparison
equal
deleted
inserted
replaced
46243:dfc7817ae834 | 46244:c31280155efa |
---|---|
741 Search backwards or forwards for old shell commands that match @var{regexp}. | 741 Search backwards or forwards for old shell commands that match @var{regexp}. |
742 | 742 |
743 @item C-c C-x @r{(Shell mode)} | 743 @item C-c C-x @r{(Shell mode)} |
744 @findex comint-get-next-from-history | 744 @findex comint-get-next-from-history |
745 Fetch the next subsequent command from the history. | 745 Fetch the next subsequent command from the history. |
746 | |
747 @item C-c . @r{(Shell mode)} | |
748 @findex comint-input-previous-argument | |
749 Fetch one argument from an old shell command. | |
746 @end table | 750 @end table |
747 | 751 |
748 Shell buffers provide a history of previously entered shell commands. To | 752 Shell buffers provide a history of previously entered shell commands. To |
749 reuse shell commands from the history, use the editing commands @kbd{M-p}, | 753 reuse shell commands from the history, use the editing commands @kbd{M-p}, |
750 @kbd{M-n}, @kbd{M-r} and @kbd{M-s}. These work just like the minibuffer | 754 @kbd{M-n}, @kbd{M-r} and @kbd{M-s}. These work just like the minibuffer |
772 reexecute the first command of the sequence. Then type @kbd{C-c C-x}; | 776 reexecute the first command of the sequence. Then type @kbd{C-c C-x}; |
773 that will fetch the following command---the one that follows the command | 777 that will fetch the following command---the one that follows the command |
774 you just repeated. Then type @key{RET} to reexecute this command. You | 778 you just repeated. Then type @key{RET} to reexecute this command. You |
775 can reexecute several successive commands by typing @kbd{C-c C-x | 779 can reexecute several successive commands by typing @kbd{C-c C-x |
776 @key{RET}} over and over. | 780 @key{RET}} over and over. |
781 | |
782 The command @kbd{C-c .}@: (@code{comint-input-previous-argument}) | |
783 copies an individual argument from a previous command, like @kbd{ESC | |
784 .} in Bash. The simplest use copies the last argument from the | |
785 previous shell command. With a prefix argument @var{n}, it copies the | |
786 @var{n}th argument instead. Repeating @kbd{C-c .} copies from an | |
787 earlier shell command instead, always using the same value of @var{n} | |
788 (don't give a prefix argument when you repeat the @kbd{C-c .} | |
789 command). | |
777 | 790 |
778 These commands get the text of previous shell commands from a special | 791 These commands get the text of previous shell commands from a special |
779 history list, not from the shell buffer itself. Thus, editing the shell | 792 history list, not from the shell buffer itself. Thus, editing the shell |
780 buffer, or even killing large parts of it, does not affect the history | 793 buffer, or even killing large parts of it, does not affect the history |
781 that these commands access. | 794 that these commands access. |
1016 subshell, except for the Term escape character, normally @kbd{C-c}. | 1029 subshell, except for the Term escape character, normally @kbd{C-c}. |
1017 | 1030 |
1018 To switch between line and char mode, use these commands: | 1031 To switch between line and char mode, use these commands: |
1019 | 1032 |
1020 @table @kbd | 1033 @table @kbd |
1034 @kindex C-c C-j @r{(Term mode)} | |
1035 @findex term-char-mode | |
1036 @item C-c C-j | |
1037 Switch to line mode. Do nothing if already in line mode. | |
1038 | |
1021 @kindex C-c C-k @r{(Term mode)} | 1039 @kindex C-c C-k @r{(Term mode)} |
1022 @findex term-char-mode | 1040 @findex term-line-mode |
1023 @item C-c C-k | 1041 @item C-c C-k |
1024 Switch to line mode. Do nothing if already in line mode. | |
1025 | |
1026 @kindex C-c C-j @r{(Term mode)} | |
1027 @findex term-line-mode | |
1028 @item C-c C-j | |
1029 Switch to char mode. Do nothing if already in char mode. | 1042 Switch to char mode. Do nothing if already in char mode. |
1030 @end table | 1043 @end table |
1031 | 1044 |
1032 The following commands are only available in char mode: | 1045 The following commands are only available in char mode: |
1033 | 1046 |