@end defun
@cindex window in direction
-@defun window-in-direction direction &optional window ignore sign wrap mini
+@defun window-in-direction direction &optional window ignore sign wrap minibuf
This function returns the nearest live window in direction
@var{direction} as seen from the position of @code{window-point} in
window @var{window}. The argument @var{direction} must be one of
this function usually returns the frame's minibuffer window if it's
active and a window at the bottom of the frame otherwise.
-If the optional argument @var{mini} is @code{nil}, this means to return
-the minibuffer window if and only if it is currently active. If
-@var{mini} is non-@code{nil}, this function may return the minibuffer
-window even when it's not active. However, if @var{wrap} is
-non-@code{nil}, it always acts as if @var{mini} were @code{nil}.
+If the optional argument @var{minibuf} is @code{t}, this function may
+return the minibuffer window even when it's not active. If the
+optional argument @var{minibuf} is @code{nil}, this means to return
+the minibuffer window if and only if it is currently active.
+If @var{minibuf} is neither @code{nil} nor @code{t}, this function
+never returns the minibuffer window. However, if @var{wrap} is
+non-@code{nil}, it always acts as if @var{minibuf} were @code{nil}.
If it doesn't find a suitable window, this function returns
@code{nil}.