Function: eshell-hist--update-keymap
eshell-hist--update-keymap is a byte-compiled function defined in
em-hist.el.gz.
Signature
(eshell-hist--update-keymap SYMBOL VALUE)
Documentation
Update eshell-hist-mode-map for eshell-hist-match-partial.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-hist--update-keymap (symbol value)
"Update `eshell-hist-mode-map' for `eshell-hist-match-partial'."
;; Don't try to set this before it is bound. See below.
(when (and (boundp 'eshell-hist-mode-map)
(eq symbol 'eshell-hist-match-partial))
(dolist (keyb
(if value
`(("M-p" . ,#'eshell-previous-matching-input-from-input)
("M-n" . ,#'eshell-next-matching-input-from-input)
("C-c M-p" . ,#'eshell-previous-input)
("C-c M-n" . ,#'eshell-next-input))
`(("M-p" . ,#'eshell-previous-input)
("M-n" . ,#'eshell-next-input)
("C-c M-p" . ,#'eshell-previous-matching-input-from-input)
("C-c M-n" . ,#'eshell-next-matching-input-from-input))))
(keymap-set eshell-hist-mode-map (car keyb) (cdr keyb))))
(set-default symbol value))