Say how to enable event designators in the eshell manual

* doc/misc/eshell.texi (History): Mention that event designators need
to be enabled.
* etc/NEWS: Mark corresponding entry as documented in manual.
This commit is contained in:
Noam Postavsky 2019-08-08 19:35:53 -04:00
parent f9beb2bfa9
commit b055ec0d85
2 changed files with 9 additions and 5 deletions

View file

@ -462,10 +462,14 @@ The n-th entry of the history ring can be applied with the @samp{!n}
command. If @code{n} is negative, the entry is counted from the end
of the history ring.
@samp{!foo} expands to the last command beginning with @code{foo}, and
@samp{!?foo} to the last command containing @code{foo}. The n-th
argument of the last command beginning with @code{foo} is accessible
by @code{!foo:n}.
@cindex event designators
@findex eshell-expand-history-references
When history event designators are enabled (by adding
@code{eshell-expand-history-references} to
@code{eshell-expand-input-functions}), @samp{!foo} expands to the last
command beginning with @code{foo}, and @samp{!?foo} to the last
command containing @code{foo}. The n-th argument of the last command
beginning with @code{foo} is accessible by @code{!foo:n}.
The history ring is loaded from a file at the start of every session,
and written back to the file at the end of every session. The file path

View file

@ -1346,7 +1346,7 @@ default, and not just the opening element.
behave similarly, e.g. Pcomplete's default cycling can be obtained
with '(setq completion-cycle-threshold 5)'.
---
+++
*** Expansion of history event designators is disabled by default.
To restore the old behavior, use