diff options
| author | Robert Pluim | 2023-03-17 14:16:00 +0100 |
|---|---|---|
| committer | Robert Pluim | 2023-03-17 14:18:10 +0100 |
| commit | e4a7d0cd6eaf4feb4cb2a6bbb8058b70d6676b62 (patch) | |
| tree | 0b0a1ebbf96d2b67e240d2298c4d01cd3a531318 | |
| parent | bb3e0ded9eba71596b34806b302d63977259c3dd (diff) | |
| download | emacs-e4a7d0cd6eaf4feb4cb2a6bbb8058b70d6676b62.tar.gz emacs-e4a7d0cd6eaf4feb4cb2a6bbb8058b70d6676b62.zip | |
Document `keymap-unset' in lispref
* doc/lispref/keymaps.texi (Changing Key Bindings): Document
keymap-unset.
| -rw-r--r-- | doc/lispref/keymaps.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 7876780dcd4..02feda5cd04 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -1427,6 +1427,17 @@ If @var{key} is @kbd{<t>}, this sets the default binding in | |||
| 1427 | @var{keymap}. When an event has no binding of its own, the Emacs | 1427 | @var{keymap}. When an event has no binding of its own, the Emacs |
| 1428 | command loop uses the keymap's default binding, if there is one. | 1428 | command loop uses the keymap's default binding, if there is one. |
| 1429 | 1429 | ||
| 1430 | @findex keymap-unset | ||
| 1431 | @defun keymap-unset keymap key &optional remove | ||
| 1432 | This function is the inverse of @code{keymap-set}, it unsets the | ||
| 1433 | binding for @var{key} in @var{keymap}, which is the same as setting | ||
| 1434 | the binding to @code{nil}. In order to instead remove the binding | ||
| 1435 | completely, specify @var{remove} as non-nil. This only makes a | ||
| 1436 | difference if @var{keymap} has a parent keymap. When unsetting a key | ||
| 1437 | in a child map, it will still shadow the same key in the parent | ||
| 1438 | keymap. Removing the binding will allow the key in the parent keymap | ||
| 1439 | to be used. | ||
| 1440 | |||
| 1430 | @cindex invalid prefix key error | 1441 | @cindex invalid prefix key error |
| 1431 | @cindex key sequence error | 1442 | @cindex key sequence error |
| 1432 | Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap) | 1443 | Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap) |