summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-09-02 16:20:15 +0000
committerRichard M. Stallman <rms@gnu.org>1995-09-02 16:20:15 +0000
commitda434a56e1fdc79d16478091561d0fc194983cd8 (patch)
treeb786aab321bd790900fa60ded5a95d1c387ce380 /src
parent07fc727b54335816bf1b1a58b24ff28b6a7c4e73 (diff)
downloademacs-da434a56e1fdc79d16478091561d0fc194983cd8.tar.gz
[!MULTI_FRAME] (Factive_minibuffer_window): New function.
[!MULTI_FRAME] (syms_of_frame): defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 11a0d58c919..304fe8a879a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2091,6 +2091,16 @@ DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0,
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 @@ syms_of_frame ()
XSETFASTINT (Vterminal_frame, 0);
defsubr (&Sselected_frame);
+ defsubr (&Sactive_minibuffer_window);
defsubr (&Swindow_frame);
defsubr (&Sframe_first_window);
defsubr (&Sframep);