diff options
| author | Eli Zaretskii | 2012-04-20 09:27:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-04-20 09:27:11 +0300 |
| commit | 2116e93c7c258d37d56bfe2334708368217ae0fd (patch) | |
| tree | eb8a1c4e86f0c2069547407dd7263cbae5a29988 | |
| parent | 5db6195faa9205a5c3cfde134cc312d3d3b95b46 (diff) | |
| download | emacs-2116e93c7c258d37d56bfe2334708368217ae0fd.tar.gz emacs-2116e93c7c258d37d56bfe2334708368217ae0fd.zip | |
Doc fixes in window.el functions.
lisp/window.el (window-min-size, window-sizable, window-min-delta)
(window-max-delta, window--resizable, window-resizable)
(window-total-size, window-full-height-p, window-full-width-p)
(window-in-direction, window--resize-mini-window, window-resize)
(window--resize-child-windows-normal)
(window--resize-child-windows, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(enlarge-window, shrink-window): Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/window.el | 137 |
2 files changed, 85 insertions, 63 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ce5e7fceea..cbdeb23b4e2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2012-04-20 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * window.el (window-min-size, window-sizable, window-min-delta) | ||
| 4 | (window-max-delta, window--resizable, window-resizable) | ||
| 5 | (window-total-size, window-full-height-p, window-full-width-p) | ||
| 6 | (window-in-direction, window--resize-mini-window, window-resize) | ||
| 7 | (window--resize-child-windows-normal) | ||
| 8 | (window--resize-child-windows, window--resize-siblings) | ||
| 9 | (window--resize-this-window, adjust-window-trailing-edge) | ||
| 10 | (enlarge-window, shrink-window): | ||
| 11 | |||
| 1 | 2012-04-19 Chong Yidong <cyd@gnu.org> | 12 | 2012-04-19 Chong Yidong <cyd@gnu.org> |
| 2 | 13 | ||
| 3 | * progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New | 14 | * progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New |
diff --git a/lisp/window.el b/lisp/window.el index c9e2469b0d2..28abec42680 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -514,17 +514,19 @@ window).") | |||
| 514 | (if (window-valid-p ignore) (eq window ignore) ignore)) | 514 | (if (window-valid-p ignore) (eq window ignore) ignore)) |
| 515 | 515 | ||
| 516 | (defun window-min-size (&optional window horizontal ignore) | 516 | (defun window-min-size (&optional window horizontal ignore) |
| 517 | "Return the minimum number of lines of WINDOW. | 517 | "Return the minimum size of WINDOW. |
| 518 | WINDOW can be an arbitrary window and defaults to the selected | 518 | WINDOW can be an arbitrary window and defaults to the selected |
| 519 | one. Optional argument HORIZONTAL non-nil means return the | 519 | one. Optional argument HORIZONTAL non-nil means return the |
| 520 | minimum number of columns of WINDOW. | 520 | minimum number of columns of WINDOW; otherwise return the minimum |
| 521 | number of WINDOW's lines. | ||
| 521 | 522 | ||
| 522 | Optional argument IGNORE non-nil means ignore any restrictions | 523 | Optional argument IGNORE, if non-nil, means ignore restrictions |
| 523 | imposed by fixed size windows, `window-min-height' or | 524 | imposed by fixed size windows, `window-min-height' or |
| 524 | `window-min-width' settings. IGNORE equal `safe' means live | 525 | `window-min-width' settings. If IGNORE equals `safe', live |
| 525 | windows may get as small as `window-safe-min-height' lines and | 526 | windows may get as small as `window-safe-min-height' lines and |
| 526 | `window-safe-min-width' columns. IGNORE a window means ignore | 527 | `window-safe-min-width' columns. If IGNORE is a window, ignore |
| 527 | restrictions for that window only." | 528 | restrictions for that window only. Any other non-nil value |
| 529 | means ignore all of the above restrictions for all windows." | ||
| 528 | (window--min-size-1 | 530 | (window--min-size-1 |
| 529 | (window-normalize-window window) horizontal ignore)) | 531 | (window-normalize-window window) horizontal ignore)) |
| 530 | 532 | ||
| @@ -614,12 +616,13 @@ columns. If WINDOW cannot be shrunk by -DELTA lines or columns, | |||
| 614 | return the minimum value in the range DELTA..0 by which WINDOW | 616 | return the minimum value in the range DELTA..0 by which WINDOW |
| 615 | can be shrunk. | 617 | can be shrunk. |
| 616 | 618 | ||
| 617 | Optional argument IGNORE non-nil means ignore any restrictions | 619 | Optional argument IGNORE non-nil means ignore restrictions |
| 618 | imposed by fixed size windows, `window-min-height' or | 620 | imposed by fixed size windows, `window-min-height' or |
| 619 | `window-min-width' settings. IGNORE equal `safe' means live | 621 | `window-min-width' settings. If IGNORE equals `safe', live |
| 620 | windows may get as small as `window-safe-min-height' lines and | 622 | windows may get as small as `window-safe-min-height' lines and |
| 621 | `window-safe-min-width' columns. IGNORE any window means ignore | 623 | `window-safe-min-width' columns. If IGNORE is a window, ignore |
| 622 | restrictions for that window only." | 624 | restrictions for that window only. Any other non-nil value means |
| 625 | ignore all of the above restrictions for all windows." | ||
| 623 | (setq window (window-normalize-window window)) | 626 | (setq window (window-normalize-window window)) |
| 624 | (cond | 627 | (cond |
| 625 | ((< delta 0) | 628 | ((< delta 0) |
| @@ -734,20 +737,21 @@ window. Return zero if WINDOW cannot be shrunk. | |||
| 734 | Optional argument HORIZONTAL non-nil means return number of | 737 | Optional argument HORIZONTAL non-nil means return number of |
| 735 | columns by which WINDOW can be shrunk. | 738 | columns by which WINDOW can be shrunk. |
| 736 | 739 | ||
| 737 | Optional argument IGNORE non-nil means ignore any restrictions | 740 | Optional argument IGNORE non-nil means ignore restrictions |
| 738 | imposed by fixed size windows, `window-min-height' or | 741 | imposed by fixed size windows, `window-min-height' or |
| 739 | `window-min-width' settings. IGNORE a window means ignore | 742 | `window-min-width' settings. If IGNORE is a window, ignore |
| 740 | restrictions for that window only. IGNORE equal `safe' means | 743 | restrictions for that window only. If IGNORE equals `safe', |
| 741 | live windows may get as small as `window-safe-min-height' lines | 744 | live windows may get as small as `window-safe-min-height' lines |
| 742 | and `window-safe-min-width' columns. | 745 | and `window-safe-min-width' columns. Any other non-nil value |
| 746 | means ignore all of the above restrictions for all windows. | ||
| 743 | 747 | ||
| 744 | Optional argument TRAIL `before' means only windows to the left | 748 | Optional argument TRAIL restricts the windows that can be enlarged. |
| 745 | of or above WINDOW can be enlarged. Optional argument TRAIL | 749 | If its value is `before', only windows to the left of or above WINDOW |
| 746 | `after' means only windows to the right of or below WINDOW can be | 750 | can be enlarged. If it is `after', only windows to the right of or |
| 747 | enlarged. | 751 | below WINDOW can be enlarged. |
| 748 | 752 | ||
| 749 | Optional argument NOUP non-nil means don't go up in the window | 753 | Optional argument NOUP non-nil means don't go up in the window |
| 750 | tree but try to enlarge windows within WINDOW's combination only. | 754 | tree, but try to enlarge windows within WINDOW's combination only. |
| 751 | 755 | ||
| 752 | Optional argument NODOWN non-nil means don't check whether WINDOW | 756 | Optional argument NODOWN non-nil means don't check whether WINDOW |
| 753 | itself (and its child windows) can be shrunk; check only whether | 757 | itself (and its child windows) can be shrunk; check only whether |
| @@ -808,24 +812,25 @@ at least one other window can be enlarged appropriately." | |||
| 808 | (window--max-delta-1 parent delta horizontal ignore trail)))))) | 812 | (window--max-delta-1 parent delta horizontal ignore trail)))))) |
| 809 | 813 | ||
| 810 | (defun window-max-delta (&optional window horizontal ignore trail noup nodown) | 814 | (defun window-max-delta (&optional window horizontal ignore trail noup nodown) |
| 811 | "Return maximum number of lines WINDOW by which WINDOW can be enlarged. | 815 | "Return maximum number of lines by which WINDOW can be enlarged. |
| 812 | WINDOW can be an arbitrary window and defaults to the selected | 816 | WINDOW can be an arbitrary window and defaults to the selected |
| 813 | window. The return value is zero if WINDOW cannot be enlarged. | 817 | window. The return value is zero if WINDOW cannot be enlarged. |
| 814 | 818 | ||
| 815 | Optional argument HORIZONTAL non-nil means return maximum number | 819 | Optional argument HORIZONTAL non-nil means return maximum number |
| 816 | of columns by which WINDOW can be enlarged. | 820 | of columns by which WINDOW can be enlarged. |
| 817 | 821 | ||
| 818 | Optional argument IGNORE non-nil means ignore any restrictions | 822 | Optional argument IGNORE non-nil means ignore restrictions |
| 819 | imposed by fixed size windows, `window-min-height' or | 823 | imposed by fixed size windows, `window-min-height' or |
| 820 | `window-min-width' settings. IGNORE a window means ignore | 824 | `window-min-width' settings. If IGNORE is a window, ignore |
| 821 | restrictions for that window only. IGNORE equal `safe' means | 825 | restrictions for that window only. If IGNORE equals `safe', |
| 822 | live windows may get as small as `window-safe-min-height' lines | 826 | live windows may get as small as `window-safe-min-height' lines |
| 823 | and `window-safe-min-width' columns. | 827 | and `window-safe-min-width' columns. Any other non-nil value means |
| 828 | ignore all of the above restrictions for all windows. | ||
| 824 | 829 | ||
| 825 | Optional argument TRAIL `before' means only windows to the left | 830 | Optional argument TRAIL restricts the windows that can be enlarged. |
| 826 | of or below WINDOW can be shrunk. Optional argument TRAIL | 831 | If its value is `before', only windows to the left of or above WINDOW |
| 827 | `after' means only windows to the right of or above WINDOW can be | 832 | can be enlarged. If it is `after', only windows to the right of or |
| 828 | shrunk. | 833 | below WINDOW can be enlarged. |
| 829 | 834 | ||
| 830 | Optional argument NOUP non-nil means don't go up in the window | 835 | Optional argument NOUP non-nil means don't go up in the window |
| 831 | tree but try to obtain the entire space from windows within | 836 | tree but try to obtain the entire space from windows within |
| @@ -860,12 +865,13 @@ columns. If WINDOW cannot be shrunk by -DELTA lines or columns, | |||
| 860 | return the minimum value in the range DELTA..0 that can be used | 865 | return the minimum value in the range DELTA..0 that can be used |
| 861 | for shrinking WINDOW. | 866 | for shrinking WINDOW. |
| 862 | 867 | ||
| 863 | Optional argument IGNORE non-nil means ignore any restrictions | 868 | Optional argument IGNORE non-nil means ignore restrictions |
| 864 | imposed by fixed size windows, `window-min-height' or | 869 | imposed by fixed size windows, `window-min-height' or |
| 865 | `window-min-width' settings. IGNORE a window means ignore | 870 | `window-min-width' settings. If IGNORE is a window, ignore |
| 866 | restrictions for that window only. IGNORE equal `safe' means | 871 | restrictions for that window only. If IGNORE equals `safe', |
| 867 | live windows may get as small as `window-safe-min-height' lines | 872 | live windows may get as small as `window-safe-min-height' lines |
| 868 | and `window-safe-min-width' columns. | 873 | and `window-safe-min-width' columns. Any other non-nil value |
| 874 | means ignore all of the above restrictions for all windows. | ||
| 869 | 875 | ||
| 870 | Optional argument TRAIL `before' means only windows to the left | 876 | Optional argument TRAIL `before' means only windows to the left |
| 871 | of or below WINDOW can be shrunk. Optional argument TRAIL | 877 | of or below WINDOW can be shrunk. Optional argument TRAIL |
| @@ -916,17 +922,18 @@ columns. If WINDOW cannot be shrunk by -DELTA lines or columns, | |||
| 916 | return the minimum value in the range DELTA..0 that can be used | 922 | return the minimum value in the range DELTA..0 that can be used |
| 917 | for shrinking WINDOW. | 923 | for shrinking WINDOW. |
| 918 | 924 | ||
| 919 | Optional argument IGNORE non-nil means ignore any restrictions | 925 | Optional argument IGNORE non-nil means ignore restrictions |
| 920 | imposed by fixed size windows, `window-min-height' or | 926 | imposed by fixed size windows, `window-min-height' or |
| 921 | `window-min-width' settings. IGNORE a window means ignore | 927 | `window-min-width' settings. If IGNORE is a window, ignore |
| 922 | restrictions for that window only. IGNORE equal `safe' means | 928 | restrictions for that window only. If IGNORE equals `safe', |
| 923 | live windows may get as small as `window-safe-min-height' lines | 929 | live windows may get as small as `window-safe-min-height' lines |
| 924 | and `window-safe-min-width' columns." | 930 | and `window-safe-min-width' columns. Any other non-nil value |
| 931 | means ignore all of the above restrictions for all windows." | ||
| 925 | (setq window (window-normalize-window window)) | 932 | (setq window (window-normalize-window window)) |
| 926 | (window--resizable window delta horizontal ignore)) | 933 | (window--resizable window delta horizontal ignore)) |
| 927 | 934 | ||
| 928 | (defun window-total-size (&optional window horizontal) | 935 | (defun window-total-size (&optional window horizontal) |
| 929 | "Return the total height or width of window WINDOW. | 936 | "Return the total height or width of WINDOW. |
| 930 | If WINDOW is omitted or nil, it defaults to the selected window. | 937 | If WINDOW is omitted or nil, it defaults to the selected window. |
| 931 | 938 | ||
| 932 | If HORIZONTAL is omitted or nil, return the total height of | 939 | If HORIZONTAL is omitted or nil, return the total height of |
| @@ -941,7 +948,7 @@ the total width, in columns, like `window-total-width'." | |||
| 941 | 948 | ||
| 942 | ;; See discussion in bug#4543. | 949 | ;; See discussion in bug#4543. |
| 943 | (defun window-full-height-p (&optional window) | 950 | (defun window-full-height-p (&optional window) |
| 944 | "Return t if WINDOW is as high as the containing frame. | 951 | "Return t if WINDOW is as high as its containing frame. |
| 945 | More precisely, return t if and only if the total height of | 952 | More precisely, return t if and only if the total height of |
| 946 | WINDOW equals the total height of the root window of WINDOW's | 953 | WINDOW equals the total height of the root window of WINDOW's |
| 947 | frame. WINDOW can be any window and defaults to the selected | 954 | frame. WINDOW can be any window and defaults to the selected |
| @@ -951,7 +958,7 @@ one." | |||
| 951 | (window-total-size (frame-root-window window)))) | 958 | (window-total-size (frame-root-window window)))) |
| 952 | 959 | ||
| 953 | (defun window-full-width-p (&optional window) | 960 | (defun window-full-width-p (&optional window) |
| 954 | "Return t if WINDOW is as wide as the containing frame. | 961 | "Return t if WINDOW is as wide as its containing frame. |
| 955 | More precisely, return t if and only if the total width of WINDOW | 962 | More precisely, return t if and only if the total width of WINDOW |
| 956 | equals the total width of the root window of WINDOW's frame. | 963 | equals the total width of the root window of WINDOW's frame. |
| 957 | WINDOW can be any window and defaults to the selected one." | 964 | WINDOW can be any window and defaults to the selected one." |
| @@ -1115,7 +1122,7 @@ SIDE can be any of the symbols `left', `top', `right' or | |||
| 1115 | "Return window in DIRECTION as seen from WINDOW. | 1122 | "Return window in DIRECTION as seen from WINDOW. |
| 1116 | DIRECTION must be one of `above', `below', `left' or `right'. | 1123 | DIRECTION must be one of `above', `below', `left' or `right'. |
| 1117 | WINDOW must be a live window and defaults to the selected one. | 1124 | WINDOW must be a live window and defaults to the selected one. |
| 1118 | IGNORE, when non-nil means a window can be returned even if its | 1125 | IGNORE non-nil means a window can be returned even if its |
| 1119 | `no-other-window' parameter is non-nil." | 1126 | `no-other-window' parameter is non-nil." |
| 1120 | (setq window (window-normalize-window window t)) | 1127 | (setq window (window-normalize-window window t)) |
| 1121 | (unless (memq direction '(above below left right)) | 1128 | (unless (memq direction '(above below left right)) |
| @@ -1420,7 +1427,7 @@ windows." | |||
| 1420 | (defun window--resize-mini-window (window delta) | 1427 | (defun window--resize-mini-window (window delta) |
| 1421 | "Resize minibuffer window WINDOW by DELTA lines. | 1428 | "Resize minibuffer window WINDOW by DELTA lines. |
| 1422 | If WINDOW cannot be resized by DELTA lines make it as large (or | 1429 | If WINDOW cannot be resized by DELTA lines make it as large (or |
| 1423 | as small) as possible but don't signal an error." | 1430 | as small) as possible, but don't signal an error." |
| 1424 | (when (window-minibuffer-p window) | 1431 | (when (window-minibuffer-p window) |
| 1425 | (let* ((frame (window-frame window)) | 1432 | (let* ((frame (window-frame window)) |
| 1426 | (root (frame-root-window frame)) | 1433 | (root (frame-root-window frame)) |
| @@ -1461,12 +1468,13 @@ horizontally by DELTA columns. In this case a positive DELTA | |||
| 1461 | means enlarge WINDOW by DELTA columns. DELTA negative means | 1468 | means enlarge WINDOW by DELTA columns. DELTA negative means |
| 1462 | WINDOW shall be shrunk by -DELTA columns. | 1469 | WINDOW shall be shrunk by -DELTA columns. |
| 1463 | 1470 | ||
| 1464 | Optional argument IGNORE non-nil means ignore any restrictions | 1471 | Optional argument IGNORE non-nil means ignore restrictions |
| 1465 | imposed by fixed size windows, `window-min-height' or | 1472 | imposed by fixed size windows, `window-min-height' or |
| 1466 | `window-min-width' settings. IGNORE any window means ignore | 1473 | `window-min-width' settings. If IGNORE is a window, ignore |
| 1467 | restrictions for that window only. IGNORE equal `safe' means | 1474 | restrictions for that window only. If IGNORE equals `safe', |
| 1468 | live windows may get as small as `window-safe-min-height' lines | 1475 | live windows may get as small as `window-safe-min-height' lines |
| 1469 | and `window-safe-min-width' columns. | 1476 | and `window-safe-min-width' columns. Any other non-nil value |
| 1477 | means ignore all of the above restrictions for all windows. | ||
| 1470 | 1478 | ||
| 1471 | This function resizes other windows proportionally and never | 1479 | This function resizes other windows proportionally and never |
| 1472 | deletes any windows. If you want to move only the low (right) | 1480 | deletes any windows. If you want to move only the low (right) |
| @@ -1516,9 +1524,9 @@ HORIZONTAL non-nil means set the new normal width of these | |||
| 1516 | windows. WINDOW specifies a child window of PARENT that has been | 1524 | windows. WINDOW specifies a child window of PARENT that has been |
| 1517 | resized by THIS-DELTA lines (columns). | 1525 | resized by THIS-DELTA lines (columns). |
| 1518 | 1526 | ||
| 1519 | Optional argument TRAIL either 'before or 'after means set values | 1527 | Optional argument TRAIL either `before' or `after' means set values |
| 1520 | for windows before or after WINDOW only. Optional argument | 1528 | only for windows before or after WINDOW. Optional argument |
| 1521 | OTHER-DELTA a number specifies that this many lines (columns) | 1529 | OTHER-DELTA, a number, specifies that this many lines (columns) |
| 1522 | have been obtained from (or returned to) an ancestor window of | 1530 | have been obtained from (or returned to) an ancestor window of |
| 1523 | PARENT in order to resize WINDOW." | 1531 | PARENT in order to resize WINDOW." |
| 1524 | (let* ((delta-normal | 1532 | (let* ((delta-normal |
| @@ -1618,12 +1626,13 @@ be a horizontally combined internal window. | |||
| 1618 | WINDOW, if specified, must denote a child window of PARENT that | 1626 | WINDOW, if specified, must denote a child window of PARENT that |
| 1619 | is resized by DELTA lines. | 1627 | is resized by DELTA lines. |
| 1620 | 1628 | ||
| 1621 | Optional argument IGNORE non-nil means ignore any restrictions | 1629 | Optional argument IGNORE non-nil means ignore restrictions |
| 1622 | imposed by fixed size windows, `window-min-height' or | 1630 | imposed by fixed size windows, `window-min-height' or |
| 1623 | `window-min-width' settings. IGNORE equal `safe' means live | 1631 | `window-min-width' settings. If IGNORE equals `safe', live |
| 1624 | windows may get as small as `window-safe-min-height' lines and | 1632 | windows may get as small as `window-safe-min-height' lines and |
| 1625 | `window-safe-min-width' columns. IGNORE any window means ignore | 1633 | `window-safe-min-width' columns. If IGNORE is a window, ignore |
| 1626 | restrictions for that window only. | 1634 | restrictions for that window only. Any other non-nil value means |
| 1635 | ignore all of the above restrictions for all windows. | ||
| 1627 | 1636 | ||
| 1628 | Optional arguments TRAIL and EDGE, when non-nil, restrict the set | 1637 | Optional arguments TRAIL and EDGE, when non-nil, restrict the set |
| 1629 | of windows that shall be resized. If TRAIL equals `before', | 1638 | of windows that shall be resized. If TRAIL equals `before', |
| @@ -1790,12 +1799,13 @@ Optional argument HORIZONTAL non-nil means resize other windows | |||
| 1790 | when WINDOW is resized horizontally by DELTA columns. WINDOW | 1799 | when WINDOW is resized horizontally by DELTA columns. WINDOW |
| 1791 | itself is not resized by this function. | 1800 | itself is not resized by this function. |
| 1792 | 1801 | ||
| 1793 | Optional argument IGNORE non-nil means ignore any restrictions | 1802 | Optional argument IGNORE non-nil means ignore restrictions |
| 1794 | imposed by fixed size windows, `window-min-height' or | 1803 | imposed by fixed size windows, `window-min-height' or |
| 1795 | `window-min-width' settings. IGNORE equal `safe' means live | 1804 | `window-min-width' settings. If IGNORE equals `safe', live |
| 1796 | windows may get as small as `window-safe-min-height' lines and | 1805 | windows may get as small as `window-safe-min-height' lines and |
| 1797 | `window-safe-min-width' columns. IGNORE any window means ignore | 1806 | `window-safe-min-width' columns. If IGNORE is a window, ignore |
| 1798 | restrictions for that window only. | 1807 | restrictions for that window only. Any other non-nil value means |
| 1808 | ignore all of the above restrictions for all windows. | ||
| 1799 | 1809 | ||
| 1800 | Optional arguments TRAIL and EDGE, when non-nil, refine the set | 1810 | Optional arguments TRAIL and EDGE, when non-nil, refine the set |
| 1801 | of windows that shall be resized. If TRAIL equals `before', | 1811 | of windows that shall be resized. If TRAIL equals `before', |
| @@ -1891,12 +1901,13 @@ preferably only resize windows adjacent to EDGE." | |||
| 1891 | Optional argument HORIZONTAL non-nil means resize WINDOW | 1901 | Optional argument HORIZONTAL non-nil means resize WINDOW |
| 1892 | horizontally by DELTA columns. | 1902 | horizontally by DELTA columns. |
| 1893 | 1903 | ||
| 1894 | Optional argument IGNORE non-nil means ignore any restrictions | 1904 | Optional argument IGNORE non-nil means ignore restrictions |
| 1895 | imposed by fixed size windows, `window-min-height' or | 1905 | imposed by fixed size windows, `window-min-height' or |
| 1896 | `window-min-width' settings. IGNORE equal `safe' means live | 1906 | `window-min-width' settings. If IGNORE equals `safe', live |
| 1897 | windows may get as small as `window-safe-min-height' lines and | 1907 | windows may get as small as `window-safe-min-height' lines and |
| 1898 | `window-safe-min-width' columns. IGNORE any window means ignore | 1908 | `window-safe-min-width' columns. If IGNORE is a window, ignore |
| 1899 | restrictions for that window only. | 1909 | restrictions for that window only. Any other non-nil value |
| 1910 | means ignore all of the above restrictions for all windows. | ||
| 1900 | 1911 | ||
| 1901 | Optional argument ADD non-nil means add DELTA to the new total | 1912 | Optional argument ADD non-nil means add DELTA to the new total |
| 1902 | size of WINDOW. | 1913 | size of WINDOW. |
| @@ -1986,7 +1997,7 @@ any windows." | |||
| 1986 | Optional argument HORIZONTAL non-nil means move WINDOW's right | 1997 | Optional argument HORIZONTAL non-nil means move WINDOW's right |
| 1987 | edge by DELTA columns. WINDOW defaults to the selected window. | 1998 | edge by DELTA columns. WINDOW defaults to the selected window. |
| 1988 | 1999 | ||
| 1989 | If DELTA is greater zero, then move the edge downwards or to the | 2000 | If DELTA is greater than zero, move the edge downwards or to the |
| 1990 | right. If DELTA is less than zero, move the edge upwards or to | 2001 | right. If DELTA is less than zero, move the edge upwards or to |
| 1991 | the left. If the edge can't be moved by DELTA lines or columns, | 2002 | the left. If the edge can't be moved by DELTA lines or columns, |
| 1992 | move it as far as possible in the desired direction." | 2003 | move it as far as possible in the desired direction." |
| @@ -2091,7 +2102,7 @@ move it as far as possible in the desired direction." | |||
| 2091 | (error "Failed adjusting window %s" window))))))) | 2102 | (error "Failed adjusting window %s" window))))))) |
| 2092 | 2103 | ||
| 2093 | (defun enlarge-window (delta &optional horizontal) | 2104 | (defun enlarge-window (delta &optional horizontal) |
| 2094 | "Make selected window DELTA lines taller. | 2105 | "Make the selected window DELTA lines taller. |
| 2095 | Interactively, if no argument is given, make the selected window | 2106 | Interactively, if no argument is given, make the selected window |
| 2096 | one line taller. If optional argument HORIZONTAL is non-nil, | 2107 | one line taller. If optional argument HORIZONTAL is non-nil, |
| 2097 | make selected window wider by DELTA columns. If DELTA is | 2108 | make selected window wider by DELTA columns. If DELTA is |
| @@ -2112,7 +2123,7 @@ Return nil." | |||
| 2112 | horizontal)))) | 2123 | horizontal)))) |
| 2113 | 2124 | ||
| 2114 | (defun shrink-window (delta &optional horizontal) | 2125 | (defun shrink-window (delta &optional horizontal) |
| 2115 | "Make selected window DELTA lines smaller. | 2126 | "Make the selected window DELTA lines smaller. |
| 2116 | Interactively, if no argument is given, make the selected window | 2127 | Interactively, if no argument is given, make the selected window |
| 2117 | one line smaller. If optional argument HORIZONTAL is non-nil, | 2128 | one line smaller. If optional argument HORIZONTAL is non-nil, |
| 2118 | make selected window narrower by DELTA columns. If DELTA is | 2129 | make selected window narrower by DELTA columns. If DELTA is |