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.

It considers only frames on the same terminal as FRAME. By default, skip minibuffer-only frames. If omitted, FRAME defaults to the selected frame. If optional argument MINIFRAME is nil, exclude 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 all visible frames. If MINIFRAME is 0, include all visible and iconified frames. Otherwise, include all frames.

Probably introduced at or before Emacs version 19.20.

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);
}