aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNoam Postavsky2019-08-08 19:35:53 -0400
committerNoam Postavsky2019-08-08 19:35:53 -0400
commitb055ec0d85848987d0ba3962c32fb822b292dfd7 (patch)
tree12660ecec855381176bee078b128893596b1bf8e /doc
parentf9beb2bfa9cdccde79793ab2ab8b88797b30b9f0 (diff)
downloademacs-b055ec0d85848987d0ba3962c32fb822b292dfd7.tar.gz
emacs-b055ec0d85848987d0ba3962c32fb822b292dfd7.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/eshell.texi12
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}
462command. If @code{n} is negative, the entry is counted from the end 462command. If @code{n} is negative, the entry is counted from the end
463of the history ring. 463of 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
467argument of the last command beginning with @code{foo} is accessible 467When history event designators are enabled (by adding
468by @code{!foo:n}. 468@code{eshell-expand-history-references} to
469@code{eshell-expand-input-functions}), @samp{!foo} expands to the last
470command beginning with @code{foo}, and @samp{!?foo} to the last
471command containing @code{foo}. The n-th argument of the last command
472beginning with @code{foo} is accessible by @code{!foo:n}.
469 473
470The history ring is loaded from a file at the start of every session, 474The history ring is loaded from a file at the start of every session,
471and written back to the file at the end of every session. The file path 475and written back to the file at the end of every session. The file path