summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2017-11-22 21:59:35 -0500
committerNoam Postavsky <npostavs@gmail.com>2017-12-03 15:39:02 -0500
commit1cdd0e8cd801aa1d6f04ab4d8e6097a46af8c951 (patch)
tree915614a8b3b96a53767a3fc2c38fa5d530c6ad76 /etc
parentcfa50d30f2876ca30158082e9a91d19e804a7e09 (diff)
downloademacs-1cdd0e8cd801aa1d6f04ab4d8e6097a46af8c951.tar.gz
Disable history expansion in eshell (Bug#29157)
History expansion is not so useful since interactive history commands are already provided. It can produce surprising errors when the user is not aware of the history designator syntax. * lisp/eshell/em-hist.el (eshell-hist-initialize): Don't add eshell-expand-history-references to eshell-expand-input-functions. * etc/NEWS: Announce it.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6b3e7fc244b..cbd50f02272 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -113,6 +113,15 @@ styles as configured by the variable 'completion-styles'.
These macros are analogue to 'let' and 'let*', but create bindings that
are evaluated lazily.
+** Eshell
+
+---
+*** Expansion of history event designators is disabled by default.
+To restore the old behavior, use
+
+ (add-hook 'eshell-expand-input-functions
+ #'eshell-expand-history-references)
+
* New Modes and Packages in Emacs 27.1