aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/frames.texi
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2011-01-22 15:25:23 -0500
committerChong Yidong <[email protected]>2011-01-22 15:25:23 -0500
commit28a881534e2dcc072d731f562f1bb244e5fafaea (patch)
tree44188d9719a3b91f4f62f5d914e372d8a4b588e5 /doc/lispref/frames.texi
parent4d265b4d767984d643db79cd17ec74785b20dc2a (diff)
* frames.texi (Pop-Up Menus): Document where menu title comes from (Bug#7684).
Diffstat (limited to 'doc/lispref/frames.texi')
-rw-r--r--doc/lispref/frames.texi10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 6aade20d2f..a99782b95e 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -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: