# delete-window(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

delete-window - Delete the current window
delete-other-windows - Delete other windows

## SYNOPSIS

n delete-window (C-x 0)
n delete-other-windows (C-x 1)

## DESCRIPTION

delete-window attempts to delete the current window (remove window from the screen), retrieving the lines for use in the window adjacent to it. The command fails if there is no other window or if the current window is protected from deletion (see $window-flags(5)). The deletion protection can be overridden by giving the command a numerical argument n of 2.

The window deletion policy is determined by the formation of the windows displayed on the screen. The bias is for the previous window (above) the current window to be merged when split vertically, and for the left window to be merged when split horizontally.

delete-other-windows deletes all of the other windows, the current window becomes the only window, using the entire available screen area. Windows can be protected from deletion by using the $window-flags variable, giving the command a numerical argument n of 2 overrides this protection.

## SEE ALSO

set-position(2), grow-window-vertically(2), resize-window-vertically(2), split-window-horizontally(2), split-window-vertically(2), $window-flags(5).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>