]> git.eshelyaron.com Git - emacs.git/commitdiff
(Selecting Windows): save-selected-window and with-selected-window
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 2005 14:08:34 +0000 (14:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Jun 2005 14:08:34 +0000 (14:08 +0000)
save and restore the current buffer.

lispref/windows.texi

index d9ecf5db7eb75fc121b0d2a02e3c43e969b027a7..5a58c31f39a5a1d0cfc2b87e4c694c54e2242490 100644 (file)
@@ -463,8 +463,8 @@ The return value is @var{window}.
 @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 @@ the end of @var{forms} remains selected.
 @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