aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c
index 3b16c5743c5..1589176485a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1132,7 +1132,8 @@ Also accepts Space to mean yes, or Delete to mean no.")
1132 while (1) 1132 while (1)
1133 { 1133 {
1134#ifdef HAVE_X_MENU 1134#ifdef HAVE_X_MENU
1135 if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 1135 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
1136 && using_x_p ())
1136 { 1137 {
1137 Lisp_Object pane, menu; 1138 Lisp_Object pane, menu;
1138 pane = Fcons (Fcons (build_string ("Yes"), Qt), 1139 pane = Fcons (Fcons (build_string ("Yes"), Qt),
@@ -1233,7 +1234,8 @@ and can edit it until it as been confirmed.")
1233 CHECK_STRING (prompt, 0); 1234 CHECK_STRING (prompt, 0);
1234 1235
1235#ifdef HAVE_X_MENU 1236#ifdef HAVE_X_MENU
1236 if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) 1237 if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
1238 && using_x_p ())
1237 { 1239 {
1238 Lisp_Object pane, menu, obj; 1240 Lisp_Object pane, menu, obj;
1239 pane = Fcons (Fcons (build_string ("Yes"), Qt), 1241 pane = Fcons (Fcons (build_string ("Yes"), Qt),