aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-05-11 13:29:12 +0000
committerGerd Moellmann2000-05-11 13:29:12 +0000
commite465fdc2ead60c9061b700cd5f9201c923c1b47c (patch)
tree329603ee1553012960a71c6e88bfb63787d3e92c
parent1172eb8dfaf1d4a1a9f83b2c9e84d93a5de015c0 (diff)
downloademacs-e465fdc2ead60c9061b700cd5f9201c923c1b47c.tar.gz
emacs-e465fdc2ead60c9061b700cd5f9201c923c1b47c.zip
*** empty log message ***
-rw-r--r--lispref/keymaps.texi30
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
147Aside from bindings, a keymap can also have a string as an element. 147Aside from bindings, a keymap can also have a string as an element.
148This is called the @dfn{overall prompt string} and makes it possible to 148This is called the @dfn{overall prompt string} and makes it possible to
149use the keymap as a menu. @xref{Menu Keymaps}. 149use 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
230If you specify @var{prompt}, that becomes the overall prompt string for 230If you specify @var{prompt}, that becomes the overall prompt string for
231the keymap. The prompt string is useful for menu keymaps (@pxref{Menu 231the keymap. The prompt string is useful for menu keymaps
232Keymaps}). 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
476If @var{prompt} is non-@code{nil}, that becomes the overall prompt 476If @var{prompt} is non-@code{nil}, that becomes the overall prompt
477string for the keymap. The prompt string is useful for menu keymaps 477string 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.
1526A keymap is suitable for menu use if it has an @dfn{overall prompt 1526A keymap is suitable for menu use if it has an @dfn{overall prompt
1527string}, which is a string that appears as an element of the keymap. 1527string}, 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
1529the menu. The easiest way to construct a keymap with a prompt string is 1529the menu's commands. Emacs displays the overall prompt string as the
1530to specify the string as an argument when you call @code{make-keymap} or 1530menu title in some cases, depending on which toolkit is used for
1531displaying menus. Keyboard menus also display the overall prompt
1532string.
1533
1534The easiest way to construct a keymap with a prompt string is to specify
1535the 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
1533The order of items in the menu is the same as the order of bindings in 1538The 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
1872key) has a definition that is a menu keymap, the user can use the 1877key) has a definition that is a menu keymap, the user can use the
1873keyboard to choose a menu item. 1878keyboard to choose a menu item.
1874 1879
1875Emacs displays the menu alternatives (the item strings of the bindings) 1880Emacs displays the menu's overall prompt string followed by the
1876in the echo area. If they don't all fit at once, the user can type 1881alternatives (the item strings of the bindings) in the echo area. If
1877@key{SPC} to see the next line of alternatives. Successive uses of 1882the 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 1883the next line of alternatives. Successive uses of @key{SPC} eventually
1879the beginning. (The variable @code{menu-prompt-more-char} specifies 1884get to the end of the menu and then cycle around to the beginning. (The
1880which character is used for this; @key{SPC} is the default.) 1885variable @code{menu-prompt-more-char} specifies which character is used
1886for this; @key{SPC} is the default.)
1881 1887
1882When the user has found the desired alternative from the menu, he or she 1888When the user has found the desired alternative from the menu, he or she
1883should type the corresponding character---the one whose binding is that 1889should type the corresponding character---the one whose binding is that