From: Richard M. Stallman Date: Sun, 5 Jun 1994 11:55:23 +0000 (+0000) Subject: (Fy_or_n_p): Don't use dialog box if not an X frame. X-Git-Tag: emacs-19.34~8063 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=588064ce4ea9da3943a19342934de0c25bd4bb62;p=emacs.git (Fy_or_n_p): Don't use dialog box if not an X frame. (Fyes_or_no_p): Likewise. --- 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.") while (1) { #ifdef HAVE_X_MENU - if (NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) + if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) + && using_x_p ()) { Lisp_Object pane, menu; pane = Fcons (Fcons (build_string ("Yes"), Qt), @@ -1233,7 +1234,8 @@ 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)) + if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) + && using_x_p ()) { Lisp_Object pane, menu, obj; pane = Fcons (Fcons (build_string ("Yes"), Qt),