* frames.texi (Pop-Up Menus): Document where menu title comes from (Bug#7684).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 22 Jan 2011 20:25:23 +0000 (15:25 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 22 Jan 2011 20:25:23 +0000 (15:25 -0500)
doc/lispref/ChangeLog
doc/lispref/frames.texi

index f81a306..b0c80eb 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-22  Chong Yidong  <cyd@stupidchicken.com>
+
+       * frames.texi (Pop-Up Menus): Document where menu title comes
+       from (Bug#7684).
+
 2011-01-22  Glenn Morris  <rgm@gnu.org>
 
        * display.texi (Making Buttons): Mention limitation of text buttons.
index 6aade20..a99782b 100644 (file)
@@ -1715,9 +1715,13 @@ without actually displaying or popping up the menu.
 The argument @var{menu} says what to display in the menu.  It can be a
 keymap or a list of keymaps (@pxref{Menu Keymaps}).  In this case, the
 return value is the list of events corresponding to the user's choice.
-(This list has more than one element if the choice occurred in a
-submenu.)  Note that @code{x-popup-menu} does not actually execute the
-command bound to that sequence of events.
+This list has more than one element if the choice occurred in a
+submenu.  (Note that @code{x-popup-menu} does not actually execute the
+command bound to that sequence of events.)  On toolkits that support
+menu titles, the title is taken from the prompt string of @var{menu}
+if @var{menu} is a keymap, or from the prompt string of the first
+keymap in @var{menu} if it is a list of keymaps (@pxref{Defining
+Menus}).
 
 Alternatively, @var{menu} can have the following form: