# HG changeset patch # User Richard M. Stallman # Date 1072731520 0 # Node ID adae6745b4c948edd42e1b631fe7982b867dfb36 # Parent bd30a9882e319f2c19b805193c5b9f2439d0f796 (Frames and Windows): Add set-frame-selected-window and frame-root-window. diff -r bd30a9882e31 -r adae6745b4c9 lispref/frames.texi --- a/lispref/frames.texi Mon Dec 29 20:28:40 2003 +0000 +++ b/lispref/frames.texi Mon Dec 29 20:58:40 2003 +0000 @@ -923,9 +923,20 @@ @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}.