diff options
| author | Kim F. Storm | 2003-03-31 20:35:51 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-03-31 20:35:51 +0000 |
| commit | cdbc7fec13c9086ec254b91b037bb0da16231838 (patch) | |
| tree | bc04d4d09534066956a6b54f190d0a42bf0ea5d1 /src | |
| parent | abdb2fa0bb973a4dfb12c070c7a26e9988e740b6 (diff) | |
| download | emacs-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.c | 30 |
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. */ | |||
| 52 | Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p; | 52 | Lisp_Object Qwindowp, Qwindow_live_p, Qwindow_configuration_p; |
| 53 | Lisp_Object Qwindow_size_fixed; | 53 | Lisp_Object Qwindow_size_fixed; |
| 54 | extern Lisp_Object Qleft_margin, Qright_margin; | 54 | extern Lisp_Object Qleft_margin, Qright_margin; |
| 55 | extern Lisp_Object Qheight, Qwidth; | ||
| 56 | 55 | ||
| 57 | static int displayed_window_lines P_ ((struct window *)); | 56 | static int displayed_window_lines P_ ((struct window *)); |
| 58 | static struct window *decode_window P_ ((Lisp_Object)); | 57 | static 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 | |||
| 2643 | void | ||
| 2644 | change_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 | ||
| 2643 | int window_select_count; | 2671 | int window_select_count; |
| 2644 | 2672 | ||