mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-08 08:43:52 -08:00
(Fy_or_n_p, Fyes_or_no_p): using_x_p renamed to have_menus_p.
HAVE_X_MENU renamed to HAVE_MENUS.
This commit is contained in:
parent
1f0af748ca
commit
0ef68e8a27
1 changed files with 6 additions and 6 deletions
12
src/fns.c
12
src/fns.c
|
|
@ -1568,9 +1568,9 @@ Also accepts Space to mean yes, or Delete to mean no.")
|
|||
|
||||
while (1)
|
||||
{
|
||||
#if defined (HAVE_X_MENU) || defined (HAVE_NTGUI)
|
||||
#ifdef HAVE_MENUS
|
||||
if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
|
||||
&& using_x_p ())
|
||||
&& have_menus_p ())
|
||||
{
|
||||
Lisp_Object pane, menu;
|
||||
redisplay_preserve_echo_area ();
|
||||
|
|
@ -1582,7 +1582,7 @@ Also accepts Space to mean yes, or Delete to mean no.")
|
|||
answer = !NILP (obj);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#endif /* HAVE_MENUS */
|
||||
cursor_in_echo_area = 1;
|
||||
message_nolog ("%s(y or n) ", XSTRING (xprompt)->data);
|
||||
|
||||
|
|
@ -1676,9 +1676,9 @@ and can edit it until it has been confirmed.")
|
|||
|
||||
CHECK_STRING (prompt, 0);
|
||||
|
||||
#if defined (HAVE_X_MENU) || defined (HAVE_NTGUI)
|
||||
#ifdef HAVE_MENUS
|
||||
if ((NILP (last_nonmenu_event) || CONSP (last_nonmenu_event))
|
||||
&& using_x_p ())
|
||||
&& have_menus_p ())
|
||||
{
|
||||
Lisp_Object pane, menu, obj;
|
||||
redisplay_preserve_echo_area ();
|
||||
|
|
@ -1691,7 +1691,7 @@ and can edit it until it has been confirmed.")
|
|||
UNGCPRO;
|
||||
return obj;
|
||||
}
|
||||
#endif
|
||||
#endif /* HAVE_MENUS */
|
||||
|
||||
args[0] = prompt;
|
||||
args[1] = build_string ("(yes or no) ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue