From: Richard M. Stallman Date: Mon, 29 Dec 2003 20:58:40 +0000 (+0000) Subject: (Frames and Windows): Add set-frame-selected-window and frame-root-window. X-Git-Tag: ttn-vms-21-2-B4~8065 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0c10c5de42ae41fad92880817bfb8b6e43e4bcbe;p=emacs.git (Frames and Windows): Add set-frame-selected-window and frame-root-window. --- diff --git a/lispref/frames.texi b/lispref/frames.texi index 76b4228cc4f..ec3c1c6dc7c 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi @@ -921,11 +921,22 @@ selected window with @code{frame-selected-window}. @defun frame-selected-window frame This function returns the window on @var{frame} that is selected within @var{frame}. +@end defun + +@defun set-frame-selected-window frame window +This sets the selected window of frame @var{frame} to @var{window}. +If @var{frame} is @code{nil}, it operates on the selected frame. If +@var{frame} is the selected frame, this makes @var{window} the +selected window. @end defun Conversely, selecting a window for Emacs with @code{select-window} also makes that window selected within its frame. @xref{Selecting Windows}. +@defun frame-root-window frame +This function returns the window at the top left corner of @var{frame}. +@end defun + Another function that (usually) returns one of the windows in a given frame is @code{minibuffer-window}. @xref{Minibuffer Misc}.