]> git.eshelyaron.com Git - emacs.git/commitdiff
Document `with-selected-frame'
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Jun 2021 07:41:40 +0000 (09:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Jun 2021 07:41:40 +0000 (09:41 +0200)
* doc/lispref/windows.texi (Selecting Windows): Document
`with-selected-frame' (bug#12075).

doc/lispref/windows.texi

index 82d2ce4757be615cbb3de236cadc33d36ae1de6f..44656c057a3f64f123ad7c68fa0d63beb1c970ae 100644 (file)
@@ -1838,6 +1838,14 @@ with @var{window} as the selected window without needlessly running
 @code{buffer-list-update-hook}.
 @end defmac
 
+@defmac with-selected-frame frame forms@dots{}
+This macro executes @var{forms} with @var{frame} as the selected
+frame.  The value returned is the value of the last form in
+@var{forms}.  This macro saves and restores the selected frame, and
+changes the order of neither the recently selected windows nor the
+buffers in the buffer list.
+@end defmac
+
 @defun frame-selected-window &optional frame
 This function returns the window on @var{frame} that is selected
 within that frame.  @var{frame} should be a live frame; if omitted or