]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fy_or_n_p, Fyes_or_no_p): Test HAVE_X_MENU.
authorKarl Heuer <kwzh@gnu.org>
Wed, 13 Apr 1994 18:00:37 +0000 (18:00 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 13 Apr 1994 18:00:37 +0000 (18:00 +0000)
src/fns.c

index fbed621b27676b88205bd6192b8c8c1538c0e79a..6a8f6fcf1ba1a87237d9c2e1c99d29734c7f5e35 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -1130,6 +1130,7 @@ Also accepts Space to mean yes, or Delete to mean no.")
 
   while (1)
     {
+#ifdef HAVE_X_MENU
       if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
        {
          Lisp_Object pane, menu;
@@ -1141,16 +1142,14 @@ Also accepts Space to mean yes, or Delete to mean no.")
          answer = !NILP (obj);
          break;
        }
-      else
-       {
-         cursor_in_echo_area = 1;
-         message ("%s(y or n) ", XSTRING (xprompt)->data);
+#endif
+      cursor_in_echo_area = 1;
+      message ("%s(y or n) ", XSTRING (xprompt)->data);
 
-         obj = read_filtered_event (1, 0, 0);
-         cursor_in_echo_area = 0;
-         /* If we need to quit, quit with cursor_in_echo_area = 0.  */
-         QUIT;
-       }
+      obj = read_filtered_event (1, 0, 0);
+      cursor_in_echo_area = 0;
+      /* If we need to quit, quit with cursor_in_echo_area = 0.  */
+      QUIT;
 
       key = Fmake_vector (make_number (1), obj);
       def = Flookup_key (map, key);
@@ -1232,6 +1231,7 @@ and can edit it until it as been confirmed.")
 
   CHECK_STRING (prompt, 0);
 
+#ifdef HAVE_X_MENU
   if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
     {
       Lisp_Object pane, menu, obj;
@@ -1244,6 +1244,7 @@ and can edit it until it as been confirmed.")
       UNGCPRO;
       return obj;
     }
+#endif
 
   args[0] = prompt;
   args[1] = build_string ("(yes or no) ");