diff options
| author | Eli Zaretskii | 2018-06-18 19:21:09 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-06-18 19:21:09 +0300 |
| commit | bfc1dfd459c431e95ef685e7cd39f8a8a90d2377 (patch) | |
| tree | 070ed8dc518550f8bf7bb1ba63f81b38d83e2cec /doc | |
| parent | 3e2215642bbca3d1335155278eace39d0a87c267 (diff) | |
| download | emacs-bfc1dfd459c431e95ef685e7cd39f8a8a90d2377.tar.gz emacs-bfc1dfd459c431e95ef685e7cd39f8a8a90d2377.zip | |
Improve documentation of recent changes in Comint
* lisp/comint.el (comint-insert-previous-argument)
(comint-arguments, comint-insert-previous-argument-from-end):
Doc fixes.
(comint-insert-previous-argument-from-end): Add :version.
* doc/emacs/misc.texi (Shell Ring): Fix a typo in the name of
'comint-insert-previous-argument'. Document
'comint-insert-previous-argument-from-end'. (Bug#25271)
* etc/NEWS: Reformat and rephrase the entry for recent Comint
changes.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/misc.texi | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 7c595388ead..24586eb2813 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1133,7 +1133,7 @@ Fetch the next subsequent command from the history | |||
| 1133 | 1133 | ||
| 1134 | @item C-c . | 1134 | @item C-c . |
| 1135 | @kindex C-c . @r{(Shell mode)} | 1135 | @kindex C-c . @r{(Shell mode)} |
| 1136 | @findex comint-input-previous-argument | 1136 | @findex comint-insert-previous-argument |
| 1137 | Fetch one argument from an old shell command | 1137 | Fetch one argument from an old shell command |
| 1138 | (@code{comint-input-previous-argument}). | 1138 | (@code{comint-input-previous-argument}). |
| 1139 | 1139 | ||
| @@ -1180,14 +1180,20 @@ you just repeated. Then type @key{RET} to reexecute this command. You | |||
| 1180 | can reexecute several successive commands by typing @kbd{C-c C-x | 1180 | can reexecute several successive commands by typing @kbd{C-c C-x |
| 1181 | @key{RET}} over and over. | 1181 | @key{RET}} over and over. |
| 1182 | 1182 | ||
| 1183 | The command @kbd{C-c .}@: (@code{comint-input-previous-argument}) | 1183 | The command @kbd{C-c .}@: (@code{comint-insert-previous-argument}) |
| 1184 | copies an individual argument from a previous command, like | 1184 | copies an individual argument from a previous command, like |
| 1185 | @kbd{@key{ESC} .} in Bash. The simplest use copies the last argument from the | 1185 | @kbd{@key{ESC} .}@: in Bash and @command{zsh}. The simplest use |
| 1186 | previous shell command. With a prefix argument @var{n}, it copies the | 1186 | copies the last argument from the previous shell command. With a |
| 1187 | @var{n}th argument instead. Repeating @kbd{C-c .} copies from an | 1187 | prefix argument @var{n}, it copies the @var{n}th argument instead. |
| 1188 | earlier shell command instead, always using the same value of @var{n} | 1188 | Repeating @kbd{C-c .} copies from an earlier shell commands, always |
| 1189 | (don't give a prefix argument when you repeat the @kbd{C-c .} | 1189 | using the same value of @var{n} (don't give a prefix argument when |
| 1190 | command). | 1190 | you repeat the @kbd{C-c .} command). |
| 1191 | |||
| 1192 | @vindex comint-insert-previous-argument-from-end | ||
| 1193 | If you set @code{comint-insert-previous-argument-from-end} to a | ||
| 1194 | non-@code{nil} value, @kbd{C-c .}@: will instead copy the @var{n}th | ||
| 1195 | argument counting from the last one; this emulates @kbd{@key{ESC} .}@: | ||
| 1196 | in @command{zsh}. | ||
| 1191 | 1197 | ||
| 1192 | These commands get the text of previous shell commands from a special | 1198 | These commands get the text of previous shell commands from a special |
| 1193 | history list, not from the shell buffer itself. Thus, editing the shell | 1199 | history list, not from the shell buffer itself. Thus, editing the shell |