Mercurial > emacs
comparison src/fns.c @ 16561:55fcbbf28987
Include frame.h and window.h.
(Fy_or_n_p): Handle minibuffer_auto_raise here.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 11 Nov 1996 20:32:48 +0000 |
parents | 1712db4a1709 |
children | 591b7a95d7a5 |
comparison
equal
deleted
inserted
replaced
16560:8b1dd6f2222d | 16561:55fcbbf28987 |
---|---|
30 #include "commands.h" | 30 #include "commands.h" |
31 | 31 |
32 #include "buffer.h" | 32 #include "buffer.h" |
33 #include "keyboard.h" | 33 #include "keyboard.h" |
34 #include "intervals.h" | 34 #include "intervals.h" |
35 #include "frame.h" | |
36 #include "window.h" | |
35 | 37 |
36 #ifndef NULL | 38 #ifndef NULL |
37 #define NULL (void *)0 | 39 #define NULL (void *)0 |
38 #endif | 40 #endif |
39 | 41 |
40 extern Lisp_Object Flookup_key (); | 42 extern Lisp_Object Flookup_key (); |
43 | |
44 extern int minibuffer_auto_raise; | |
45 extern Lisp_Object minibuf_window; | |
41 | 46 |
42 Lisp_Object Qstring_lessp, Qprovide, Qrequire; | 47 Lisp_Object Qstring_lessp, Qprovide, Qrequire; |
43 Lisp_Object Qyes_or_no_p_history; | 48 Lisp_Object Qyes_or_no_p_history; |
44 Lisp_Object Qcursor_in_echo_area; | 49 Lisp_Object Qcursor_in_echo_area; |
45 | 50 |
1609 } | 1614 } |
1610 #endif /* HAVE_MENUS */ | 1615 #endif /* HAVE_MENUS */ |
1611 cursor_in_echo_area = 1; | 1616 cursor_in_echo_area = 1; |
1612 choose_minibuf_frame (); | 1617 choose_minibuf_frame (); |
1613 message_nolog ("%s(y or n) ", XSTRING (xprompt)->data); | 1618 message_nolog ("%s(y or n) ", XSTRING (xprompt)->data); |
1619 | |
1620 if (minibuffer_auto_raise) | |
1621 { | |
1622 Lisp_Object mini_frame; | |
1623 | |
1624 mini_frame = WINDOW_FRAME (XWINDOW (minibuf_window)); | |
1625 | |
1626 Fraise_frame (mini_frame); | |
1627 } | |
1614 | 1628 |
1615 obj = read_filtered_event (1, 0, 0); | 1629 obj = read_filtered_event (1, 0, 0); |
1616 cursor_in_echo_area = 0; | 1630 cursor_in_echo_area = 0; |
1617 /* If we need to quit, quit with cursor_in_echo_area = 0. */ | 1631 /* If we need to quit, quit with cursor_in_echo_area = 0. */ |
1618 QUIT; | 1632 QUIT; |