Mercurial > emacs
comparison man/misc.texi @ 56222:136f1c16dc45
(Shell History Copying): Document comint-insert-input.
(Shell Ring): Describe comint-dynamic-list-input-ring here.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Wed, 23 Jun 2004 18:08:24 +0000 |
parents | 01fa7e81affb |
children | d2c0e48f4d5a 59dcbfe97385 |
comparison
equal
deleted
inserted
replaced
56221:47243103399e | 56222:136f1c16dc45 |
---|---|
622 @kindex C-c C-b @r{(Shell mode)} | 622 @kindex C-c C-b @r{(Shell mode)} |
623 @findex shell-backward-command | 623 @findex shell-backward-command |
624 Move backward across one shell command, but not beyond the current line | 624 Move backward across one shell command, but not beyond the current line |
625 (@code{shell-backward-command}). | 625 (@code{shell-backward-command}). |
626 | 626 |
627 @item C-c C-l | |
628 @kindex C-c C-l @r{(Shell mode)} | |
629 @findex comint-dynamic-list-input-ring | |
630 Display the buffer's history of shell commands in another window | |
631 (@code{comint-dynamic-list-input-ring}). | |
632 | |
633 @item M-x dirs | 627 @item M-x dirs |
634 Ask the shell what its current directory is, so that Emacs can agree | 628 Ask the shell what its current directory is, so that Emacs can agree |
635 with the shell. | 629 with the shell. |
636 | 630 |
637 @item M-x send-invisible @key{RET} @var{text} @key{RET} | 631 @item M-x send-invisible @key{RET} @var{text} @key{RET} |
738 @findex comint-next-matching-input | 732 @findex comint-next-matching-input |
739 @item M-r @var{regexp} @key{RET} | 733 @item M-r @var{regexp} @key{RET} |
740 @itemx M-s @var{regexp} @key{RET} | 734 @itemx M-s @var{regexp} @key{RET} |
741 Search backwards or forwards for old shell commands that match @var{regexp}. | 735 Search backwards or forwards for old shell commands that match @var{regexp}. |
742 | 736 |
743 @item C-c C-x @r{(Shell mode)} | 737 @item C-c C-x |
738 @kindex C-c C-x @r{(Shell mode)} | |
744 @findex comint-get-next-from-history | 739 @findex comint-get-next-from-history |
745 Fetch the next subsequent command from the history. | 740 Fetch the next subsequent command from the history. |
746 | 741 |
747 @item C-c . @r{(Shell mode)} | 742 @item C-c . |
743 @kindex C-c . @r{(Shell mode)} | |
748 @findex comint-input-previous-argument | 744 @findex comint-input-previous-argument |
749 Fetch one argument from an old shell command. | 745 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}). | |
750 @end table | 752 @end table |
751 | 753 |
752 Shell buffers provide a history of previously entered shell commands. To | 754 Shell buffers provide a history of previously entered shell commands. To |
753 reuse shell commands from the history, use the editing commands @kbd{M-p}, | 755 reuse shell commands from the history, use the editing commands @kbd{M-p}, |
754 @kbd{M-n}, @kbd{M-r} and @kbd{M-s}. These work just like the minibuffer | 756 @kbd{M-n}, @kbd{M-r} and @kbd{M-s}. These work just like the minibuffer |
813 @findex comint-next-prompt | 815 @findex comint-next-prompt |
814 @item C-c C-n | 816 @item C-c C-n |
815 Move point to the following prompt (@code{comint-next-prompt}). | 817 Move point to the following prompt (@code{comint-next-prompt}). |
816 | 818 |
817 @kindex C-c RET @r{(Shell mode)} | 819 @kindex C-c RET @r{(Shell mode)} |
818 @findex comint-copy-old-input | 820 @findex comint-insert-input |
819 @item C-c @key{RET} | 821 @item C-c @key{RET} |
820 Copy the input command which point is in, inserting the copy at the end | 822 Copy the input command which point is in, inserting the copy at the end |
821 of the buffer (@code{comint-copy-old-input}). This is useful if you | 823 of the buffer (@code{comint-insert-input}). This is useful if you |
822 move point back to a previous command. After you copy the command, you | 824 move point back to a previous command. After you copy the command, you |
823 can submit the copy as input with @key{RET}. If you wish, you can | 825 can submit the copy as input with @key{RET}. If you wish, you can |
824 edit the copy before resubmitting it. | 826 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. | |
825 @end table | 831 @end table |
826 | 832 |
827 Moving to a previous input and then copying it with @kbd{C-c | 833 Moving to a previous input and then copying it with @kbd{C-c |
828 @key{RET}} produces the same results---the same buffer contents---that | 834 @key{RET}} or @kbd{Mouse-2} produces the same results---the same |
829 you would get by using @kbd{M-p} enough times to fetch that previous | 835 buffer contents---that you would get by using @kbd{M-p} enough times |
830 input from the history list. However, @kbd{C-c @key{RET}} copies the | 836 to fetch that previous input from the history list. However, @kbd{C-c |
831 text from the buffer, which can be different from what is in the history | 837 @key{RET}} copies the text from the buffer, which can be different |
832 list if you edit the input text in the buffer after it has been sent. | 838 from what is in the history list if you edit the input text in the |
839 buffer after it has been sent. | |
833 | 840 |
834 @node History References | 841 @node History References |
835 @subsubsection Shell History References | 842 @subsubsection Shell History References |
836 @cindex history reference | 843 @cindex history reference |
837 | 844 |