diff options
| author | Richard M. Stallman | 1996-11-11 20:32:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-11-11 20:32:48 +0000 |
| commit | 2d8e7e1f13d0f5deb71bbb421a7b20de53b31db2 (patch) | |
| tree | 48bdc13021c7597e3c4e09b69cd2650a9cdd3829 /src/fns.c | |
| parent | 9afd2168d4b157e9249c082ab9e07fca4594e92f (diff) | |
| download | emacs-2d8e7e1f13d0f5deb71bbb421a7b20de53b31db2.tar.gz emacs-2d8e7e1f13d0f5deb71bbb421a7b20de53b31db2.zip | |
Include frame.h and window.h.
(Fy_or_n_p): Handle minibuffer_auto_raise here.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -32,6 +32,8 @@ Boston, MA 02111-1307, USA. */ | |||
| 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 |
| @@ -39,6 +41,9 @@ Boston, MA 02111-1307, USA. */ | |||
| 39 | 41 | ||
| 40 | extern Lisp_Object Flookup_key (); | 42 | extern Lisp_Object Flookup_key (); |
| 41 | 43 | ||
| 44 | extern int minibuffer_auto_raise; | ||
| 45 | extern Lisp_Object minibuf_window; | ||
| 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; |
| @@ -1612,6 +1617,15 @@ Also accepts Space to mean yes, or Delete to mean no.") | |||
| 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); |
| 1614 | 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 | } | ||
| 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. */ |