# HG changeset patch # User Richard M. Stallman # Date 825893273 0 # Node ID 9f9c4d4581e4cf83b99cbb085b09c6ff20469f8c # Parent 0e3add8490d04b0ec2a7975f2b0390a260fdf68c Put most of file into HAVE_MENUS conditional. (Fx_popup_menu): Put parts into HAVE_MENUS conditionals. diff -r 0e3add8490d0 -r 9f9c4d4581e4 src/xmenu.c --- a/src/xmenu.c Sun Mar 03 22:34:21 1996 +0000 +++ b/src/xmenu.c Sun Mar 03 22:47:53 1996 +0000 @@ -771,6 +771,7 @@ int for_click = 0; struct gcpro gcpro1; +#ifdef HAVE_MENUS if (! NILP (position)) { check_x (); @@ -844,6 +845,7 @@ xpos += XINT (x); ypos += XINT (y); } +#endif /* HAVE_MENUS */ title = Qnil; GCPRO1 (title); @@ -923,6 +925,7 @@ return Qnil; } +#ifdef HAVE_MENUS /* Display them in a menu. */ BLOCK_INPUT; @@ -933,11 +936,14 @@ discard_menu_items (); UNGCPRO; +#endif /* HAVE_MENUS */ if (error_name) error (error_name); return selection; } +#ifdef HAVE_MENUS + DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 2, 0, "Pop up a dialog box and return user's selection.\n\ POSITION specifies which frame to use.\n\ @@ -2631,6 +2637,8 @@ } #endif /* not USE_X_TOOLKIT */ + +#endif /* HAVE_MENUS */ syms_of_xmenu () { @@ -2646,5 +2654,7 @@ #endif defsubr (&Sx_popup_menu); +#ifdef HAVE_MENUS defsubr (&Sx_popup_dialog); +#endif }