diff options
| author | Gerd Moellmann | 2000-05-11 13:29:12 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-11 13:29:12 +0000 |
| commit | e465fdc2ead60c9061b700cd5f9201c923c1b47c (patch) | |
| tree | 329603ee1553012960a71c6e88bfb63787d3e92c | |
| parent | 1172eb8dfaf1d4a1a9f83b2c9e84d93a5de015c0 (diff) | |
| download | emacs-e465fdc2ead60c9061b700cd5f9201c923c1b47c.tar.gz emacs-e465fdc2ead60c9061b700cd5f9201c923c1b47c.zip | |
*** empty log message ***
| -rw-r--r-- | lispref/keymaps.texi | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/lispref/keymaps.texi b/lispref/keymaps.texi index 9b3eb1f76ec..ed4a3d171b8 100644 --- a/lispref/keymaps.texi +++ b/lispref/keymaps.texi | |||
| @@ -146,7 +146,7 @@ lower-precedence keymaps; thus, if the local map gives a binding of | |||
| 146 | @cindex prompt string of keymap | 146 | @cindex prompt string of keymap |
| 147 | Aside from bindings, a keymap can also have a string as an element. | 147 | Aside from bindings, a keymap can also have a string as an element. |
| 148 | This is called the @dfn{overall prompt string} and makes it possible to | 148 | This is called the @dfn{overall prompt string} and makes it possible to |
| 149 | use the keymap as a menu. @xref{Menu Keymaps}. | 149 | use the keymap as a menu. @xref{Defining Menus}. |
| 150 | @end table | 150 | @end table |
| 151 | 151 | ||
| 152 | @cindex meta characters lookup | 152 | @cindex meta characters lookup |
| @@ -228,8 +228,8 @@ to @code{nil}, and does not bind any other kind of event. | |||
| 228 | @end example | 228 | @end example |
| 229 | 229 | ||
| 230 | If you specify @var{prompt}, that becomes the overall prompt string for | 230 | If you specify @var{prompt}, that becomes the overall prompt string for |
| 231 | the keymap. The prompt string is useful for menu keymaps (@pxref{Menu | 231 | the keymap. The prompt string is useful for menu keymaps |
| 232 | Keymaps}). | 232 | (@pxref{Defining Menus}). |
| 233 | @end defun | 233 | @end defun |
| 234 | 234 | ||
| 235 | @defun make-sparse-keymap &optional prompt | 235 | @defun make-sparse-keymap &optional prompt |
| @@ -475,7 +475,7 @@ as a variable instead. | |||
| 475 | 475 | ||
| 476 | If @var{prompt} is non-@code{nil}, that becomes the overall prompt | 476 | If @var{prompt} is non-@code{nil}, that becomes the overall prompt |
| 477 | string for the keymap. The prompt string is useful for menu keymaps | 477 | string for the keymap. The prompt string is useful for menu keymaps |
| 478 | (@pxref{Menu Keymaps}). | 478 | (@pxref{Defining Menus}). |
| 479 | @end defun | 479 | @end defun |
| 480 | 480 | ||
| 481 | @node Active Keymaps | 481 | @node Active Keymaps |
| @@ -1526,8 +1526,13 @@ work with the keyboard also. | |||
| 1526 | A keymap is suitable for menu use if it has an @dfn{overall prompt | 1526 | A keymap is suitable for menu use if it has an @dfn{overall prompt |
| 1527 | string}, which is a string that appears as an element of the keymap. | 1527 | string}, which is a string that appears as an element of the keymap. |
| 1528 | (@xref{Format of Keymaps}.) The string should describe the purpose of | 1528 | (@xref{Format of Keymaps}.) The string should describe the purpose of |
| 1529 | the menu. The easiest way to construct a keymap with a prompt string is | 1529 | the menu's commands. Emacs displays the overall prompt string as the |
| 1530 | to specify the string as an argument when you call @code{make-keymap} or | 1530 | menu title in some cases, depending on which toolkit is used for |
| 1531 | displaying menus. Keyboard menus also display the overall prompt | ||
| 1532 | string. | ||
| 1533 | |||
| 1534 | The easiest way to construct a keymap with a prompt string is to specify | ||
| 1535 | the string as an argument when you call @code{make-keymap} or | ||
| 1531 | @code{make-sparse-keymap} (@pxref{Creating Keymaps}). | 1536 | @code{make-sparse-keymap} (@pxref{Creating Keymaps}). |
| 1532 | 1537 | ||
| 1533 | The order of items in the menu is the same as the order of bindings in | 1538 | The order of items in the menu is the same as the order of bindings in |
| @@ -1872,12 +1877,13 @@ When a prefix key ending with a keyboard event (a character or function | |||
| 1872 | key) has a definition that is a menu keymap, the user can use the | 1877 | key) has a definition that is a menu keymap, the user can use the |
| 1873 | keyboard to choose a menu item. | 1878 | keyboard to choose a menu item. |
| 1874 | 1879 | ||
| 1875 | Emacs displays the menu alternatives (the item strings of the bindings) | 1880 | Emacs displays the menu's overall prompt string followed by the |
| 1876 | in the echo area. If they don't all fit at once, the user can type | 1881 | alternatives (the item strings of the bindings) in the echo area. If |
| 1877 | @key{SPC} to see the next line of alternatives. Successive uses of | 1882 | the bindings don't all fit at once, the user can type @key{SPC} to see |
| 1878 | @key{SPC} eventually get to the end of the menu and then cycle around to | 1883 | the next line of alternatives. Successive uses of @key{SPC} eventually |
| 1879 | the beginning. (The variable @code{menu-prompt-more-char} specifies | 1884 | get to the end of the menu and then cycle around to the beginning. (The |
| 1880 | which character is used for this; @key{SPC} is the default.) | 1885 | variable @code{menu-prompt-more-char} specifies which character is used |
| 1886 | for this; @key{SPC} is the default.) | ||
| 1881 | 1887 | ||
| 1882 | When the user has found the desired alternative from the menu, he or she | 1888 | When the user has found the desired alternative from the menu, he or she |
| 1883 | should type the corresponding character---the one whose binding is that | 1889 | should type the corresponding character---the one whose binding is that |