aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-14 16:03:04 +0000
committerRichard M. Stallman2003-07-14 16:03:04 +0000
commit0f2018645b250e2aaa2ad14f1992e15b981d9108 (patch)
tree49fd1530686cbc2077913765448b37e736c247a0
parent24fc202033271dfe66f0ba5b37e099b033f39885 (diff)
downloademacs-0f2018645b250e2aaa2ad14f1992e15b981d9108.tar.gz
emacs-0f2018645b250e2aaa2ad14f1992e15b981d9108.zip
(Functions for Key Lookup): Add current-active-maps.
(Scanning Keymaps): Add map-keymaps. (Defining Menus): Add keymap-prompt.
-rw-r--r--lispref/keymaps.texi20
1 files changed, 20 insertions, 0 deletions
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi
index e5adfb07b46..b6170b3a8f0 100644
--- a/lispref/keymaps.texi
+++ b/lispref/keymaps.texi
@@ -937,6 +937,11 @@ An error is signaled if @var{key} is not a string or a vector.
937@end example 937@end example
938@end defun 938@end defun
939 939
940@defun current-active-maps
941This returns the list of keymaps that would be used by the command
942loop in the current circumstances to look up a key sequence.
943@end defun
944
940@defun local-key-binding key &optional accept-defaults 945@defun local-key-binding key &optional accept-defaults
941This function returns the binding for @var{key} in the current 946This function returns the binding for @var{key} in the current
942local keymap, or @code{nil} if it is undefined there. 947local keymap, or @code{nil} if it is undefined there.
@@ -1473,6 +1478,16 @@ of a window.
1473These are not all the keymaps you would see in actuality. 1478These are not all the keymaps you would see in actuality.
1474@end defun 1479@end defun
1475 1480
1481@defun map-keymap function keymap
1482The function @code{map-keymap} calls @var{function} once
1483for each binding in @var{keymap}. It passes two arguments,
1484the event type and the value of the binding. If @var{keymap}
1485has a parent, the parent's bindings are included as well.
1486
1487This function is the cleanest way to examine all the bindings
1488in a keymap.
1489@end defun
1490
1476@defun where-is-internal command &optional keymap firstonly noindirect 1491@defun where-is-internal command &optional keymap firstonly noindirect
1477This function is a subroutine used by the @code{where-is} command 1492This function is a subroutine used by the @code{where-is} command
1478(@pxref{Help, , Help, emacs,The GNU Emacs Manual}). It returns a list 1493(@pxref{Help, , Help, emacs,The GNU Emacs Manual}). It returns a list
@@ -1573,6 +1588,11 @@ the string as an argument when you call @code{make-keymap},
1573@code{make-sparse-keymap} or @code{define-prefix-command} 1588@code{make-sparse-keymap} or @code{define-prefix-command}
1574(@pxref{Creating Keymaps}). 1589(@pxref{Creating Keymaps}).
1575 1590
1591@defun keymap-prompt keymap
1592This function returns the overall prompt string of @var{keymap},
1593or @code{nil} if it has none.
1594@end defun
1595
1576The order of items in the menu is the same as the order of bindings in 1596The order of items in the menu is the same as the order of bindings in
1577the keymap. Since @code{define-key} puts new bindings at the front, you 1597the keymap. Since @code{define-key} puts new bindings at the front, you
1578should define the menu items starting at the bottom of the menu and 1598should define the menu items starting at the bottom of the menu and