Function: keymap-unset

keymap-unset is a byte-compiled function defined in compat-29.el.

Signature

(keymap-unset KEYMAP KEY &optional REMOVE)

Documentation

[Compatibility function for keymap-unset, defined in Emacs 29.1. See (compat)
Emacs 29.1' for more details.]

Remove key sequence KEY from KEYMAP. KEY is a string that satisfies key-valid-p.

If REMOVE, remove the binding instead of unsetting it. This only makes a difference when there's a parent keymap. When unsetting a key in a child map, it will still shadow the same key in the parent keymap. Removing the binding will allow the key in the parent keymap to be used.

Source Code

;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
(compat-defun keymap-unset (keymap key &optional remove) ;; <compat-tests:keymap-unset>
  "Remove key sequence KEY from KEYMAP.
KEY is a string that satisfies `key-valid-p'.

If REMOVE, remove the binding instead of unsetting it.  This only
makes a difference when there's a parent keymap.  When unsetting
a key in a child map, it will still shadow the same key in the
parent keymap.  Removing the binding will allow the key in the
parent keymap to be used."
  (keymap--check key)
  (compat--define-key keymap (key-parse key) nil remove))