diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/eshell.texi | 12 |
1 files changed, 8 insertions, 4 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 |