Function: eshell-rebind-input-map
eshell-rebind-input-map is a byte-compiled function defined in
em-rebind.el.gz.
Signature
(eshell-rebind-input-map)
Documentation
Rebind the input keymap based on the location of the cursor.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-rebind.el.gz
(defun eshell-rebind-input-map ()
"Rebind the input keymap based on the location of the cursor."
(ignore-errors
(unless eshell-lock-keymap
(if (eshell-point-within-input-p (point))
(use-local-map eshell-input-keymap)
(let (begin)
(if (and eshell-confine-point-to-input
(setq begin
(eshell-point-within-input-p eshell-previous-point))
(memq this-command eshell-cannot-leave-input-list))
(progn
(use-local-map eshell-input-keymap)
(goto-char begin)
(if (and eshell-error-if-move-away
(not (eq this-command 'kill-region)))
(beep)))
(use-local-map eshell-mode-map)))))))