aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-03-31 20:35:51 +0000
committerKim F. Storm2003-03-31 20:35:51 +0000
commitcdbc7fec13c9086ec254b91b037bb0da16231838 (patch)
treebc04d4d09534066956a6b54f190d0a42bf0ea5d1 /src
parentabdb2fa0bb973a4dfb12c070c7a26e9988e740b6 (diff)
downloademacs-cdbc7fec13c9086ec254b91b037bb0da16231838.tar.gz
emacs-cdbc7fec13c9086ec254b91b037bb0da16231838.zip
Remove extern decl for frame parameter vars.
(change_window_heights): New generic function; replaces x_change_window_heights. All users changed.
Diffstat (limited to 'src')
-rw-r--r--src/window.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 65966edb6da..8b179cb29e9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -52,7 +52,6 @@ Boston, MA 02111-1307, USA. */
52Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p; 52Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p;
53Lisp_Object Qwindow_size_fixed; 53Lisp_Object Qwindow_size_fixed;
54extern Lisp_Object Qleft_margin, Qright_margin; 54extern Lisp_Object Qleft_margin, Qright_margin;
55extern Lisp_Object Qheight, Qwidth;
56 55
57static int displayed_window_lines P_ ((struct window *)); 56static int displayed_window_lines P_ ((struct window *));
58static struct window *decode_window P_ ((Lisp_Object)); 57static struct window *decode_window P_ ((Lisp_Object));
@@ -2639,6 +2638,35 @@ set_window_width (window, width, nodelete)
2639 size_window (window, width, 1, nodelete); 2638 size_window (window, width, 1, nodelete);
2640} 2639}
2641 2640
2641/* Change window heights in windows rooted in WINDOW by N lines. */
2642
2643void
2644change_window_heights (window, n)
2645 Lisp_Object window;
2646 int n;
2647{
2648 struct window *w = XWINDOW (window);
2649
2650 XSETFASTINT (w->top, XFASTINT (w->top) + n);
2651 XSETFASTINT (w->height, XFASTINT (w->height) - n);
2652
2653 if (INTEGERP (w->orig_top))
2654 XSETFASTINT (w->orig_top, XFASTINT (w->orig_top) + n);
2655 if (INTEGERP (w->orig_height))
2656 XSETFASTINT (w->orig_height, XFASTINT (w->orig_height) - n);
2657
2658 /* Handle just the top child in a vertical split. */
2659 if (!NILP (w->vchild))
2660 change_window_heights (w->vchild, n);
2661
2662 /* Adjust all children in a horizontal split. */
2663 for (window = w->hchild; !NILP (window); window = w->next)
2664 {
2665 w = XWINDOW (window);
2666 change_window_heights (window, n);
2667 }
2668}
2669
2642 2670
2643int window_select_count; 2671int window_select_count;
2644 2672