Function: eshell-lock-local-map

eshell-lock-local-map is an interactive and byte-compiled function defined in em-rebind.el.gz.

Signature

(eshell-lock-local-map &optional ARG)

Documentation

Lock or unlock the current local keymap.

With prefix ARG, set the local keymap to its normal value, and lock it at that.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-rebind.el.gz
(defun eshell-lock-local-map (&optional arg)
  "Lock or unlock the current local keymap.
With prefix ARG, set the local keymap to its normal value, and
lock it at that."
  (interactive "P")
  (if (or arg (not eshell-lock-keymap))
      (progn
	(use-local-map eshell-mode-map)
	(setq eshell-lock-keymap t)
	(message "Local keymap locked in normal mode"))
    (use-local-map eshell-input-keymap)
    (setq eshell-lock-keymap nil)
    (message "Local keymap unlocked: obey context")))