aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Pluim2023-03-17 14:25:39 +0100
committerRobert Pluim2023-03-17 14:25:39 +0100
commite8cee15f780e90ac52e674f49613d8e2b011cc59 (patch)
treef8f47163f2069ee705e9f61ad57f2e6fbfd30e0f
parente4a7d0cd6eaf4feb4cb2a6bbb8058b70d6676b62 (diff)
downloademacs-e8cee15f780e90ac52e674f49613d8e2b011cc59.tar.gz
emacs-e8cee15f780e90ac52e674f49613d8e2b011cc59.zip
; Fix markup in previous change
-rw-r--r--doc/lispref/keymaps.texi23
1 files changed, 12 insertions, 11 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index 02feda5cd04..aab2fe58255 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -1427,17 +1427,6 @@ 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
1428command loop uses the keymap's default binding, if there is one. 1428command 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
1432This function is the inverse of @code{keymap-set}, it unsets the
1433binding for @var{key} in @var{keymap}, which is the same as setting
1434the binding to @code{nil}. In order to instead remove the binding
1435completely, specify @var{remove} as non-nil. This only makes a
1436difference if @var{keymap} has a parent keymap. When unsetting a key
1437in a child map, it will still shadow the same key in the parent
1438keymap. Removing the binding will allow the key in the parent keymap
1439to be used.
1440
1441@cindex invalid prefix key error 1430@cindex invalid prefix key error
1442@cindex key sequence error 1431@cindex key sequence error
1443Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap) 1432Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap)
@@ -1451,6 +1440,18 @@ bindings in a keymap makes no difference for keyboard input, but it
1451does matter for menu keymaps (@pxref{Menu Keymaps}). 1440does matter for menu keymaps (@pxref{Menu Keymaps}).
1452@end defun 1441@end defun
1453 1442
1443@findex keymap-unset
1444@defun keymap-unset keymap key &optional remove
1445This function is the inverse of @code{keymap-set}, it unsets the
1446binding for @var{key} in @var{keymap}, which is the same as setting
1447the binding to @code{nil}. In order to instead remove the binding
1448completely, specify @var{remove} as non-nil. This only makes a
1449difference if @var{keymap} has a parent keymap. When unsetting a key
1450in a child map, it will still shadow the same key in the parent
1451keymap. Removing the binding will allow the key in the parent keymap
1452to be used.
1453@end defun
1454
1454 This example creates a sparse keymap and makes a number of 1455 This example creates a sparse keymap and makes a number of
1455bindings in it: 1456bindings in it:
1456 1457