]> git.eshelyaron.com Git - emacs.git/commitdiff
; * etc/NEWS (Eshell): Fix example for restoring old history search.
authorJim Porter <jporterbugs@gmail.com>
Wed, 18 Dec 2024 05:24:00 +0000 (21:24 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:13:26 +0000 (16:13 +0100)
(cherry picked from commit 43fcda0c8eafa2c7bfc0a416a48b223c6fec4d87)

etc/NEWS

index 7e86bb36ba3a3d156aed5a039b43a520fdaf24c8..68ba56c738368ed030d682fbf98cc5d6f0772a92 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -335,10 +335,11 @@ is freed for normal search commands.  If you would like to restore the
 previous key-bindings for the non-incremental search commands, put in
 your configuration:
 
-    (keymap-set eshell-hist-mode-map "M-r"
-                #'eshell-previous-matching-input)
-    (keymap-set eshell-hist-mode-map "M-s"
-                #'eshell-next-matching-input)
+    (with-eval-after-load 'em-hist
+      (keymap-set eshell-hist-mode-map "M-r"
+                  #'eshell-previous-matching-input)
+      (keymap-set eshell-hist-mode-map "M-s"
+                  #'eshell-next-matching-input))
 
 +++
 *** New user option 'eshell-history-isearch'