From 0ef68e8a27a67c430d2b2fed10cc43075b9c58f2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 26 Dec 1995 04:34:05 +0000 Subject: [PATCH] (Fy_or_n_p, Fyes_or_no_p): using_x_p renamed to have_menus_p. HAVE_X_MENU renamed to HAVE_MENUS. --- src/fns.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fns.c b/src/fns.c index 7474fc3b380..b133967a7ac 100644 --- a/src/fns.c +++ b/src/fns.c @@ -1568,9 +1568,9 @@ Also accepts Space to mean yes, or Delete to mean no.") while (1) { -#if defined (HAVE_X_MENU) || defined (HAVE_NTGUI) +#ifdef HAVE_MENUS if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) - && using_x_p ()) + && have_menus_p ()) { Lisp_Object pane, menu; redisplay_preserve_echo_area (); @@ -1582,7 +1582,7 @@ Also accepts Space to mean yes, or Delete to mean no.") answer = !NILP (obj); break; } -#endif +#endif /* HAVE_MENUS */ cursor_in_echo_area = 1; message_nolog ("%s(y or n) ", XSTRING (xprompt)->data); @@ -1676,9 +1676,9 @@ and can edit it until it has been confirmed.") CHECK_STRING (prompt, 0); -#if defined (HAVE_X_MENU) || defined (HAVE_NTGUI) +#ifdef HAVE_MENUS if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) - && using_x_p ()) + && have_menus_p ()) { Lisp_Object pane, menu, obj; redisplay_preserve_echo_area (); @@ -1691,7 +1691,7 @@ and can edit it until it has been confirmed.") UNGCPRO; return obj; } -#endif +#endif /* HAVE_MENUS */ args[0] = prompt; args[1] = build_string ("(yes or no) "); -- 2.39.2