mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-20 18:17:20 +00:00
(Fy_or_n_p): Don't use dialog box if not an X frame.
(Fyes_or_no_p): Likewise.
This commit is contained in:
parent
42b31bf937
commit
588064ce4e
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user