changeset 63762:4a209946e3b1

(Selecting Windows): save-selected-window and with-selected-window save and restore the current buffer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 25 Jun 2005 14:08:34 +0000
parents f14d5e7e60e1
children 121f7f14ce00
files lispref/windows.texi
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/windows.texi	Sat Jun 25 14:04:18 2005 +0000
+++ b/lispref/windows.texi	Sat Jun 25 14:08:34 2005 +0000
@@ -463,8 +463,8 @@
 @defmac save-selected-window forms@dots{}
 This macro records the selected frame, as well as the selected window
 of each frame, executes @var{forms} in sequence, then restores the
-earlier selected frame and windows It returns the value of the last
-form in @var{forms}.
+earlier selected frame and windows.  It also saves and restores the
+current buffer.  It returns the value of the last form in @var{forms}.
 
 This macro does not save or restore anything about the sizes,
 arrangement or contents of windows; therefore, if the @var{forms}
@@ -478,9 +478,9 @@
 @defmac with-selected-window window forms@dots{}
 This macro selects @var{window} (without changing the buffer list),
 executes @var{forms} in sequence, then restores the previously
-selected window (unless that window is no longer alive).  It is similar
-to @code{save-selected-window} except that it explicitly selects
-@var{window}, without altering the buffer list sequence.
+selected window and current buffer.  It is just like
+@code{save-selected-window}, except that it explicitly selects
+@var{window}, also without altering the buffer list sequence.
 @end defmac
 
 @cindex finding windows