From: Eli Zaretskii Date: Sun, 29 Sep 2013 18:50:28 +0000 (+0300) Subject: Fixed x-popup-dialog. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1328^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f8551de937fbc95d4476d18ab1f1b986cfbf90e;p=emacs.git Fixed x-popup-dialog. --- diff --git a/src/fns.c b/src/fns.c index e4618919640..151977ecdc4 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2434,8 +2434,8 @@ a space; `yes-or-no-p' adds \"(yes or no) \" to it. The user must confirm the answer with RET, and can edit it until it has been confirmed. -Under a windowing system a dialog box will be used if `last-nonmenu-event' -is nil, and `use-dialog-box' is non-nil. */) +If dialog boxes are supported, a dialog box will be used +if `last-nonmenu-event' is nil, and `use-dialog-box' is non-nil. */) (Lisp_Object prompt) { register Lisp_Object ans; @@ -2446,8 +2446,7 @@ is nil, and `use-dialog-box' is non-nil. */) #ifdef HAVE_MENUS if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event)) - && use_dialog_box - && window_system_available (SELECTED_FRAME ())) + && use_dialog_box) { Lisp_Object pane, menu, obj; redisplay_preserve_echo_area (4);