diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/window.c b/src/window.c index 940e0f7565a..df7878f42e5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -84,8 +84,8 @@ static int foreach_window_1 (struct window *, | |||
| 84 | int (* fn) (struct window *, void *), | 84 | int (* fn) (struct window *, void *), |
| 85 | void *); | 85 | void *); |
| 86 | static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); | 86 | static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 87 | static int window_resize_check (struct window *, int); | 87 | static int window_resize_check (struct window *, bool); |
| 88 | static void window_resize_apply (struct window *, int); | 88 | static void window_resize_apply (struct window *, bool); |
| 89 | static Lisp_Object select_window (Lisp_Object, Lisp_Object, int); | 89 | static Lisp_Object select_window (Lisp_Object, Lisp_Object, int); |
| 90 | static void select_window_1 (Lisp_Object, bool); | 90 | static void select_window_1 (Lisp_Object, bool); |
| 91 | 91 | ||
| @@ -1368,7 +1368,7 @@ check_window_containing (struct window *w, void *user_data) | |||
| 1368 | 1368 | ||
| 1369 | Lisp_Object | 1369 | Lisp_Object |
| 1370 | window_from_coordinates (struct frame *f, int x, int y, | 1370 | window_from_coordinates (struct frame *f, int x, int y, |
| 1371 | enum window_part *part, int tool_bar_p) | 1371 | enum window_part *part, bool tool_bar_p) |
| 1372 | { | 1372 | { |
| 1373 | Lisp_Object window; | 1373 | Lisp_Object window; |
| 1374 | struct check_window_data cw; | 1374 | struct check_window_data cw; |
| @@ -2055,7 +2055,7 @@ recombine_windows (Lisp_Object window) | |||
| 2055 | { | 2055 | { |
| 2056 | struct window *w, *p, *c; | 2056 | struct window *w, *p, *c; |
| 2057 | Lisp_Object parent, child; | 2057 | Lisp_Object parent, child; |
| 2058 | int horflag; | 2058 | bool horflag; |
| 2059 | 2059 | ||
| 2060 | w = XWINDOW (window); | 2060 | w = XWINDOW (window); |
| 2061 | parent = w->parent; | 2061 | parent = w->parent; |
| @@ -3148,7 +3148,8 @@ If FRAME is omitted or nil, it defaults to the selected frame. */) | |||
| 3148 | reset from the buffer's local settings. */ | 3148 | reset from the buffer's local settings. */ |
| 3149 | 3149 | ||
| 3150 | void | 3150 | void |
| 3151 | set_window_buffer (Lisp_Object window, Lisp_Object buffer, int run_hooks_p, int keep_margins_p) | 3151 | set_window_buffer (Lisp_Object window, Lisp_Object buffer, |
| 3152 | bool run_hooks_p, bool keep_margins_p) | ||
| 3152 | { | 3153 | { |
| 3153 | struct window *w = XWINDOW (window); | 3154 | struct window *w = XWINDOW (window); |
| 3154 | struct buffer *b = XBUFFER (buffer); | 3155 | struct buffer *b = XBUFFER (buffer); |
| @@ -3406,7 +3407,7 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3406 | WINDOW its only vertical child (HORFLAG 1 means make WINDOW its only | 3407 | WINDOW its only vertical child (HORFLAG 1 means make WINDOW its only |
| 3407 | horizontal child). */ | 3408 | horizontal child). */ |
| 3408 | static void | 3409 | static void |
| 3409 | make_parent_window (Lisp_Object window, int horflag) | 3410 | make_parent_window (Lisp_Object window, bool horflag) |
| 3410 | { | 3411 | { |
| 3411 | Lisp_Object parent; | 3412 | Lisp_Object parent; |
| 3412 | register struct window *o, *p; | 3413 | register struct window *o, *p; |
| @@ -3519,7 +3520,7 @@ Note: This function does not operate on any child windows of WINDOW. */) | |||
| 3519 | `window-min-height' or `window-min-width'. It does check that window | 3520 | `window-min-height' or `window-min-width'. It does check that window |
| 3520 | sizes do not drop below one line (two columns). */ | 3521 | sizes do not drop below one line (two columns). */ |
| 3521 | static int | 3522 | static int |
| 3522 | window_resize_check (struct window *w, int horflag) | 3523 | window_resize_check (struct window *w, bool horflag) |
| 3523 | { | 3524 | { |
| 3524 | struct window *c; | 3525 | struct window *c; |
| 3525 | 3526 | ||
| @@ -3600,7 +3601,7 @@ window_resize_check (struct window *w, int horflag) | |||
| 3600 | This function does not perform any error checks. Make sure you have | 3601 | This function does not perform any error checks. Make sure you have |
| 3601 | run window_resize_check on W before applying this function. */ | 3602 | run window_resize_check on W before applying this function. */ |
| 3602 | static void | 3603 | static void |
| 3603 | window_resize_apply (struct window *w, int horflag) | 3604 | window_resize_apply (struct window *w, bool horflag) |
| 3604 | { | 3605 | { |
| 3605 | struct window *c; | 3606 | struct window *c; |
| 3606 | int pos; | 3607 | int pos; |
| @@ -3681,7 +3682,7 @@ be applied on the Elisp level. */) | |||
| 3681 | { | 3682 | { |
| 3682 | struct frame *f = decode_live_frame (frame); | 3683 | struct frame *f = decode_live_frame (frame); |
| 3683 | struct window *r = XWINDOW (FRAME_ROOT_WINDOW (f)); | 3684 | struct window *r = XWINDOW (FRAME_ROOT_WINDOW (f)); |
| 3684 | int horflag = !NILP (horizontal); | 3685 | bool horflag = !NILP (horizontal); |
| 3685 | 3686 | ||
| 3686 | if (!window_resize_check (r, horflag) | 3687 | if (!window_resize_check (r, horflag) |
| 3687 | || ! EQ (r->new_total, | 3688 | || ! EQ (r->new_total, |
| @@ -3711,7 +3712,7 @@ be applied on the Elisp level. */) | |||
| 3711 | satisfy the request. The result will be meaningful if and only if | 3712 | satisfy the request. The result will be meaningful if and only if |
| 3712 | F's windows have meaningful sizes when you call this. */ | 3713 | F's windows have meaningful sizes when you call this. */ |
| 3713 | void | 3714 | void |
| 3714 | resize_frame_windows (struct frame *f, int size, int horflag) | 3715 | resize_frame_windows (struct frame *f, int size, bool horflag) |
| 3715 | { | 3716 | { |
| 3716 | Lisp_Object root = f->root_window; | 3717 | Lisp_Object root = f->root_window; |
| 3717 | struct window *r = XWINDOW (root); | 3718 | struct window *r = XWINDOW (root); |
| @@ -3825,7 +3826,7 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 3825 | register Lisp_Object new, frame, reference; | 3826 | register Lisp_Object new, frame, reference; |
| 3826 | register struct window *o, *p, *n, *r; | 3827 | register struct window *o, *p, *n, *r; |
| 3827 | struct frame *f; | 3828 | struct frame *f; |
| 3828 | int horflag | 3829 | bool horflag |
| 3829 | /* HORFLAG is 1 when we split side-by-side, 0 otherwise. */ | 3830 | /* HORFLAG is 1 when we split side-by-side, 0 otherwise. */ |
| 3830 | = EQ (side, Qt) || EQ (side, Qleft) || EQ (side, Qright); | 3831 | = EQ (side, Qt) || EQ (side, Qleft) || EQ (side, Qright); |
| 3831 | int combination_limit = 0; | 3832 | int combination_limit = 0; |
| @@ -3994,7 +3995,7 @@ Signal an error when WINDOW is the only window on its frame. */) | |||
| 3994 | register Lisp_Object parent, sibling, frame, root; | 3995 | register Lisp_Object parent, sibling, frame, root; |
| 3995 | struct window *w, *p, *s, *r; | 3996 | struct window *w, *p, *s, *r; |
| 3996 | struct frame *f; | 3997 | struct frame *f; |
| 3997 | int horflag; | 3998 | bool horflag; |
| 3998 | int before_sibling = 0; | 3999 | int before_sibling = 0; |
| 3999 | 4000 | ||
| 4000 | w = decode_any_window (window); | 4001 | w = decode_any_window (window); |
| @@ -6527,7 +6528,7 @@ freeze_window_start (struct window *w, void *freeze_p) | |||
| 6527 | means freeze the window start. */ | 6528 | means freeze the window start. */ |
| 6528 | 6529 | ||
| 6529 | void | 6530 | void |
| 6530 | freeze_window_starts (struct frame *f, int freeze_p) | 6531 | freeze_window_starts (struct frame *f, bool freeze_p) |
| 6531 | { | 6532 | { |
| 6532 | foreach_window (f, freeze_window_start, (void *) (freeze_p ? f : 0)); | 6533 | foreach_window (f, freeze_window_start, (void *) (freeze_p ? f : 0)); |
| 6533 | } | 6534 | } |