changeset 51997:7f2fcfb45bf7

(Selecting Windows): save-selected-window saves selected window of each frame. (Window Configurations): Minor change.
author Richard M. Stallman <rms@gnu.org>
date Tue, 22 Jul 2003 15:22:12 +0000
parents 92cbf13e04cf
children 3d0217ad97db
files lispref/windows.texi
diffstat 1 files changed, 8 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/windows.texi	Tue Jul 22 15:21:10 2003 +0000
+++ b/lispref/windows.texi	Tue Jul 22 15:22:12 2003 +0000
@@ -422,18 +422,14 @@
 @end defun
 
 @defmac save-selected-window forms@dots{}
-This macro records the selected window, executes @var{forms}
-in sequence, then restores the earlier selected window (unless that
-window is no longer alive).
+This macro records the selected window of eac frame, executes
+@var{forms} in sequence, then restores the earlier selected windows.
 
-This macro does not save or restore anything about the sizes, arrangement
-or contents of windows; therefore, if the @var{forms} change them,
-the change persists.
-
-Each frame, at any time, has a window selected within the frame.  This
-macro saves only @emph{the} selected window; it does not save anything
-about other frames.  If the @var{forms} select some other frame and
-alter the window selected within it, the change persists.
+This macro does not save or restore anything about the sizes,
+arrangement or contents of windows; therefore, if the @var{forms}
+change them, the change persists.  If the previously selected window
+of some frame is no longer live at the time of exit from this form,
+that frame's selected window is left alone.
 @end defmac
 
 @defmac with-selected-window window forms@dots{}
@@ -2083,7 +2079,7 @@
 However, it does not include the value of point in the current buffer;
 use @code{save-excursion} also, if you wish to preserve that.
 
-Don't use this construct when @code{save-selected-window} is all you need.
+Don't use this construct when @code{save-selected-window} is sufficient.
 
 Exit from @code{save-window-excursion} always triggers execution of the
 @code{window-size-change-functions}.  (It doesn't know how to tell