diff options
| author | Richard M. Stallman | 2003-07-14 16:03:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-14 16:03:04 +0000 |
| commit | 0f2018645b250e2aaa2ad14f1992e15b981d9108 (patch) | |
| tree | 49fd1530686cbc2077913765448b37e736c247a0 | |
| parent | 24fc202033271dfe66f0ba5b37e099b033f39885 (diff) | |
| download | emacs-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.texi | 20 |
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 | ||
| 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 | |||
| 940 | @defun local-key-binding key &optional accept-defaults | 945 | @defun local-key-binding key &optional accept-defaults |
| 941 | This function returns the binding for @var{key} in the current | 946 | This function returns the binding for @var{key} in the current |
| 942 | local keymap, or @code{nil} if it is undefined there. | 947 | local keymap, or @code{nil} if it is undefined there. |
| @@ -1473,6 +1478,16 @@ of a window. | |||
| 1473 | These are not all the keymaps you would see in actuality. | 1478 | These are not all the keymaps you would see in actuality. |
| 1474 | @end defun | 1479 | @end defun |
| 1475 | 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 | |||
| 1476 | @defun where-is-internal command &optional keymap firstonly noindirect | 1491 | @defun where-is-internal command &optional keymap firstonly noindirect |
| 1477 | This function is a subroutine used by the @code{where-is} command | 1492 | This 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 | ||
| 1592 | This function returns the overall prompt string of @var{keymap}, | ||
| 1593 | or @code{nil} if it has none. | ||
| 1594 | @end defun | ||
| 1595 | |||
| 1576 | The order of items in the menu is the same as the order of bindings in | 1596 | The order of items in the menu is the same as the order of bindings in |
| 1577 | the keymap. Since @code{define-key} puts new bindings at the front, you | 1597 | the keymap. Since @code{define-key} puts new bindings at the front, you |
| 1578 | should define the menu items starting at the bottom of the menu and | 1598 | should define the menu items starting at the bottom of the menu and |