# change-window-depth(2)

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

## NAME

change-window-depth - Change the depth of the current window
grow-window-vertically - Enlarge the current window (relative change)
shrink-window-vertically - Shrink the current window (relative change)
resize-window-vertically - Resize the current window (absolute change)

## SYNOPSIS

n change-window-depth [ "depth" ]

n grow-window-vertically
n shrink-window-vertically
n resize-window-vertically

## DESCRIPTION

change-window-depth changes the depth of the current window, if the numeric argument n is given then the window depth is changed by n lines. If n is not specified the user is prompted for the new depth and the window depth will be changed to this value. The command aborts if the requested size cannot be achieved (the window becomes too small or a neighbouring one does).

## NOTES

Commands grow-window-vertically, shrink-window-vertically and resize-window-vertically were replaced by the new change-window-depth command in April 2002. Following are macro implementations of the old commands:

    define-macro grow-window-vertically
        @# change-window-depth
    !emacro

    define-macro shrink-window-vertically
        &neg @# change-window-depth
    !emacro

    define-macro resize-window-vertically
        !if &not @?
            !abort
        !endif
        change-window-depth @#
    !emacro

## SEE ALSO

change-window-width(2), resize-all-windows(2), split-window-vertically(2).

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

</HMTL>