Previous: , Up: Maximizing Windows   [Contents][Index]


8.14.4 Unmaximizing

One command restores windows from all the different types of maximization.

Function: unmaximize-window window #!optional direction
Command: unmaximize-window window

Restore the position and dimensions of window to their original, unmaximized, states.

If the window is maximized for example vertically but not horizontally, then only vertical position and dimension are restored.

If defined, direction is a symbol, either vertical or horizontal, and unmaximization will only occur for that direction.

Function: window-unmaximized-position window

Returns a cons-cell (x . y) indicating the position that the window would unmaximize to.

If the window is maximized for example vertically but not horizontally, then y is the y coordinate before maximization, but x is the window’s current x coordinate.

Function: window-unmaximized-dimensions window

Returns a cons-cell (w . h) indicating the dimensions that window would unmaximize to.

If the window is maximized for example vertically but not horizontally, then y is the height before maximization, but x is the window’s current width.

Function: maximize-discard window #!optional direction

Don’t treat window as maximized any more, keeping the size and the position. You’ll be able to move and resize, but won’t be able to unmaximize.

If the optional argument ‘direction’ is ‘vertical’ or ‘horizontal’, then only that direction is unmaximized.

When window is not maximized, nothing happens.