aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorTom Tromey2018-08-07 18:08:53 -0600
committerTom Tromey2018-08-07 18:08:53 -0600
commitd1ec3a0a8e4d7d56ebc1e4fa743130b9974ac6a8 (patch)
tree04c920acf142f686d3cac11080b17a2fb0dfc9af /src/window.c
parent68ebff23f7057090da260830500cb278f7b886a5 (diff)
downloademacs-d1ec3a0a8e4d7d56ebc1e4fa743130b9974ac6a8.tar.gz
emacs-d1ec3a0a8e4d7d56ebc1e4fa743130b9974ac6a8.zip
More macro renamings for bignum
* src/alloc.c, src/bidi.c, src/buffer.c, src/buffer.h, src/bytecode.c, src/callint.c, src/callproc.c, src/casefiddle.c, src/casetab.c, src/category.c, src/ccl.c, src/character.c, src/character.h, src/charset.c, src/charset.h, src/chartab.c, src/cmds.c, src/coding.c, src/composite.c, src/composite.h, src/data.c, src/dbusbind.c, src/decompress.c, src/dired.c, src/dispextern.h, src/dispnew.c, src/disptab.h, src/doc.c, src/dosfns.c, src/editfns.c, src/emacs-module.c, src/emacs.c, src/eval.c, src/fileio.c, src/floatfns.c, src/fns.c, src/font.c, src/font.h, src/fontset.c, src/frame.c, src/frame.h, src/fringe.c, src/ftcrfont.c, src/ftfont.c, src/gfilenotify.c, src/gnutls.c, src/gtkutil.c, src/image.c, src/indent.c, src/insdel.c, src/intervals.c, src/json.c, src/keyboard.c, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/syntax.h, src/sysdep.c, src/term.c, src/termhooks.h, src/textprop.c, src/undo.c, src/w32.c, src/w32console.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32term.h, src/w32uniscribe.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xml.c, src/xrdb.c, src/xselect.c, src/xsettings.c, src/xterm.c, src/xwidget.c Rename XINT->XFIXNUM, XFASTINT->XFIXNAT, XUINT->XUFIXNUM.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c136
1 files changed, 68 insertions, 68 deletions
diff --git a/src/window.c b/src/window.c
index e3b0c3a66a5..67cfdc12b5d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1118,7 +1118,7 @@ window so that the location of point moves off-window. */)
1118 (Lisp_Object window, Lisp_Object ncol) 1118 (Lisp_Object window, Lisp_Object ncol)
1119{ 1119{
1120 CHECK_FIXNUM (ncol); 1120 CHECK_FIXNUM (ncol);
1121 return set_window_hscroll (decode_live_window (window), XINT (ncol)); 1121 return set_window_hscroll (decode_live_window (window), XFIXNUM (ncol));
1122} 1122}
1123 1123
1124DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger, 1124DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger,
@@ -1764,7 +1764,7 @@ POS, ROWH is the visible height of that row, and VPOS is the row number
1764 else if (!NILP (pos)) 1764 else if (!NILP (pos))
1765 { 1765 {
1766 CHECK_FIXNUM_COERCE_MARKER (pos); 1766 CHECK_FIXNUM_COERCE_MARKER (pos);
1767 posint = XINT (pos); 1767 posint = XFIXNUM (pos);
1768 } 1768 }
1769 else if (w == XWINDOW (selected_window)) 1769 else if (w == XWINDOW (selected_window))
1770 posint = PT; 1770 posint = PT;
@@ -1870,7 +1870,7 @@ Return nil if window display is not up-to-date. In that case, use
1870 } 1870 }
1871 1871
1872 CHECK_FIXNUM (line); 1872 CHECK_FIXNUM (line);
1873 n = XINT (line); 1873 n = XFIXNUM (line);
1874 1874
1875 row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); 1875 row = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
1876 end_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w); 1876 end_row = MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w);
@@ -1975,7 +1975,7 @@ though when run from an idle timer with a delay of zero seconds. */)
1975 else if (FIXED_OR_FLOATP (first)) 1975 else if (FIXED_OR_FLOATP (first))
1976 { 1976 {
1977 CHECK_RANGED_INTEGER (first, 0, w->current_matrix->nrows); 1977 CHECK_RANGED_INTEGER (first, 0, w->current_matrix->nrows);
1978 row = MATRIX_ROW (w->current_matrix, XINT (first)); 1978 row = MATRIX_ROW (w->current_matrix, XFIXNUM (first));
1979 } 1979 }
1980 else 1980 else
1981 error ("Invalid specification of first line"); 1981 error ("Invalid specification of first line");
@@ -1988,7 +1988,7 @@ though when run from an idle timer with a delay of zero seconds. */)
1988 else if (FIXED_OR_FLOATP (last)) 1988 else if (FIXED_OR_FLOATP (last))
1989 { 1989 {
1990 CHECK_RANGED_INTEGER (last, 0, w->current_matrix->nrows); 1990 CHECK_RANGED_INTEGER (last, 0, w->current_matrix->nrows);
1991 end_row = MATRIX_ROW (w->current_matrix, XINT (last)); 1991 end_row = MATRIX_ROW (w->current_matrix, XFIXNUM (last));
1992 } 1992 }
1993 else 1993 else
1994 error ("Invalid specification of last line"); 1994 error ("Invalid specification of last line");
@@ -2492,7 +2492,7 @@ candidate_window_p (Lisp_Object window, Lisp_Object owindow,
2492 == FRAME_TERMINAL (XFRAME (selected_frame))); 2492 == FRAME_TERMINAL (XFRAME (selected_frame)));
2493 2493
2494 } 2494 }
2495 else if (FIXNUMP (all_frames) && XINT (all_frames) == 0) 2495 else if (FIXNUMP (all_frames) && XFIXNUM (all_frames) == 0)
2496 { 2496 {
2497 candidate_p = (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f) 2497 candidate_p = (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f)
2498#ifdef HAVE_X_WINDOWS 2498#ifdef HAVE_X_WINDOWS
@@ -3495,7 +3495,7 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer,
3495 3495
3496 /* Update time stamps of buffer display. */ 3496 /* Update time stamps of buffer display. */
3497 if (FIXNUMP (BVAR (b, display_count))) 3497 if (FIXNUMP (BVAR (b, display_count)))
3498 bset_display_count (b, make_fixnum (XINT (BVAR (b, display_count)) + 1)); 3498 bset_display_count (b, make_fixnum (XFIXNUM (BVAR (b, display_count)) + 1));
3499 bset_display_time (b, Fcurrent_time ()); 3499 bset_display_time (b, Fcurrent_time ());
3500 3500
3501 w->window_end_pos = 0; 3501 w->window_end_pos = 0;
@@ -3820,14 +3820,14 @@ Note: This function does not operate on any child windows of WINDOW. */)
3820 (Lisp_Object window, Lisp_Object size, Lisp_Object add) 3820 (Lisp_Object window, Lisp_Object size, Lisp_Object add)
3821{ 3821{
3822 struct window *w = decode_valid_window (window); 3822 struct window *w = decode_valid_window (window);
3823 EMACS_INT size_min = NILP (add) ? 0 : - XINT (w->new_pixel); 3823 EMACS_INT size_min = NILP (add) ? 0 : - XFIXNUM (w->new_pixel);
3824 EMACS_INT size_max = size_min + min (INT_MAX, MOST_POSITIVE_FIXNUM); 3824 EMACS_INT size_max = size_min + min (INT_MAX, MOST_POSITIVE_FIXNUM);
3825 3825
3826 CHECK_RANGED_INTEGER (size, size_min, size_max); 3826 CHECK_RANGED_INTEGER (size, size_min, size_max);
3827 if (NILP (add)) 3827 if (NILP (add))
3828 wset_new_pixel (w, size); 3828 wset_new_pixel (w, size);
3829 else 3829 else
3830 wset_new_pixel (w, make_fixnum (XINT (w->new_pixel) + XINT (size))); 3830 wset_new_pixel (w, make_fixnum (XFIXNUM (w->new_pixel) + XFIXNUM (size)));
3831 3831
3832 return w->new_pixel; 3832 return w->new_pixel;
3833} 3833}
@@ -3853,7 +3853,7 @@ Note: This function does not operate on any child windows of WINDOW. */)
3853 if (NILP (add)) 3853 if (NILP (add))
3854 wset_new_total (w, size); 3854 wset_new_total (w, size);
3855 else 3855 else
3856 wset_new_total (w, make_fixnum (XINT (w->new_total) + XINT (size))); 3856 wset_new_total (w, make_fixnum (XFIXNUM (w->new_total) + XFIXNUM (size)));
3857 3857
3858 return w->new_total; 3858 return w->new_total;
3859} 3859}
@@ -3895,7 +3895,7 @@ window_resize_check (struct window *w, bool horflag)
3895 { 3895 {
3896 while (c) 3896 while (c)
3897 { 3897 {
3898 if (XINT (c->new_pixel) != XINT (w->new_pixel) 3898 if (XFIXNUM (c->new_pixel) != XFIXNUM (w->new_pixel)
3899 || !window_resize_check (c, horflag)) 3899 || !window_resize_check (c, horflag))
3900 return false; 3900 return false;
3901 3901
@@ -3908,14 +3908,14 @@ window_resize_check (struct window *w, bool horflag)
3908 /* The sum of the heights of the child windows of W must equal 3908 /* The sum of the heights of the child windows of W must equal
3909 W's height. */ 3909 W's height. */
3910 { 3910 {
3911 int remaining_pixels = XINT (w->new_pixel); 3911 int remaining_pixels = XFIXNUM (w->new_pixel);
3912 3912
3913 while (c) 3913 while (c)
3914 { 3914 {
3915 if (!window_resize_check (c, horflag)) 3915 if (!window_resize_check (c, horflag))
3916 return false; 3916 return false;
3917 3917
3918 remaining_pixels -= XINT (c->new_pixel); 3918 remaining_pixels -= XFIXNUM (c->new_pixel);
3919 if (remaining_pixels < 0) 3919 if (remaining_pixels < 0)
3920 return false; 3920 return false;
3921 c = NILP (c->next) ? 0 : XWINDOW (c->next); 3921 c = NILP (c->next) ? 0 : XWINDOW (c->next);
@@ -3932,14 +3932,14 @@ window_resize_check (struct window *w, bool horflag)
3932 /* The sum of the widths of the child windows of W must equal W's 3932 /* The sum of the widths of the child windows of W must equal W's
3933 width. */ 3933 width. */
3934 { 3934 {
3935 int remaining_pixels = XINT (w->new_pixel); 3935 int remaining_pixels = XFIXNUM (w->new_pixel);
3936 3936
3937 while (c) 3937 while (c)
3938 { 3938 {
3939 if (!window_resize_check (c, horflag)) 3939 if (!window_resize_check (c, horflag))
3940 return false; 3940 return false;
3941 3941
3942 remaining_pixels -= XINT (c->new_pixel); 3942 remaining_pixels -= XFIXNUM (c->new_pixel);
3943 if (remaining_pixels < 0) 3943 if (remaining_pixels < 0)
3944 return false; 3944 return false;
3945 c = NILP (c->next) ? 0 : XWINDOW (c->next); 3945 c = NILP (c->next) ? 0 : XWINDOW (c->next);
@@ -3952,7 +3952,7 @@ window_resize_check (struct window *w, bool horflag)
3952 { 3952 {
3953 while (c) 3953 while (c)
3954 { 3954 {
3955 if (XINT (c->new_pixel) != XINT (w->new_pixel) 3955 if (XFIXNUM (c->new_pixel) != XFIXNUM (w->new_pixel)
3956 || !window_resize_check (c, horflag)) 3956 || !window_resize_check (c, horflag))
3957 return false; 3957 return false;
3958 3958
@@ -3966,7 +3966,7 @@ window_resize_check (struct window *w, bool horflag)
3966 /* A leaf window. Make sure it's not too small. The following 3966 /* A leaf window. Make sure it's not too small. The following
3967 hardcodes the values of `window-safe-min-width' (2) and 3967 hardcodes the values of `window-safe-min-width' (2) and
3968 `window-safe-min-height' (1) which are defined in window.el. */ 3968 `window-safe-min-height' (1) which are defined in window.el. */
3969 return (XINT (w->new_pixel) >= (horflag 3969 return (XFIXNUM (w->new_pixel) >= (horflag
3970 ? (2 * FRAME_COLUMN_WIDTH (f)) 3970 ? (2 * FRAME_COLUMN_WIDTH (f))
3971 : FRAME_LINE_HEIGHT (f))); 3971 : FRAME_LINE_HEIGHT (f)));
3972} 3972}
@@ -3992,7 +3992,7 @@ window_resize_apply (struct window *w, bool horflag)
3992 parent window has been set *before*. */ 3992 parent window has been set *before*. */
3993 if (horflag) 3993 if (horflag)
3994 { 3994 {
3995 w->pixel_width = XFASTINT (w->new_pixel); 3995 w->pixel_width = XFIXNAT (w->new_pixel);
3996 w->total_cols = w->pixel_width / unit; 3996 w->total_cols = w->pixel_width / unit;
3997 if (FIXED_OR_FLOATP (w->new_normal)) 3997 if (FIXED_OR_FLOATP (w->new_normal))
3998 wset_normal_cols (w, w->new_normal); 3998 wset_normal_cols (w, w->new_normal);
@@ -4001,7 +4001,7 @@ window_resize_apply (struct window *w, bool horflag)
4001 } 4001 }
4002 else 4002 else
4003 { 4003 {
4004 w->pixel_height = XFASTINT (w->new_pixel); 4004 w->pixel_height = XFIXNAT (w->new_pixel);
4005 w->total_lines = w->pixel_height / unit; 4005 w->total_lines = w->pixel_height / unit;
4006 if (FIXED_OR_FLOATP (w->new_normal)) 4006 if (FIXED_OR_FLOATP (w->new_normal))
4007 wset_normal_lines (w, w->new_normal); 4007 wset_normal_lines (w, w->new_normal);
@@ -4076,12 +4076,12 @@ window_resize_apply_total (struct window *w, bool horflag)
4076 parent window has been set *before*. */ 4076 parent window has been set *before*. */
4077 if (horflag) 4077 if (horflag)
4078 { 4078 {
4079 w->total_cols = XFASTINT (w->new_total); 4079 w->total_cols = XFIXNAT (w->new_total);
4080 edge = w->left_col; 4080 edge = w->left_col;
4081 } 4081 }
4082 else 4082 else
4083 { 4083 {
4084 w->total_lines = XFASTINT (w->new_total); 4084 w->total_lines = XFIXNAT (w->new_total);
4085 edge = w->top_line; 4085 edge = w->top_line;
4086 } 4086 }
4087 4087
@@ -4149,7 +4149,7 @@ be applied on the Elisp level. */)
4149 bool horflag = !NILP (horizontal); 4149 bool horflag = !NILP (horizontal);
4150 4150
4151 if (!window_resize_check (r, horflag) 4151 if (!window_resize_check (r, horflag)
4152 || (XINT (r->new_pixel) 4152 || (XFIXNUM (r->new_pixel)
4153 != (horflag ? r->pixel_width : r->pixel_height))) 4153 != (horflag ? r->pixel_width : r->pixel_height)))
4154 return Qnil; 4154 return Qnil;
4155 4155
@@ -4193,10 +4193,10 @@ values. */)
4193 if (NILP (horizontal)) 4193 if (NILP (horizontal))
4194 { 4194 {
4195 m->top_line = r->top_line + r->total_lines; 4195 m->top_line = r->top_line + r->total_lines;
4196 m->total_lines = XFASTINT (m->new_total); 4196 m->total_lines = XFIXNAT (m->new_total);
4197 } 4197 }
4198 else 4198 else
4199 m->total_cols = XFASTINT (m->new_total); 4199 m->total_cols = XFIXNAT (m->new_total);
4200 } 4200 }
4201 4201
4202 unblock_input (); 4202 unblock_input ();
@@ -4286,7 +4286,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise)
4286 resize_root_window (root, delta, horflag ? Qt : Qnil, Qnil, 4286 resize_root_window (root, delta, horflag ? Qt : Qnil, Qnil,
4287 pixelwise ? Qt : Qnil); 4287 pixelwise ? Qt : Qnil);
4288 if (window_resize_check (r, horflag) 4288 if (window_resize_check (r, horflag)
4289 && new_pixel_size == XINT (r->new_pixel)) 4289 && new_pixel_size == XFIXNUM (r->new_pixel))
4290 { 4290 {
4291 window_resize_apply (r, horflag); 4291 window_resize_apply (r, horflag);
4292 window_pixel_to_total (r->frame, horflag ? Qt : Qnil); 4292 window_pixel_to_total (r->frame, horflag ? Qt : Qnil);
@@ -4297,7 +4297,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise)
4297 resize_root_window (root, delta, horflag ? Qt : Qnil, Qt, 4297 resize_root_window (root, delta, horflag ? Qt : Qnil, Qt,
4298 pixelwise ? Qt : Qnil); 4298 pixelwise ? Qt : Qnil);
4299 if (window_resize_check (r, horflag) 4299 if (window_resize_check (r, horflag)
4300 && new_pixel_size == XINT (r->new_pixel)) 4300 && new_pixel_size == XFIXNUM (r->new_pixel))
4301 { 4301 {
4302 window_resize_apply (r, horflag); 4302 window_resize_apply (r, horflag);
4303 window_pixel_to_total (r->frame, horflag ? Qt : Qnil); 4303 window_pixel_to_total (r->frame, horflag ? Qt : Qnil);
@@ -4371,7 +4371,7 @@ set correctly. See the code of `split-window' for how this is done. */)
4371 4371
4372 CHECK_FIXNUM (pixel_size); 4372 CHECK_FIXNUM (pixel_size);
4373 EMACS_INT total_size 4373 EMACS_INT total_size
4374 = XINT (pixel_size) / (horflag 4374 = XFIXNUM (pixel_size) / (horflag
4375 ? FRAME_COLUMN_WIDTH (f) 4375 ? FRAME_COLUMN_WIDTH (f)
4376 : FRAME_LINE_HEIGHT (f)); 4376 : FRAME_LINE_HEIGHT (f));
4377 4377
@@ -4407,7 +4407,7 @@ set correctly. See the code of `split-window' for how this is done. */)
4407 /* Temporarily pretend we split the parent window. */ 4407 /* Temporarily pretend we split the parent window. */
4408 wset_new_pixel 4408 wset_new_pixel
4409 (p, make_fixnum ((horflag ? p->pixel_width : p->pixel_height) 4409 (p, make_fixnum ((horflag ? p->pixel_width : p->pixel_height)
4410 - XINT (pixel_size))); 4410 - XFIXNUM (pixel_size)));
4411 if (!window_resize_check (p, horflag)) 4411 if (!window_resize_check (p, horflag))
4412 error ("Window sizes don't fit"); 4412 error ("Window sizes don't fit");
4413 else 4413 else
@@ -4418,7 +4418,7 @@ set correctly. See the code of `split-window' for how this is done. */)
4418 { 4418 {
4419 if (!window_resize_check (o, horflag)) 4419 if (!window_resize_check (o, horflag))
4420 error ("Resizing old window failed"); 4420 error ("Resizing old window failed");
4421 else if (XINT (pixel_size) + XINT (o->new_pixel) 4421 else if (XFIXNUM (pixel_size) + XFIXNUM (o->new_pixel)
4422 != (horflag ? o->pixel_width : o->pixel_height)) 4422 != (horflag ? o->pixel_width : o->pixel_height))
4423 error ("Sum of sizes of old and new window don't fit"); 4423 error ("Sum of sizes of old and new window don't fit");
4424 } 4424 }
@@ -4511,7 +4511,7 @@ set correctly. See the code of `split-window' for how this is done. */)
4511 while (c) 4511 while (c)
4512 { 4512 {
4513 if (c != n) 4513 if (c != n)
4514 sum = sum + XINT (c->new_total); 4514 sum = sum + XFIXNUM (c->new_total);
4515 c = NILP (c->next) ? 0 : XWINDOW (c->next); 4515 c = NILP (c->next) ? 0 : XWINDOW (c->next);
4516 } 4516 }
4517 wset_new_total (n, make_fixnum ((horflag 4517 wset_new_total (n, make_fixnum ((horflag
@@ -4596,7 +4596,7 @@ Signal an error when WINDOW is the only window on its frame. */)
4596 } 4596 }
4597 4597
4598 if (window_resize_check (r, horflag) 4598 if (window_resize_check (r, horflag)
4599 && (XINT (r->new_pixel) 4599 && (XFIXNUM (r->new_pixel)
4600 == (horflag ? r->pixel_width : r->pixel_height))) 4600 == (horflag ? r->pixel_width : r->pixel_height)))
4601 /* We can delete WINDOW now. */ 4601 /* We can delete WINDOW now. */
4602 { 4602 {
@@ -4735,12 +4735,12 @@ grow_mini_window (struct window *w, int delta, bool pixelwise)
4735 4735
4736 if (pixelwise) 4736 if (pixelwise)
4737 { 4737 {
4738 pixel_height = min (-XINT (height), INT_MAX - w->pixel_height); 4738 pixel_height = min (-XFIXNUM (height), INT_MAX - w->pixel_height);
4739 line_height = pixel_height / FRAME_LINE_HEIGHT (f); 4739 line_height = pixel_height / FRAME_LINE_HEIGHT (f);
4740 } 4740 }
4741 else 4741 else
4742 { 4742 {
4743 line_height = min (-XINT (height), 4743 line_height = min (-XFIXNUM (height),
4744 ((INT_MAX - w->pixel_height) 4744 ((INT_MAX - w->pixel_height)
4745 / FRAME_LINE_HEIGHT (f))); 4745 / FRAME_LINE_HEIGHT (f)));
4746 pixel_height = line_height * FRAME_LINE_HEIGHT (f); 4746 pixel_height = line_height * FRAME_LINE_HEIGHT (f);
@@ -4831,13 +4831,13 @@ DEFUN ("resize-mini-window-internal", Fresize_mini_window_internal, Sresize_mini
4831 r = XWINDOW (FRAME_ROOT_WINDOW (f)); 4831 r = XWINDOW (FRAME_ROOT_WINDOW (f));
4832 height = r->pixel_height + w->pixel_height; 4832 height = r->pixel_height + w->pixel_height;
4833 if (window_resize_check (r, false) 4833 if (window_resize_check (r, false)
4834 && XINT (w->new_pixel) > 0 4834 && XFIXNUM (w->new_pixel) > 0
4835 && height == XINT (r->new_pixel) + XINT (w->new_pixel)) 4835 && height == XFIXNUM (r->new_pixel) + XFIXNUM (w->new_pixel))
4836 { 4836 {
4837 block_input (); 4837 block_input ();
4838 window_resize_apply (r, false); 4838 window_resize_apply (r, false);
4839 4839
4840 w->pixel_height = XFASTINT (w->new_pixel); 4840 w->pixel_height = XFIXNAT (w->new_pixel);
4841 w->total_lines = w->pixel_height / FRAME_LINE_HEIGHT (f); 4841 w->total_lines = w->pixel_height / FRAME_LINE_HEIGHT (f);
4842 w->pixel_top = r->pixel_top + r->pixel_height; 4842 w->pixel_top = r->pixel_top + r->pixel_height;
4843 w->top_line = r->top_line + r->total_lines; 4843 w->top_line = r->top_line + r->total_lines;
@@ -5128,9 +5128,9 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror)
5128 /* If there are other text lines above the current row, 5128 /* If there are other text lines above the current row,
5129 move window start to current row. Else to next row. */ 5129 move window start to current row. Else to next row. */
5130 if (rbot > 0) 5130 if (rbot > 0)
5131 spos = XINT (Fline_beginning_position (Qnil)); 5131 spos = XFIXNUM (Fline_beginning_position (Qnil));
5132 else 5132 else
5133 spos = min (XINT (Fline_end_position (Qnil)) + 1, ZV); 5133 spos = min (XFIXNUM (Fline_end_position (Qnil)) + 1, ZV);
5134 set_marker_restricted (w->start, make_fixnum (spos), 5134 set_marker_restricted (w->start, make_fixnum (spos),
5135 w->contents); 5135 w->contents);
5136 w->start_at_line_beg = true; 5136 w->start_at_line_beg = true;
@@ -5589,7 +5589,7 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror)
5589 SET_PT_BOTH (pos, pos_byte); 5589 SET_PT_BOTH (pos, pos_byte);
5590 tem = Fvertical_motion (make_fixnum (ht - this_scroll_margin), window, 5590 tem = Fvertical_motion (make_fixnum (ht - this_scroll_margin), window,
5591 Qnil); 5591 Qnil);
5592 if (XFASTINT (tem) == ht - this_scroll_margin) 5592 if (XFIXNAT (tem) == ht - this_scroll_margin)
5593 bottom_margin = PT; 5593 bottom_margin = PT;
5594 else 5594 else
5595 bottom_margin = PT + 1; 5595 bottom_margin = PT + 1;
@@ -5680,7 +5680,7 @@ scroll_command (Lisp_Object window, Lisp_Object n, int direction)
5680 else 5680 else
5681 { 5681 {
5682 n = Fprefix_numeric_value (n); 5682 n = Fprefix_numeric_value (n);
5683 window_scroll (window, XINT (n) * direction, false, false); 5683 window_scroll (window, XFIXNUM (n) * direction, false, false);
5684 } 5684 }
5685 5685
5686 if (other_window) 5686 if (other_window)
@@ -5804,7 +5804,7 @@ by this function. This happens in an interactive call. */)
5804 struct window *w = XWINDOW (selected_window); 5804 struct window *w = XWINDOW (selected_window);
5805 EMACS_INT requested_arg = (NILP (arg) 5805 EMACS_INT requested_arg = (NILP (arg)
5806 ? window_body_width (w, 0) - 2 5806 ? window_body_width (w, 0) - 2
5807 : XINT (Fprefix_numeric_value (arg))); 5807 : XFIXNUM (Fprefix_numeric_value (arg)));
5808 Lisp_Object result = set_window_hscroll (w, w->hscroll + requested_arg); 5808 Lisp_Object result = set_window_hscroll (w, w->hscroll + requested_arg);
5809 5809
5810 if (!NILP (set_minimum)) 5810 if (!NILP (set_minimum))
@@ -5829,7 +5829,7 @@ by this function. This happens in an interactive call. */)
5829 struct window *w = XWINDOW (selected_window); 5829 struct window *w = XWINDOW (selected_window);
5830 EMACS_INT requested_arg = (NILP (arg) 5830 EMACS_INT requested_arg = (NILP (arg)
5831 ? window_body_width (w, 0) - 2 5831 ? window_body_width (w, 0) - 2
5832 : XINT (Fprefix_numeric_value (arg))); 5832 : XFIXNUM (Fprefix_numeric_value (arg)));
5833 Lisp_Object result = set_window_hscroll (w, w->hscroll - requested_arg); 5833 Lisp_Object result = set_window_hscroll (w, w->hscroll - requested_arg);
5834 5834
5835 if (!NILP (set_minimum)) 5835 if (!NILP (set_minimum))
@@ -5962,7 +5962,7 @@ and redisplay normally--don't erase and redraw the frame. */)
5962 { 5962 {
5963 arg = Fprefix_numeric_value (arg); 5963 arg = Fprefix_numeric_value (arg);
5964 CHECK_FIXNUM (arg); 5964 CHECK_FIXNUM (arg);
5965 iarg = XINT (arg); 5965 iarg = XFIXNUM (arg);
5966 } 5966 }
5967 5967
5968 /* Do this after making BUF current 5968 /* Do this after making BUF current
@@ -6210,7 +6210,7 @@ from the top of the window. */)
6210 XSETFASTINT (arg, lines / 2); 6210 XSETFASTINT (arg, lines / 2);
6211 else 6211 else
6212 { 6212 {
6213 EMACS_INT iarg = XINT (Fprefix_numeric_value (arg)); 6213 EMACS_INT iarg = XFIXNUM (Fprefix_numeric_value (arg));
6214 6214
6215 if (iarg < 0) 6215 if (iarg < 0)
6216 iarg = iarg + lines; 6216 iarg = iarg + lines;
@@ -6233,7 +6233,7 @@ from the top of the window. */)
6233 6233
6234 /* Skip past a partially visible first line. */ 6234 /* Skip past a partially visible first line. */
6235 if (w->vscroll) 6235 if (w->vscroll)
6236 XSETINT (arg, XINT (arg) + 1); 6236 XSETINT (arg, XFIXNUM (arg) + 1);
6237 6237
6238 return Fvertical_motion (arg, window, Qnil); 6238 return Fvertical_motion (arg, window, Qnil);
6239} 6239}
@@ -6471,14 +6471,14 @@ the return value is nil. Otherwise the value is t. */)
6471 6471
6472 if (!NILP (p->parent)) 6472 if (!NILP (p->parent))
6473 wset_parent 6473 wset_parent
6474 (w, SAVED_WINDOW_N (saved_windows, XFASTINT (p->parent))->window); 6474 (w, SAVED_WINDOW_N (saved_windows, XFIXNAT (p->parent))->window);
6475 else 6475 else
6476 wset_parent (w, Qnil); 6476 wset_parent (w, Qnil);
6477 6477
6478 if (!NILP (p->prev)) 6478 if (!NILP (p->prev))
6479 { 6479 {
6480 wset_prev 6480 wset_prev
6481 (w, SAVED_WINDOW_N (saved_windows, XFASTINT (p->prev))->window); 6481 (w, SAVED_WINDOW_N (saved_windows, XFIXNAT (p->prev))->window);
6482 wset_next (XWINDOW (w->prev), p->window); 6482 wset_next (XWINDOW (w->prev), p->window);
6483 } 6483 }
6484 else 6484 else
@@ -6486,7 +6486,7 @@ the return value is nil. Otherwise the value is t. */)
6486 wset_prev (w, Qnil); 6486 wset_prev (w, Qnil);
6487 if (!NILP (w->parent)) 6487 if (!NILP (w->parent))
6488 wset_combination (XWINDOW (w->parent), 6488 wset_combination (XWINDOW (w->parent),
6489 (XINT (p->total_cols) 6489 (XFIXNUM (p->total_cols)
6490 != XWINDOW (w->parent)->total_cols), 6490 != XWINDOW (w->parent)->total_cols),
6491 p->window); 6491 p->window);
6492 } 6492 }
@@ -6494,32 +6494,32 @@ the return value is nil. Otherwise the value is t. */)
6494 /* If we squirreled away the buffer, restore it now. */ 6494 /* If we squirreled away the buffer, restore it now. */
6495 if (BUFFERP (w->combination_limit)) 6495 if (BUFFERP (w->combination_limit))
6496 wset_buffer (w, w->combination_limit); 6496 wset_buffer (w, w->combination_limit);
6497 w->pixel_left = XFASTINT (p->pixel_left); 6497 w->pixel_left = XFIXNAT (p->pixel_left);
6498 w->pixel_top = XFASTINT (p->pixel_top); 6498 w->pixel_top = XFIXNAT (p->pixel_top);
6499 w->pixel_width = XFASTINT (p->pixel_width); 6499 w->pixel_width = XFIXNAT (p->pixel_width);
6500 w->pixel_height = XFASTINT (p->pixel_height); 6500 w->pixel_height = XFIXNAT (p->pixel_height);
6501 w->pixel_width_before_size_change 6501 w->pixel_width_before_size_change
6502 = XFASTINT (p->pixel_width_before_size_change); 6502 = XFIXNAT (p->pixel_width_before_size_change);
6503 w->pixel_height_before_size_change 6503 w->pixel_height_before_size_change
6504 = XFASTINT (p->pixel_height_before_size_change); 6504 = XFIXNAT (p->pixel_height_before_size_change);
6505 w->left_col = XFASTINT (p->left_col); 6505 w->left_col = XFIXNAT (p->left_col);
6506 w->top_line = XFASTINT (p->top_line); 6506 w->top_line = XFIXNAT (p->top_line);
6507 w->total_cols = XFASTINT (p->total_cols); 6507 w->total_cols = XFIXNAT (p->total_cols);
6508 w->total_lines = XFASTINT (p->total_lines); 6508 w->total_lines = XFIXNAT (p->total_lines);
6509 wset_normal_cols (w, p->normal_cols); 6509 wset_normal_cols (w, p->normal_cols);
6510 wset_normal_lines (w, p->normal_lines); 6510 wset_normal_lines (w, p->normal_lines);
6511 w->hscroll = XFASTINT (p->hscroll); 6511 w->hscroll = XFIXNAT (p->hscroll);
6512 w->suspend_auto_hscroll = !NILP (p->suspend_auto_hscroll); 6512 w->suspend_auto_hscroll = !NILP (p->suspend_auto_hscroll);
6513 w->min_hscroll = XFASTINT (p->min_hscroll); 6513 w->min_hscroll = XFIXNAT (p->min_hscroll);
6514 w->hscroll_whole = XFASTINT (p->hscroll_whole); 6514 w->hscroll_whole = XFIXNAT (p->hscroll_whole);
6515 wset_display_table (w, p->display_table); 6515 wset_display_table (w, p->display_table);
6516 w->left_margin_cols = XINT (p->left_margin_cols); 6516 w->left_margin_cols = XFIXNUM (p->left_margin_cols);
6517 w->right_margin_cols = XINT (p->right_margin_cols); 6517 w->right_margin_cols = XFIXNUM (p->right_margin_cols);
6518 w->left_fringe_width = XINT (p->left_fringe_width); 6518 w->left_fringe_width = XFIXNUM (p->left_fringe_width);
6519 w->right_fringe_width = XINT (p->right_fringe_width); 6519 w->right_fringe_width = XFIXNUM (p->right_fringe_width);
6520 w->fringes_outside_margins = !NILP (p->fringes_outside_margins); 6520 w->fringes_outside_margins = !NILP (p->fringes_outside_margins);
6521 w->scroll_bar_width = XINT (p->scroll_bar_width); 6521 w->scroll_bar_width = XFIXNUM (p->scroll_bar_width);
6522 w->scroll_bar_height = XINT (p->scroll_bar_height); 6522 w->scroll_bar_height = XFIXNUM (p->scroll_bar_height);
6523 wset_vertical_scroll_bar_type (w, p->vertical_scroll_bar_type); 6523 wset_vertical_scroll_bar_type (w, p->vertical_scroll_bar_type);
6524 wset_horizontal_scroll_bar_type (w, p->horizontal_scroll_bar_type); 6524 wset_horizontal_scroll_bar_type (w, p->horizontal_scroll_bar_type);
6525 wset_dedicated (w, p->dedicated); 6525 wset_dedicated (w, p->dedicated);
@@ -7042,7 +7042,7 @@ extract_dimension (Lisp_Object dimension)
7042 if (NILP (dimension)) 7042 if (NILP (dimension))
7043 return -1; 7043 return -1;
7044 CHECK_RANGED_INTEGER (dimension, 0, INT_MAX); 7044 CHECK_RANGED_INTEGER (dimension, 0, INT_MAX);
7045 return XINT (dimension); 7045 return XFIXNUM (dimension);
7046} 7046}
7047 7047
7048static struct window * 7048static struct window *