Function: select-frame
select-frame is an interactive function defined in frame.c.
Signature
(select-frame FRAME &optional NORECORD)
Documentation
Select FRAME.
Subsequent editing commands apply to its selected window. Optional argument NORECORD means to neither change the order of recently selected windows nor the buffer list.
The selection of FRAME lasts until the next time the user does something to select a different frame, or until the next time this function is called. If you are using a window system, the previously selected frame may be restored as the selected frame when returning to the command loop, because it still may have the window system's input focus. On a text terminal, the next redisplay will display FRAME.
This function returns FRAME, or nil if FRAME has been deleted.
Probably introduced at or before Emacs version 19.29.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
struct frame *f;
CHECK_LIVE_FRAME (frame);
f = XFRAME (frame);
if (FRAME_TOOLTIP_P (f))
/* Do not select a tooltip frame (Bug#47207). */
error ("Cannot select a tooltip frame");
else
return do_switch_frame (frame, 1, 0, norecord);
}