# HG changeset patch # User Luc Teirlinck # Date 1089677308 0 # Node ID 78189fca7611f017ae06b887204b1e84b2d99585 # Parent 1529ab7bab88356718a9bb880a37347d3efe0eb4 (with-selected-window): Doc fix. diff -r 1529ab7bab88 -r 78189fca7611 lisp/subr.el --- a/lisp/subr.el Mon Jul 12 14:35:53 2004 +0000 +++ b/lisp/subr.el Tue Jul 13 00:08:28 2004 +0000 @@ -1799,6 +1799,12 @@ "Execute the forms in BODY with WINDOW as the selected window. The value returned is the value of the last form in BODY. This does not alter the buffer list ordering. +This function saves and restores the selected window, as well as +the selected window in each frame. If the previously selected +window of some frame is no longer live at the end of BODY, that +frame's selected window is left alone. If the selected window is +no longer live, then whatever window is selected at the end of +BODY remains selected. See also `with-temp-buffer'." (declare (indent 1) (debug t)) ;; Most of this code is a copy of save-selected-window.