frame-listreturns a list of all the live frames, i.e. those that have not been deleted. It is analogous to
buffer-listfor buffers, and includes frames on all terminals. The list that you get is newly created, so modifying the list doesn't have any effect on the internals of Emacs.
This function returns a list of just the currently visible frames. See Visibility of Frames. (Terminal frames always count as “visible,” even though only the selected one is actually displayed.)
next-framelets you cycle conveniently through all the frames on the current display from an arbitrary starting point. It returns the “next” frame after frame in the cycle. If frame is omitted or
nil, it defaults to the selected frame (see Input Focus).
The second argument, minibuf, says which frames to consider:
- Exclude minibuffer-only frames.
- Consider all visible frames.
- Consider all visible or iconified frames.
- a window
- Consider only the frames using that particular window as their minibuffer.
- anything else
- Consider all frames.
next-frame, but cycles through all frames in the opposite direction.
previous-window, in Cyclic Window Ordering.