diff options
author | Robert Pluim <rpluim@gmail.com> | 2023-03-17 14:25:39 +0100 |
---|---|---|
committer | Robert Pluim <rpluim@gmail.com> | 2023-03-17 14:25:39 +0100 |
commit | e8cee15f780e90ac52e674f49613d8e2b011cc59 (patch) | |
tree | f8f47163f2069ee705e9f61ad57f2e6fbfd30e0f | |
parent | e4a7d0cd6eaf4feb4cb2a6bbb8058b70d6676b62 (diff) | |
download | emacs-e8cee15f780e90ac52e674f49613d8e2b011cc59.tar.gz |
; Fix markup in previous change
-rw-r--r-- | doc/lispref/keymaps.texi | 23 |
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 @var{keymap}. When an event has no binding of its own, the Emacs command loop uses the keymap's default binding, if there is one. -@findex keymap-unset -@defun keymap-unset keymap key &optional remove -This function is the inverse of @code{keymap-set}, it unsets the -binding for @var{key} in @var{keymap}, which is the same as setting -the binding to @code{nil}. In order to instead remove the binding -completely, specify @var{remove} as non-nil. This only makes a -difference if @var{keymap} has 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. - @cindex invalid prefix key error @cindex key sequence error Every 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 does matter for menu keymaps (@pxref{Menu Keymaps}). @end defun +@findex keymap-unset +@defun keymap-unset keymap key &optional remove +This function is the inverse of @code{keymap-set}, it unsets the +binding for @var{key} in @var{keymap}, which is the same as setting +the binding to @code{nil}. In order to instead remove the binding +completely, specify @var{remove} as non-nil. This only makes a +difference if @var{keymap} has 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. +@end defun + This example creates a sparse keymap and makes a number of bindings in it: |