The following commands are used to delete and operate on frames:
delete-frame). This signals an error if there is only one frame.
suspend-frame). See Exiting.
Note that with some window managers you may have to customize the
frame-resize-pixelwise to a non-
nil value in
order to make a frame truly maximized or full-screen. This
variable, when set to a non-
nil value, in general allows
resizing frames at pixel resolution, rather than in integral multiples
of lines and columns.
The C-x 5 0 (
delete-frame) command deletes the selected
frame. However, it will refuse to delete the last frame in an Emacs
session, to prevent you from losing the ability to interact with the
Emacs session. Note that when Emacs is run as a daemon (see Emacs Server), there is always a virtual frame that remains after all
the ordinary, interactive frames are deleted. In this case, C-x
5 0 can delete the last interactive frame; you can use
emacsclient to reconnect to the Emacs session.
The C-x 5 1 (
delete-other-frames) command deletes all
other frames on the current terminal (this terminal refers to either a
graphical display, or a text terminal; see Non-Window Terminals).
If the Emacs session has frames open on other graphical displays or
text terminals, those are not deleted.
The C-x 5 o (
other-frame) command selects the next
frame on the current terminal. If you are using Emacs on the X Window
System with a window manager that selects (or gives focus to)
whatever frame the mouse cursor is over, you have to change the
t in order for this
command to work properly. Then invoking C-x 5 o will also warp
the mouse cursor to the chosen frame.