624 |
Move backward across one shell command, but not beyond the current line |
Move backward across one shell command, but not beyond the current line |
625 |
(@code{shell-backward-command}). |
(@code{shell-backward-command}). |
626 |
|
|
|
@item C-c C-l |
|
|
@kindex C-c C-l @r{(Shell mode)} |
|
|
@findex comint-dynamic-list-input-ring |
|
|
Display the buffer's history of shell commands in another window |
|
|
(@code{comint-dynamic-list-input-ring}). |
|
|
|
|
627 |
@item M-x dirs |
@item M-x dirs |
628 |
Ask the shell what its current directory is, so that Emacs can agree |
Ask the shell what its current directory is, so that Emacs can agree |
629 |
with the shell. |
with the shell. |
734 |
@itemx M-s @var{regexp} @key{RET} |
@itemx M-s @var{regexp} @key{RET} |
735 |
Search backwards or forwards for old shell commands that match @var{regexp}. |
Search backwards or forwards for old shell commands that match @var{regexp}. |
736 |
|
|
737 |
@item C-c C-x @r{(Shell mode)} |
@item C-c C-x |
738 |
|
@kindex C-c C-x @r{(Shell mode)} |
739 |
@findex comint-get-next-from-history |
@findex comint-get-next-from-history |
740 |
Fetch the next subsequent command from the history. |
Fetch the next subsequent command from the history. |
741 |
|
|
742 |
@item C-c . @r{(Shell mode)} |
@item C-c . |
743 |
|
@kindex C-c . @r{(Shell mode)} |
744 |
@findex comint-input-previous-argument |
@findex comint-input-previous-argument |
745 |
Fetch one argument from an old shell command. |
Fetch one argument from an old shell command. |
746 |
|
|
747 |
|
@item C-c C-l |
748 |
|
@kindex C-c C-l @r{(Shell mode)} |
749 |
|
@findex comint-dynamic-list-input-ring |
750 |
|
Display the buffer's history of shell commands in another window |
751 |
|
(@code{comint-dynamic-list-input-ring}). |
752 |
@end table |
@end table |
753 |
|
|
754 |
Shell buffers provide a history of previously entered shell commands. To |
Shell buffers provide a history of previously entered shell commands. To |
817 |
Move point to the following prompt (@code{comint-next-prompt}). |
Move point to the following prompt (@code{comint-next-prompt}). |
818 |
|
|
819 |
@kindex C-c RET @r{(Shell mode)} |
@kindex C-c RET @r{(Shell mode)} |
820 |
@findex comint-copy-old-input |
@findex comint-insert-input |
821 |
@item C-c @key{RET} |
@item C-c @key{RET} |
822 |
Copy the input command which point is in, inserting the copy at the end |
Copy the input command which point is in, inserting the copy at the end |
823 |
of the buffer (@code{comint-copy-old-input}). This is useful if you |
of the buffer (@code{comint-insert-input}). This is useful if you |
824 |
move point back to a previous command. After you copy the command, you |
move point back to a previous command. After you copy the command, you |
825 |
can submit the copy as input with @key{RET}. If you wish, you can |
can submit the copy as input with @key{RET}. If you wish, you can |
826 |
edit the copy before resubmitting it. |
edit the copy before resubmitting it. |
827 |
|
|
828 |
|
@item Mouse-2 |
829 |
|
Copy the input command that you click on, inserting the copy at the end |
830 |
|
of the buffer. |
831 |
@end table |
@end table |
832 |
|
|
833 |
Moving to a previous input and then copying it with @kbd{C-c |
Moving to a previous input and then copying it with @kbd{C-c |
834 |
@key{RET}} produces the same results---the same buffer contents---that |
@key{RET}} or @kbd{Mouse-2} produces the same results---the same |
835 |
you would get by using @kbd{M-p} enough times to fetch that previous |
buffer contents---that you would get by using @kbd{M-p} enough times |
836 |
input from the history list. However, @kbd{C-c @key{RET}} copies the |
to fetch that previous input from the history list. However, @kbd{C-c |
837 |
text from the buffer, which can be different from what is in the history |
@key{RET}} copies the text from the buffer, which can be different |
838 |
list if you edit the input text in the buffer after it has been sent. |
from what is in the history list if you edit the input text in the |
839 |
|
buffer after it has been sent. |
840 |
|
|
841 |
@node History References |
@node History References |
842 |
@subsubsection Shell History References |
@subsubsection Shell History References |