# HG changeset patch # User Richard M. Stallman # Date 810058815 0 # Node ID bca5676d8cb94418319d8276019867ae537e6f7a # Parent 180f04639e710a00b1dcea2a21fa9bb8f76be226 [!MULTI_FRAME] (Factive_minibuffer_window): New function. [!MULTI_FRAME] (syms_of_frame): defsubr it. diff -r 180f04639e71 -r bca5676d8cb9 src/frame.c --- a/src/frame.c Sat Sep 02 16:18:26 1995 +0000 +++ b/src/frame.c Sat Sep 02 16:20:15 1995 +0000 @@ -2091,6 +2091,16 @@ return tem; } +DEFUN ("active-minibuffer-window", Factive_minibuffer_window, + Sactive_minibuffer_window, 0, 0, 0, + /* Don't confuse make-docfile by having two doc strings for this function. + make-docfile does not pay attention to #if, for good reason! */ + 0) + () +{ + return minibuf_level ? minibuf_window : Qnil; +} + DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, /* Don't confuse make-docfile by having two doc strings for this function. make-docfile does not pay attention to #if, for good reason! */ @@ -2429,6 +2439,7 @@ XSETFASTINT (Vterminal_frame, 0); defsubr (&Sselected_frame); + defsubr (&Sactive_minibuffer_window); defsubr (&Swindow_frame); defsubr (&Sframe_first_window); defsubr (&Sframep);