Mercurial > emacs
changeset 53426:adae6745b4c9
(Frames and Windows): Add set-frame-selected-window and frame-root-window.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 29 Dec 2003 20:58:40 +0000 |
parents | bd30a9882e31 |
children | ee086521a92a |
files | lispref/frames.texi |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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}.