; Fix markup in previous change
This commit is contained in:
parent
e4a7d0cd6e
commit
e8cee15f78
1 changed files with 12 additions and 11 deletions
|
@ -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
|
@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.
|
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 invalid prefix key error
|
||||||
@cindex key sequence error
|
@cindex key sequence error
|
||||||
Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap)
|
Every prefix of @var{key} must be a prefix key (i.e., bound to a keymap)
|
||||||
|
@ -1449,6 +1438,18 @@ If there was previously no binding for @var{key} in @var{keymap}, the
|
||||||
new binding is added at the beginning of @var{keymap}. The order of
|
new binding is added at the beginning of @var{keymap}. The order of
|
||||||
bindings in a keymap makes no difference for keyboard input, but it
|
bindings in a keymap makes no difference for keyboard input, but it
|
||||||
does matter for menu keymaps (@pxref{Menu Keymaps}).
|
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
|
@end defun
|
||||||
|
|
||||||
This example creates a sparse keymap and makes a number of
|
This example creates a sparse keymap and makes a number of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue