aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKim F. Storm2002-03-01 23:50:12 +0000
committerKim F. Storm2002-03-01 23:50:12 +0000
commitfa832261257b6bc26fe147cc75da19e4e7c83842 (patch)
treea84a680ada121b177a358b5d2c9dd1b701b3df1f /src/window.c
parentee57fd915c9a79f2e9d24f3479f091ee7a638ecd (diff)
downloademacs-fa832261257b6bc26fe147cc75da19e4e7c83842.tar.gz
emacs-fa832261257b6bc26fe147cc75da19e4e7c83842.zip
(Fminibuffer_selected_window): New function.
(syms_of_window): Defsubr it.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index d1cccd7204f..9dc070bc498 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4549,6 +4549,20 @@ by this function. */)
4549 return result; 4549 return result;
4550} 4550}
4551 4551
4552DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0,
4553 doc: /* Return the window which was selected when entering the minibuffer.
4554Returns nil, if current window is not a minibuffer window. */)
4555 ()
4556{
4557 if (minibuf_level > 0
4558 && MINI_WINDOW_P (XWINDOW (selected_window))
4559 && !NILP (minibuf_selected_window)
4560 && WINDOW_LIVE_P (minibuf_selected_window))
4561 return minibuf_selected_window;
4562
4563 return Qnil;
4564}
4565
4552/* Value is the number of lines actually displayed in window W, 4566/* Value is the number of lines actually displayed in window W,
4553 as opposed to its height. */ 4567 as opposed to its height. */
4554 4568
@@ -6012,6 +6026,7 @@ This variable automatically becomes buffer-local when set. */);
6012 defsubr (&Sscroll_right); 6026 defsubr (&Sscroll_right);
6013 defsubr (&Sother_window_for_scrolling); 6027 defsubr (&Sother_window_for_scrolling);
6014 defsubr (&Sscroll_other_window); 6028 defsubr (&Sscroll_other_window);
6029 defsubr (&Sminibuffer_selected_window);
6015 defsubr (&Srecenter); 6030 defsubr (&Srecenter);
6016 defsubr (&Swindow_text_height); 6031 defsubr (&Swindow_text_height);
6017 defsubr (&Smove_to_window_line); 6032 defsubr (&Smove_to_window_line);