Mercurial > emacs
changeset 7790:75153e2d5d85
(Fy_or_n_p): Don't use dialog box if not an X frame.
(Fyes_or_no_p): Likewise.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 05 Jun 1994 11:55:23 +0000 |
parents | e974be06f4f7 |
children | 2b4e4a76468b |
files | src/fns.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fns.c Sun Jun 05 11:43:26 1994 +0000 +++ b/src/fns.c Sun Jun 05 11:55:23 1994 +0000 @@ -1132,7 +1132,8 @@ 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 @@ 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),