diff options
| -rw-r--r-- | doc/misc/eshell.texi | 12 | ||||
| -rw-r--r-- | etc/NEWS | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index 716b4b7a50d..9aba6006b1b 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -462,10 +462,14 @@ The n-th entry of the history ring can be applied with the @samp{!n} | |||
| 462 | command. If @code{n} is negative, the entry is counted from the end | 462 | command. If @code{n} is negative, the entry is counted from the end |
| 463 | of the history ring. | 463 | of the history ring. |
| 464 | 464 | ||
| 465 | @samp{!foo} expands to the last command beginning with @code{foo}, and | 465 | @cindex event designators |
| 466 | @samp{!?foo} to the last command containing @code{foo}. The n-th | 466 | @findex eshell-expand-history-references |
| 467 | argument of the last command beginning with @code{foo} is accessible | 467 | When history event designators are enabled (by adding |
| 468 | by @code{!foo:n}. | 468 | @code{eshell-expand-history-references} to |
| 469 | @code{eshell-expand-input-functions}), @samp{!foo} expands to the last | ||
| 470 | command beginning with @code{foo}, and @samp{!?foo} to the last | ||
| 471 | command containing @code{foo}. The n-th argument of the last command | ||
| 472 | beginning with @code{foo} is accessible by @code{!foo:n}. | ||
| 469 | 473 | ||
| 470 | The history ring is loaded from a file at the start of every session, | 474 | The history ring is loaded from a file at the start of every session, |
| 471 | and written back to the file at the end of every session. The file path | 475 | and written back to the file at the end of every session. The file path |
| @@ -1346,7 +1346,7 @@ default, and not just the opening element. | |||
| 1346 | behave similarly, e.g. Pcomplete's default cycling can be obtained | 1346 | behave similarly, e.g. Pcomplete's default cycling can be obtained |
| 1347 | with '(setq completion-cycle-threshold 5)'. | 1347 | with '(setq completion-cycle-threshold 5)'. |
| 1348 | 1348 | ||
| 1349 | --- | 1349 | +++ |
| 1350 | *** Expansion of history event designators is disabled by default. | 1350 | *** Expansion of history event designators is disabled by default. |
| 1351 | To restore the old behavior, use | 1351 | To restore the old behavior, use |
| 1352 | 1352 | ||