comparison man/lispref/windows.texi @ 290:c9fe270a4101 r21-0b43

Import from CVS: tag r21-0b43
author cvs
date Mon, 13 Aug 2007 10:36:47 +0200
parents 7df0dd720c89
children 6cb5e14cd98e
comparison
equal deleted inserted replaced
289:6e6992ccc4b6 290:c9fe270a4101
1659 (enlarge-window columns t)) 1659 (enlarge-window columns t))
1660 @end group 1660 @end group
1661 @end example 1661 @end example
1662 @end deffn 1662 @end deffn
1663 1663
1664 @deffn Command enlarge-window-pixels count &optional side window
1665 This function makes the selected window @var{count} pixels larger. When
1666 called from Lisp, optional second argument @var{side} non-@code{nil}
1667 means to grow sideways @var{count} pixels, and optional third argument
1668 @var{window} specifies the window to change instead of the selected
1669 window.
1670 @end deffn
1671
1664 @deffn Command shrink-window size &optional horizontal 1672 @deffn Command shrink-window size &optional horizontal
1665 This function is like @code{enlarge-window} but negates the argument 1673 This function is like @code{enlarge-window} but negates the argument
1666 @var{size}, making the selected window smaller by giving lines (or 1674 @var{size}, making the selected window smaller by giving lines (or
1667 columns) to the other windows. If the window shrinks below 1675 columns) to the other windows. If the window shrinks below
1668 @code{window-min-height} or @code{window-min-width}, then it disappears. 1676 @code{window-min-height} or @code{window-min-width}, then it disappears.
1679 @group 1687 @group
1680 (defun shrink-window-horizontally (columns) 1688 (defun shrink-window-horizontally (columns)
1681 (shrink-window columns t)) 1689 (shrink-window columns t))
1682 @end group 1690 @end group
1683 @end example 1691 @end example
1692 @end deffn
1693
1694 @deffn Command shrink-window-pixels count &optional side window
1695 This function makes the selected window @var{count} pixels smaller.
1696 When called from Lisp, optional second argument @var{side}
1697 non-@code{nil} means to shrink sideways @var{count} pixels, and optional
1698 third argument @var{window} specifies the window to change instead of
1699 the selected window.
1684 @end deffn 1700 @end deffn
1685 1701
1686 @cindex minimum window size 1702 @cindex minimum window size
1687 The following two variables constrain the window-size-changing 1703 The following two variables constrain the window-size-changing
1688 functions to a minimum height and width. 1704 functions to a minimum height and width.
1703 @code{window-min-width} automatically deletes it, and no window may be 1719 @code{window-min-width} automatically deletes it, and no window may be
1704 created narrower than this. The absolute minimum width is one; any 1720 created narrower than this. The absolute minimum width is one; any
1705 value below that is ignored. The default value is 10. 1721 value below that is ignored. The default value is 10.
1706 @end defopt 1722 @end defopt
1707 1723
1724 @c This is not yet implemented. Why is it "documented"?
1708 @defvar window-size-change-functions 1725 @defvar window-size-change-functions
1709 This variable holds a list of functions to be called if the size of any 1726 This variable holds a list of functions to be called if the size of any
1710 window changes for any reason. The functions are called just once per 1727 window changes for any reason. The functions are called just once per
1711 redisplay, and just once for each frame on which size changes have 1728 redisplay, and just once for each frame on which size changes have
1712 occurred. 1729 occurred.