]> code.delx.au - gnu-emacs/commitdiff
(Fx_popup_menu, Fx_popup_dialog): Doc fixes.
authorLuc Teirlinck <teirllm@auburn.edu>
Thu, 5 May 2005 22:31:36 +0000 (22:31 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Thu, 5 May 2005 22:31:36 +0000 (22:31 +0000)
src/xmenu.c

index 392d48d2484884da507b62b97093d97bf572d026..085bdfd139d7d318efe15d68cc1e1cad4440266a 100644 (file)
@@ -767,7 +767,14 @@ in the menu.
 With this form of menu, the return value is VALUE from the chosen item.
 
 If POSITION is nil, don't display the menu at all, just precalculate the
-cached information about equivalent key sequences.  */)
+cached information about equivalent key sequences.
+
+If the user gets rid of the menu without making a valid choice, for
+instance by clicking the mouse away from a valid choice or by typing
+keyboard input, then this normally results in a quit and
+`x-popup-menu' does not return.  But if POSITION is a mouse button
+event (indicating that the user invoked the menu with the mouse) then
+no quit occurs and `x-popup-menu' returns nil.  */)
      (position, menu)
      Lisp_Object position, menu;
 {
@@ -1005,7 +1012,11 @@ The return value is VALUE from the chosen item.
 An ITEM may also be just a string--that makes a nonselectable item.
 An ITEM may also be nil--that means to put all preceding items
 on the left of the dialog box and all following items on the right.
-\(By default, approximately half appear on each side.)  */)
+\(By default, approximately half appear on each side.)
+
+If the user gets rid of the dialog box without making a valid choice,
+for instance using the window manager, then this produces a quit and
+`x-popup-dialog' does not return.  */)
      (position, contents)
      Lisp_Object position, contents;
 {