Function: next-frame
next-frame is a function defined in frame.c.
Signature
(next-frame &optional FRAME MINIFRAME)
Documentation
Return the next frame in the frame list after FRAME.
Only frames on the same terminal as FRAME are included in the list of candidate frames. FRAME defaults to the selected frame.
If MINIFRAME is nil (the default), include all frames except minibuffer-only frames.
If MINIFRAME is a window, include only its own frame and any frame now using that window as the minibuffer.
If MINIFRAME is visible, include only visible frames.
If MINIFRAME is 0, include only visible and iconified frames.
If MINIFRAME is any other value, include all frames.
Return FRAME if no suitable next frame is found.
Probably introduced at or before Emacs version 19.18.
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
if (NILP (frame))
frame = selected_frame;
CHECK_LIVE_FRAME (frame);
return next_frame (frame, miniframe);
}