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 /etc/NEWS | |
| 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 'etc/NEWS')
| -rw-r--r-- | etc/NEWS | 31 |
1 files changed, 18 insertions, 13 deletions
| @@ -186,24 +186,29 @@ navigation and editing of large files. | |||
| 186 | * Changes in Specialized Modes and Packages in Emacs 27.1 | 186 | * Changes in Specialized Modes and Packages in Emacs 27.1 |
| 187 | 187 | ||
| 188 | ** Browse-url | 188 | ** Browse-url |
| 189 | |||
| 189 | *** The function 'browse-url-emacs' can now visit a URL in selected window. | 190 | *** The function 'browse-url-emacs' can now visit a URL in selected window. |
| 190 | It now treats the optional 2nd argument to mean that the URL should be | 191 | It now treats the optional 2nd argument to mean that the URL should be |
| 191 | shown in the currently selected window. | 192 | shown in the currently selected window. |
| 192 | 193 | ||
| 193 | ** Comint | 194 | ** Comint |
| 194 | *** 'comint-insert-previous-argument' no longer interprets &. | 195 | |
| 195 | This worked strangely in shell-mode in the presence of &&. And omitting this | 196 | +++ |
| 196 | logic makes sense since 'comint-insert-previous-argument' exists to emulate M-. | 197 | *** 'C-c .' (comint-insert-previous-argument) no longer interprets '&'. |
| 197 | in bash and zsh, and neither of those treat & specially. | 198 | This feature caused problems when '&&' was present in the previous |
| 198 | 199 | command. Since this command emulates 'M-.' in Bash and zsh, neither | |
| 199 | *** 'comint-insert-previous-argument' knows how to count args | 200 | of which treats '&' specially, the feature was removed for |
| 200 | from the beginning or from the end. This is useful because | 201 | compatibility with these shells. |
| 201 | 'comint-insert-previous-argument' exists to emulate M-. in bash and zsh; and | 202 | |
| 202 | bash counts from the start while zsh counts from the end. | 203 | +++ |
| 203 | 204 | *** 'comint-insert-previous-argument' can now count arguments from the end. | |
| 204 | *** New variable 'comint-insert-previous-argument-from-end' controls whether | 205 | By default, invoking 'C-c .' with a numeric argument N would copy the |
| 205 | args passed to 'comint-insert-previous-argument' count from the beginning or | 206 | Nth argument, counting from the first one. But if the new option |
| 206 | from the end | 207 | 'comint-insert-previous-argument-from-end' is non-nil, it will copy |
| 208 | the Nth argument counting from the last one. Thus 'C-c .' can now | ||
| 209 | better emulate 'M-.' in both Bash and zsh, since the former counts | ||
| 210 | from the beginning of the arguments, while the latter counts from the | ||
| 211 | end. | ||
| 207 | 212 | ||
| 208 | ** Flymake | 213 | ** Flymake |
| 209 | 214 | ||