Function: previous-frame

previous-frame is a function defined in frame.c.

Signature

(previous-frame &optional FRAME MINIFRAME)

Documentation

Return the previous frame in the frame list before 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 previous frame is found.

View in manual

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 prev_frame (frame, miniframe);
}