937 |
@end example |
@end example |
938 |
@end defun |
@end defun |
939 |
|
|
940 |
|
@defun current-active-maps |
941 |
|
This returns the list of keymaps that would be used by the command |
942 |
|
loop in the current circumstances to look up a key sequence. |
943 |
|
@end defun |
944 |
|
|
945 |
@defun local-key-binding key &optional accept-defaults |
@defun local-key-binding key &optional accept-defaults |
946 |
This function returns the binding for @var{key} in the current |
This function returns the binding for @var{key} in the current |
947 |
local keymap, or @code{nil} if it is undefined there. |
local keymap, or @code{nil} if it is undefined there. |
1478 |
These are not all the keymaps you would see in actuality. |
These are not all the keymaps you would see in actuality. |
1479 |
@end defun |
@end defun |
1480 |
|
|
1481 |
|
@defun map-keymap function keymap |
1482 |
|
The function @code{map-keymap} calls @var{function} once |
1483 |
|
for each binding in @var{keymap}. It passes two arguments, |
1484 |
|
the event type and the value of the binding. If @var{keymap} |
1485 |
|
has a parent, the parent's bindings are included as well. |
1486 |
|
|
1487 |
|
This function is the cleanest way to examine all the bindings |
1488 |
|
in a keymap. |
1489 |
|
@end defun |
1490 |
|
|
1491 |
@defun where-is-internal command &optional keymap firstonly noindirect |
@defun where-is-internal command &optional keymap firstonly noindirect |
1492 |
This function is a subroutine used by the @code{where-is} command |
This function is a subroutine used by the @code{where-is} command |
1493 |
(@pxref{Help, , Help, emacs,The GNU Emacs Manual}). It returns a list |
(@pxref{Help, , Help, emacs,The GNU Emacs Manual}). It returns a list |
1588 |
@code{make-sparse-keymap} or @code{define-prefix-command} |
@code{make-sparse-keymap} or @code{define-prefix-command} |
1589 |
(@pxref{Creating Keymaps}). |
(@pxref{Creating Keymaps}). |
1590 |
|
|
1591 |
|
@defun keymap-prompt keymap |
1592 |
|
This function returns the overall prompt string of @var{keymap}, |
1593 |
|
or @code{nil} if it has none. |
1594 |
|
@end defun |
1595 |
|
|
1596 |
The order of items in the menu is the same as the order of bindings in |
The order of items in the menu is the same as the order of bindings in |
1597 |
the keymap. Since @code{define-key} puts new bindings at the front, you |
the keymap. Since @code{define-key} puts new bindings at the front, you |
1598 |
should define the menu items starting at the bottom of the menu and |
should define the menu items starting at the bottom of the menu and |