diff options
| author | Tom Tromey | 2018-07-06 21:56:17 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-07-12 22:12:27 -0600 |
| commit | 42fe787b0f26c2df682b2797407a669ef8522ccb (patch) | |
| tree | e944fe465e2b65703a8361bc82647faf4f7907f1 /src/window.c | |
| parent | 01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff) | |
| download | emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip | |
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, 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/sysdep.c, src/term.c, src/terminal.c,
src/textprop.c, src/undo.c, src/w16select.c, src/w32.c,
src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c,
src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c,
src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c,
src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c,
src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename
INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM,
make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP,
NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 242 |
1 files changed, 121 insertions, 121 deletions
diff --git a/src/window.c b/src/window.c index 422b06a49fe..e3b0c3a66a5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -695,7 +695,7 @@ one. The window with the lowest use time is the least recently | |||
| 695 | selected one. */) | 695 | selected one. */) |
| 696 | (Lisp_Object window) | 696 | (Lisp_Object window) |
| 697 | { | 697 | { |
| 698 | return make_number (decode_live_window (window)->use_time); | 698 | return make_fixnum (decode_live_window (window)->use_time); |
| 699 | } | 699 | } |
| 700 | 700 | ||
| 701 | DEFUN ("window-pixel-width", Fwindow_pixel_width, Swindow_pixel_width, 0, 1, 0, | 701 | DEFUN ("window-pixel-width", Fwindow_pixel_width, Swindow_pixel_width, 0, 1, 0, |
| @@ -708,7 +708,7 @@ an internal window, its pixel width is the width of the screen areas | |||
| 708 | spanned by its children. */) | 708 | spanned by its children. */) |
| 709 | (Lisp_Object window) | 709 | (Lisp_Object window) |
| 710 | { | 710 | { |
| 711 | return make_number (decode_valid_window (window)->pixel_width); | 711 | return make_fixnum (decode_valid_window (window)->pixel_width); |
| 712 | } | 712 | } |
| 713 | 713 | ||
| 714 | DEFUN ("window-pixel-height", Fwindow_pixel_height, Swindow_pixel_height, 0, 1, 0, | 714 | DEFUN ("window-pixel-height", Fwindow_pixel_height, Swindow_pixel_height, 0, 1, 0, |
| @@ -720,7 +720,7 @@ divider, if any. If WINDOW is an internal window, its pixel height is | |||
| 720 | the height of the screen areas spanned by its children. */) | 720 | the height of the screen areas spanned by its children. */) |
| 721 | (Lisp_Object window) | 721 | (Lisp_Object window) |
| 722 | { | 722 | { |
| 723 | return make_number (decode_valid_window (window)->pixel_height); | 723 | return make_fixnum (decode_valid_window (window)->pixel_height); |
| 724 | } | 724 | } |
| 725 | 725 | ||
| 726 | DEFUN ("window-pixel-width-before-size-change", | 726 | DEFUN ("window-pixel-width-before-size-change", |
| @@ -734,7 +734,7 @@ The return value is the pixel width of WINDOW at the last time | |||
| 734 | after that. */) | 734 | after that. */) |
| 735 | (Lisp_Object window) | 735 | (Lisp_Object window) |
| 736 | { | 736 | { |
| 737 | return (make_number | 737 | return (make_fixnum |
| 738 | (decode_valid_window (window)->pixel_width_before_size_change)); | 738 | (decode_valid_window (window)->pixel_width_before_size_change)); |
| 739 | } | 739 | } |
| 740 | 740 | ||
| @@ -749,7 +749,7 @@ The return value is the pixel height of WINDOW at the last time | |||
| 749 | after that. */) | 749 | after that. */) |
| 750 | (Lisp_Object window) | 750 | (Lisp_Object window) |
| 751 | { | 751 | { |
| 752 | return (make_number | 752 | return (make_fixnum |
| 753 | (decode_valid_window (window)->pixel_height_before_size_change)); | 753 | (decode_valid_window (window)->pixel_height_before_size_change)); |
| 754 | } | 754 | } |
| 755 | 755 | ||
| @@ -778,12 +778,12 @@ total height of WINDOW. */) | |||
| 778 | struct window *w = decode_valid_window (window); | 778 | struct window *w = decode_valid_window (window); |
| 779 | 779 | ||
| 780 | if (! EQ (round, Qfloor) && ! EQ (round, Qceiling)) | 780 | if (! EQ (round, Qfloor) && ! EQ (round, Qceiling)) |
| 781 | return make_number (w->total_lines); | 781 | return make_fixnum (w->total_lines); |
| 782 | else | 782 | else |
| 783 | { | 783 | { |
| 784 | int unit = FRAME_LINE_HEIGHT (WINDOW_XFRAME (w)); | 784 | int unit = FRAME_LINE_HEIGHT (WINDOW_XFRAME (w)); |
| 785 | 785 | ||
| 786 | return make_number (EQ (round, Qceiling) | 786 | return make_fixnum (EQ (round, Qceiling) |
| 787 | ? ((w->pixel_height + unit - 1) /unit) | 787 | ? ((w->pixel_height + unit - 1) /unit) |
| 788 | : (w->pixel_height / unit)); | 788 | : (w->pixel_height / unit)); |
| 789 | } | 789 | } |
| @@ -815,12 +815,12 @@ total width of WINDOW. */) | |||
| 815 | struct window *w = decode_valid_window (window); | 815 | struct window *w = decode_valid_window (window); |
| 816 | 816 | ||
| 817 | if (! EQ (round, Qfloor) && ! EQ (round, Qceiling)) | 817 | if (! EQ (round, Qfloor) && ! EQ (round, Qceiling)) |
| 818 | return make_number (w->total_cols); | 818 | return make_fixnum (w->total_cols); |
| 819 | else | 819 | else |
| 820 | { | 820 | { |
| 821 | int unit = FRAME_COLUMN_WIDTH (WINDOW_XFRAME (w)); | 821 | int unit = FRAME_COLUMN_WIDTH (WINDOW_XFRAME (w)); |
| 822 | 822 | ||
| 823 | return make_number (EQ (round, Qceiling) | 823 | return make_fixnum (EQ (round, Qceiling) |
| 824 | ? ((w->pixel_width + unit - 1) /unit) | 824 | ? ((w->pixel_width + unit - 1) /unit) |
| 825 | : (w->pixel_width / unit)); | 825 | : (w->pixel_width / unit)); |
| 826 | } | 826 | } |
| @@ -898,7 +898,7 @@ DEFUN ("window-pixel-left", Fwindow_pixel_left, Swindow_pixel_left, 0, 1, 0, | |||
| 898 | WINDOW must be a valid window and defaults to the selected one. */) | 898 | WINDOW must be a valid window and defaults to the selected one. */) |
| 899 | (Lisp_Object window) | 899 | (Lisp_Object window) |
| 900 | { | 900 | { |
| 901 | return make_number (decode_valid_window (window)->pixel_left); | 901 | return make_fixnum (decode_valid_window (window)->pixel_left); |
| 902 | } | 902 | } |
| 903 | 903 | ||
| 904 | DEFUN ("window-pixel-top", Fwindow_pixel_top, Swindow_pixel_top, 0, 1, 0, | 904 | DEFUN ("window-pixel-top", Fwindow_pixel_top, Swindow_pixel_top, 0, 1, 0, |
| @@ -906,7 +906,7 @@ DEFUN ("window-pixel-top", Fwindow_pixel_top, Swindow_pixel_top, 0, 1, 0, | |||
| 906 | WINDOW must be a valid window and defaults to the selected one. */) | 906 | WINDOW must be a valid window and defaults to the selected one. */) |
| 907 | (Lisp_Object window) | 907 | (Lisp_Object window) |
| 908 | { | 908 | { |
| 909 | return make_number (decode_valid_window (window)->pixel_top); | 909 | return make_fixnum (decode_valid_window (window)->pixel_top); |
| 910 | } | 910 | } |
| 911 | 911 | ||
| 912 | DEFUN ("window-left-column", Fwindow_left_column, Swindow_left_column, 0, 1, 0, | 912 | DEFUN ("window-left-column", Fwindow_left_column, Swindow_left_column, 0, 1, 0, |
| @@ -918,7 +918,7 @@ value is 0 if there is no window to the left of WINDOW. | |||
| 918 | WINDOW must be a valid window and defaults to the selected one. */) | 918 | WINDOW must be a valid window and defaults to the selected one. */) |
| 919 | (Lisp_Object window) | 919 | (Lisp_Object window) |
| 920 | { | 920 | { |
| 921 | return make_number (decode_valid_window (window)->left_col); | 921 | return make_fixnum (decode_valid_window (window)->left_col); |
| 922 | } | 922 | } |
| 923 | 923 | ||
| 924 | DEFUN ("window-top-line", Fwindow_top_line, Swindow_top_line, 0, 1, 0, | 924 | DEFUN ("window-top-line", Fwindow_top_line, Swindow_top_line, 0, 1, 0, |
| @@ -930,7 +930,7 @@ there is no window above WINDOW. | |||
| 930 | WINDOW must be a valid window and defaults to the selected one. */) | 930 | WINDOW must be a valid window and defaults to the selected one. */) |
| 931 | (Lisp_Object window) | 931 | (Lisp_Object window) |
| 932 | { | 932 | { |
| 933 | return make_number (decode_valid_window (window)->top_line); | 933 | return make_fixnum (decode_valid_window (window)->top_line); |
| 934 | } | 934 | } |
| 935 | 935 | ||
| 936 | /* Return the number of lines/pixels of W's body. Don't count any mode | 936 | /* Return the number of lines/pixels of W's body. Don't count any mode |
| @@ -997,7 +997,7 @@ means that if a line at the bottom of the text area is only partially | |||
| 997 | visible, that line is not counted. */) | 997 | visible, that line is not counted. */) |
| 998 | (Lisp_Object window, Lisp_Object pixelwise) | 998 | (Lisp_Object window, Lisp_Object pixelwise) |
| 999 | { | 999 | { |
| 1000 | return make_number (window_body_height (decode_live_window (window), | 1000 | return make_fixnum (window_body_height (decode_live_window (window), |
| 1001 | !NILP (pixelwise))); | 1001 | !NILP (pixelwise))); |
| 1002 | } | 1002 | } |
| 1003 | 1003 | ||
| @@ -1017,7 +1017,7 @@ Note that the returned value includes the column reserved for the | |||
| 1017 | continuation glyph. */) | 1017 | continuation glyph. */) |
| 1018 | (Lisp_Object window, Lisp_Object pixelwise) | 1018 | (Lisp_Object window, Lisp_Object pixelwise) |
| 1019 | { | 1019 | { |
| 1020 | return make_number (window_body_width (decode_live_window (window), | 1020 | return make_fixnum (window_body_width (decode_live_window (window), |
| 1021 | !NILP (pixelwise))); | 1021 | !NILP (pixelwise))); |
| 1022 | } | 1022 | } |
| 1023 | 1023 | ||
| @@ -1027,7 +1027,7 @@ DEFUN ("window-mode-line-height", Fwindow_mode_line_height, | |||
| 1027 | WINDOW must be a live window and defaults to the selected one. */) | 1027 | WINDOW must be a live window and defaults to the selected one. */) |
| 1028 | (Lisp_Object window) | 1028 | (Lisp_Object window) |
| 1029 | { | 1029 | { |
| 1030 | return (make_number (WINDOW_MODE_LINE_HEIGHT (decode_live_window (window)))); | 1030 | return (make_fixnum (WINDOW_MODE_LINE_HEIGHT (decode_live_window (window)))); |
| 1031 | } | 1031 | } |
| 1032 | 1032 | ||
| 1033 | DEFUN ("window-header-line-height", Fwindow_header_line_height, | 1033 | DEFUN ("window-header-line-height", Fwindow_header_line_height, |
| @@ -1036,7 +1036,7 @@ DEFUN ("window-header-line-height", Fwindow_header_line_height, | |||
| 1036 | WINDOW must be a live window and defaults to the selected one. */) | 1036 | WINDOW must be a live window and defaults to the selected one. */) |
| 1037 | (Lisp_Object window) | 1037 | (Lisp_Object window) |
| 1038 | { | 1038 | { |
| 1039 | return (make_number (WINDOW_HEADER_LINE_HEIGHT (decode_live_window (window)))); | 1039 | return (make_fixnum (WINDOW_HEADER_LINE_HEIGHT (decode_live_window (window)))); |
| 1040 | } | 1040 | } |
| 1041 | 1041 | ||
| 1042 | DEFUN ("window-right-divider-width", Fwindow_right_divider_width, | 1042 | DEFUN ("window-right-divider-width", Fwindow_right_divider_width, |
| @@ -1045,7 +1045,7 @@ DEFUN ("window-right-divider-width", Fwindow_right_divider_width, | |||
| 1045 | WINDOW must be a live window and defaults to the selected one. */) | 1045 | WINDOW must be a live window and defaults to the selected one. */) |
| 1046 | (Lisp_Object window) | 1046 | (Lisp_Object window) |
| 1047 | { | 1047 | { |
| 1048 | return (make_number (WINDOW_RIGHT_DIVIDER_WIDTH (decode_live_window (window)))); | 1048 | return (make_fixnum (WINDOW_RIGHT_DIVIDER_WIDTH (decode_live_window (window)))); |
| 1049 | } | 1049 | } |
| 1050 | 1050 | ||
| 1051 | DEFUN ("window-bottom-divider-width", Fwindow_bottom_divider_width, | 1051 | DEFUN ("window-bottom-divider-width", Fwindow_bottom_divider_width, |
| @@ -1054,7 +1054,7 @@ DEFUN ("window-bottom-divider-width", Fwindow_bottom_divider_width, | |||
| 1054 | WINDOW must be a live window and defaults to the selected one. */) | 1054 | WINDOW must be a live window and defaults to the selected one. */) |
| 1055 | (Lisp_Object window) | 1055 | (Lisp_Object window) |
| 1056 | { | 1056 | { |
| 1057 | return (make_number (WINDOW_BOTTOM_DIVIDER_WIDTH (decode_live_window (window)))); | 1057 | return (make_fixnum (WINDOW_BOTTOM_DIVIDER_WIDTH (decode_live_window (window)))); |
| 1058 | } | 1058 | } |
| 1059 | 1059 | ||
| 1060 | DEFUN ("window-scroll-bar-width", Fwindow_scroll_bar_width, | 1060 | DEFUN ("window-scroll-bar-width", Fwindow_scroll_bar_width, |
| @@ -1063,7 +1063,7 @@ DEFUN ("window-scroll-bar-width", Fwindow_scroll_bar_width, | |||
| 1063 | WINDOW must be a live window and defaults to the selected one. */) | 1063 | WINDOW must be a live window and defaults to the selected one. */) |
| 1064 | (Lisp_Object window) | 1064 | (Lisp_Object window) |
| 1065 | { | 1065 | { |
| 1066 | return (make_number (WINDOW_SCROLL_BAR_AREA_WIDTH (decode_live_window (window)))); | 1066 | return (make_fixnum (WINDOW_SCROLL_BAR_AREA_WIDTH (decode_live_window (window)))); |
| 1067 | } | 1067 | } |
| 1068 | 1068 | ||
| 1069 | DEFUN ("window-scroll-bar-height", Fwindow_scroll_bar_height, | 1069 | DEFUN ("window-scroll-bar-height", Fwindow_scroll_bar_height, |
| @@ -1072,7 +1072,7 @@ DEFUN ("window-scroll-bar-height", Fwindow_scroll_bar_height, | |||
| 1072 | WINDOW must be a live window and defaults to the selected one. */) | 1072 | WINDOW must be a live window and defaults to the selected one. */) |
| 1073 | (Lisp_Object window) | 1073 | (Lisp_Object window) |
| 1074 | { | 1074 | { |
| 1075 | return (make_number (WINDOW_SCROLL_BAR_AREA_HEIGHT (decode_live_window (window)))); | 1075 | return (make_fixnum (WINDOW_SCROLL_BAR_AREA_HEIGHT (decode_live_window (window)))); |
| 1076 | } | 1076 | } |
| 1077 | 1077 | ||
| 1078 | DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, | 1078 | DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, |
| @@ -1080,7 +1080,7 @@ DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, | |||
| 1080 | WINDOW must be a live window and defaults to the selected one. */) | 1080 | WINDOW must be a live window and defaults to the selected one. */) |
| 1081 | (Lisp_Object window) | 1081 | (Lisp_Object window) |
| 1082 | { | 1082 | { |
| 1083 | return make_number (decode_live_window (window)->hscroll); | 1083 | return make_fixnum (decode_live_window (window)->hscroll); |
| 1084 | } | 1084 | } |
| 1085 | 1085 | ||
| 1086 | /* Set W's horizontal scroll amount to HSCROLL clipped to a reasonable | 1086 | /* Set W's horizontal scroll amount to HSCROLL clipped to a reasonable |
| @@ -1104,7 +1104,7 @@ set_window_hscroll (struct window *w, EMACS_INT hscroll) | |||
| 1104 | w->hscroll = new_hscroll; | 1104 | w->hscroll = new_hscroll; |
| 1105 | w->suspend_auto_hscroll = true; | 1105 | w->suspend_auto_hscroll = true; |
| 1106 | 1106 | ||
| 1107 | return make_number (new_hscroll); | 1107 | return make_fixnum (new_hscroll); |
| 1108 | } | 1108 | } |
| 1109 | 1109 | ||
| 1110 | DEFUN ("set-window-hscroll", Fset_window_hscroll, Sset_window_hscroll, 2, 2, 0, | 1110 | DEFUN ("set-window-hscroll", Fset_window_hscroll, Sset_window_hscroll, 2, 2, 0, |
| @@ -1117,7 +1117,7 @@ Note that if `automatic-hscrolling' is non-nil, you cannot scroll the | |||
| 1117 | window so that the location of point moves off-window. */) | 1117 | 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_NUMBER (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), XINT (ncol)); |
| 1122 | } | 1122 | } |
| 1123 | 1123 | ||
| @@ -1383,8 +1383,8 @@ If they are in the windows's left or right marginal areas, `left-margin'\n\ | |||
| 1383 | CHECK_CONS (coordinates); | 1383 | CHECK_CONS (coordinates); |
| 1384 | lx = Fcar (coordinates); | 1384 | lx = Fcar (coordinates); |
| 1385 | ly = Fcdr (coordinates); | 1385 | ly = Fcdr (coordinates); |
| 1386 | CHECK_NUMBER_OR_FLOAT (lx); | 1386 | CHECK_FIXNUM_OR_FLOAT (lx); |
| 1387 | CHECK_NUMBER_OR_FLOAT (ly); | 1387 | CHECK_FIXNUM_OR_FLOAT (ly); |
| 1388 | x = FRAME_PIXEL_X_FROM_CANON_X (f, lx) + FRAME_INTERNAL_BORDER_WIDTH (f); | 1388 | x = FRAME_PIXEL_X_FROM_CANON_X (f, lx) + FRAME_INTERNAL_BORDER_WIDTH (f); |
| 1389 | y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly) + FRAME_INTERNAL_BORDER_WIDTH (f); | 1389 | y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly) + FRAME_INTERNAL_BORDER_WIDTH (f); |
| 1390 | 1390 | ||
| @@ -1534,8 +1534,8 @@ column 0. */) | |||
| 1534 | struct frame *f = decode_live_frame (frame); | 1534 | struct frame *f = decode_live_frame (frame); |
| 1535 | 1535 | ||
| 1536 | /* Check that arguments are integers or floats. */ | 1536 | /* Check that arguments are integers or floats. */ |
| 1537 | CHECK_NUMBER_OR_FLOAT (x); | 1537 | CHECK_FIXNUM_OR_FLOAT (x); |
| 1538 | CHECK_NUMBER_OR_FLOAT (y); | 1538 | CHECK_FIXNUM_OR_FLOAT (y); |
| 1539 | 1539 | ||
| 1540 | return window_from_coordinates (f, | 1540 | return window_from_coordinates (f, |
| 1541 | (FRAME_PIXEL_X_FROM_CANON_X (f, x) | 1541 | (FRAME_PIXEL_X_FROM_CANON_X (f, x) |
| @@ -1561,7 +1561,7 @@ correct to return the top-level value of `point', outside of any | |||
| 1561 | register struct window *w = decode_live_window (window); | 1561 | register struct window *w = decode_live_window (window); |
| 1562 | 1562 | ||
| 1563 | if (w == XWINDOW (selected_window)) | 1563 | if (w == XWINDOW (selected_window)) |
| 1564 | return make_number (BUF_PT (XBUFFER (w->contents))); | 1564 | return make_fixnum (BUF_PT (XBUFFER (w->contents))); |
| 1565 | else | 1565 | else |
| 1566 | return Fmarker_position (w->pointm); | 1566 | return Fmarker_position (w->pointm); |
| 1567 | } | 1567 | } |
| @@ -1652,7 +1652,7 @@ if it isn't already recorded. */) | |||
| 1652 | move_it_vertically (&it, window_box_height (w)); | 1652 | move_it_vertically (&it, window_box_height (w)); |
| 1653 | if (it.current_y < it.last_visible_y) | 1653 | if (it.current_y < it.last_visible_y) |
| 1654 | move_it_past_eol (&it); | 1654 | move_it_past_eol (&it); |
| 1655 | value = make_number (IT_CHARPOS (it)); | 1655 | value = make_fixnum (IT_CHARPOS (it)); |
| 1656 | bidi_unshelve_cache (itdata, false); | 1656 | bidi_unshelve_cache (itdata, false); |
| 1657 | 1657 | ||
| 1658 | if (old_buffer) | 1658 | if (old_buffer) |
| @@ -1683,7 +1683,7 @@ Return POS. */) | |||
| 1683 | struct buffer *old_buffer = current_buffer; | 1683 | struct buffer *old_buffer = current_buffer; |
| 1684 | 1684 | ||
| 1685 | /* ... but here we want to catch type error before buffer change. */ | 1685 | /* ... but here we want to catch type error before buffer change. */ |
| 1686 | CHECK_NUMBER_COERCE_MARKER (pos); | 1686 | CHECK_FIXNUM_COERCE_MARKER (pos); |
| 1687 | set_buffer_internal (XBUFFER (w->contents)); | 1687 | set_buffer_internal (XBUFFER (w->contents)); |
| 1688 | Fgoto_char (pos); | 1688 | Fgoto_char (pos); |
| 1689 | set_buffer_internal (old_buffer); | 1689 | set_buffer_internal (old_buffer); |
| @@ -1763,7 +1763,7 @@ POS, ROWH is the visible height of that row, and VPOS is the row number | |||
| 1763 | posint = -1; | 1763 | posint = -1; |
| 1764 | else if (!NILP (pos)) | 1764 | else if (!NILP (pos)) |
| 1765 | { | 1765 | { |
| 1766 | CHECK_NUMBER_COERCE_MARKER (pos); | 1766 | CHECK_FIXNUM_COERCE_MARKER (pos); |
| 1767 | posint = XINT (pos); | 1767 | posint = XINT (pos); |
| 1768 | } | 1768 | } |
| 1769 | else if (w == XWINDOW (selected_window)) | 1769 | else if (w == XWINDOW (selected_window)) |
| @@ -1789,8 +1789,8 @@ POS, ROWH is the visible height of that row, and VPOS is the row number | |||
| 1789 | Lisp_Object part = Qnil; | 1789 | Lisp_Object part = Qnil; |
| 1790 | if (!fully_p) | 1790 | if (!fully_p) |
| 1791 | part = list4i (rtop, rbot, rowh, vpos); | 1791 | part = list4i (rtop, rbot, rowh, vpos); |
| 1792 | in_window = Fcons (make_number (x), | 1792 | in_window = Fcons (make_fixnum (x), |
| 1793 | Fcons (make_number (y), part)); | 1793 | Fcons (make_fixnum (y), part)); |
| 1794 | } | 1794 | } |
| 1795 | 1795 | ||
| 1796 | return in_window; | 1796 | return in_window; |
| @@ -1869,7 +1869,7 @@ Return nil if window display is not up-to-date. In that case, use | |||
| 1869 | : Qnil); | 1869 | : Qnil); |
| 1870 | } | 1870 | } |
| 1871 | 1871 | ||
| 1872 | CHECK_NUMBER (line); | 1872 | CHECK_FIXNUM (line); |
| 1873 | n = XINT (line); | 1873 | n = XINT (line); |
| 1874 | 1874 | ||
| 1875 | row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); | 1875 | row = MATRIX_FIRST_TEXT_ROW (w->current_matrix); |
| @@ -1972,7 +1972,7 @@ though when run from an idle timer with a delay of zero seconds. */) | |||
| 1972 | row = (NILP (body) | 1972 | row = (NILP (body) |
| 1973 | ? MATRIX_ROW (w->current_matrix, 0) | 1973 | ? MATRIX_ROW (w->current_matrix, 0) |
| 1974 | : MATRIX_FIRST_TEXT_ROW (w->current_matrix)); | 1974 | : MATRIX_FIRST_TEXT_ROW (w->current_matrix)); |
| 1975 | else if (NUMBERP (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, XINT (first)); |
| @@ -1985,7 +1985,7 @@ though when run from an idle timer with a delay of zero seconds. */) | |||
| 1985 | end_row = (NILP (body) | 1985 | end_row = (NILP (body) |
| 1986 | ? MATRIX_ROW (w->current_matrix, w->current_matrix->nrows) | 1986 | ? MATRIX_ROW (w->current_matrix, w->current_matrix->nrows) |
| 1987 | : MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w)); | 1987 | : MATRIX_BOTTOM_TEXT_ROW (w->current_matrix, w)); |
| 1988 | else if (NUMBERP (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, XINT (last)); |
| @@ -2001,19 +2001,19 @@ though when run from an idle timer with a delay of zero seconds. */) | |||
| 2001 | { | 2001 | { |
| 2002 | struct glyph *glyph = row->glyphs[TEXT_AREA]; | 2002 | struct glyph *glyph = row->glyphs[TEXT_AREA]; |
| 2003 | 2003 | ||
| 2004 | rows = Fcons (Fcons (make_number | 2004 | rows = Fcons (Fcons (make_fixnum |
| 2005 | (invert | 2005 | (invert |
| 2006 | ? glyph->pixel_width | 2006 | ? glyph->pixel_width |
| 2007 | : window_width - glyph->pixel_width), | 2007 | : window_width - glyph->pixel_width), |
| 2008 | make_number (row->y + row->height - subtract)), | 2008 | make_fixnum (row->y + row->height - subtract)), |
| 2009 | rows); | 2009 | rows); |
| 2010 | } | 2010 | } |
| 2011 | else | 2011 | else |
| 2012 | rows = Fcons (Fcons (make_number | 2012 | rows = Fcons (Fcons (make_fixnum |
| 2013 | (invert | 2013 | (invert |
| 2014 | ? window_width - row->pixel_width | 2014 | ? window_width - row->pixel_width |
| 2015 | : row->pixel_width), | 2015 | : row->pixel_width), |
| 2016 | make_number (row->y + row->height - subtract)), | 2016 | make_fixnum (row->y + row->height - subtract)), |
| 2017 | rows); | 2017 | rows); |
| 2018 | row++; | 2018 | row++; |
| 2019 | } | 2019 | } |
| @@ -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 (INTEGERP (all_frames) && XINT (all_frames) == 0) | 2495 | else if (FIXNUMP (all_frames) && XINT (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 |
| @@ -2551,7 +2551,7 @@ decode_next_window_args (Lisp_Object *window, Lisp_Object *minibuf, Lisp_Object | |||
| 2551 | : Qnil); | 2551 | : Qnil); |
| 2552 | else if (EQ (*all_frames, Qvisible)) | 2552 | else if (EQ (*all_frames, Qvisible)) |
| 2553 | ; | 2553 | ; |
| 2554 | else if (EQ (*all_frames, make_number (0))) | 2554 | else if (EQ (*all_frames, make_fixnum (0))) |
| 2555 | ; | 2555 | ; |
| 2556 | else if (FRAMEP (*all_frames)) | 2556 | else if (FRAMEP (*all_frames)) |
| 2557 | ; | 2557 | ; |
| @@ -2834,7 +2834,7 @@ window_loop (enum window_loop type, Lisp_Object obj, bool mini, | |||
| 2834 | 2834 | ||
| 2835 | if (f) | 2835 | if (f) |
| 2836 | frame_arg = Qlambda; | 2836 | frame_arg = Qlambda; |
| 2837 | else if (EQ (frames, make_number (0))) | 2837 | else if (EQ (frames, make_fixnum (0))) |
| 2838 | frame_arg = frames; | 2838 | frame_arg = frames; |
| 2839 | else if (EQ (frames, Qvisible)) | 2839 | else if (EQ (frames, Qvisible)) |
| 2840 | frame_arg = frames; | 2840 | frame_arg = frames; |
| @@ -3494,8 +3494,8 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, | |||
| 3494 | b->display_error_modiff = 0; | 3494 | b->display_error_modiff = 0; |
| 3495 | 3495 | ||
| 3496 | /* Update time stamps of buffer display. */ | 3496 | /* Update time stamps of buffer display. */ |
| 3497 | if (INTEGERP (BVAR (b, display_count))) | 3497 | if (FIXNUMP (BVAR (b, display_count))) |
| 3498 | bset_display_count (b, make_number (XINT (BVAR (b, display_count)) + 1)); | 3498 | bset_display_count (b, make_fixnum (XINT (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; |
| @@ -3513,7 +3513,7 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, | |||
| 3513 | set_marker_both (w->pointm, buffer, BUF_PT (b), BUF_PT_BYTE (b)); | 3513 | set_marker_both (w->pointm, buffer, BUF_PT (b), BUF_PT_BYTE (b)); |
| 3514 | set_marker_both (w->old_pointm, buffer, BUF_PT (b), BUF_PT_BYTE (b)); | 3514 | set_marker_both (w->old_pointm, buffer, BUF_PT (b), BUF_PT_BYTE (b)); |
| 3515 | set_marker_restricted (w->start, | 3515 | set_marker_restricted (w->start, |
| 3516 | make_number (b->last_window_start), | 3516 | make_fixnum (b->last_window_start), |
| 3517 | buffer); | 3517 | buffer); |
| 3518 | w->start_at_line_beg = false; | 3518 | w->start_at_line_beg = false; |
| 3519 | w->force_start = false; | 3519 | w->force_start = false; |
| @@ -3769,9 +3769,9 @@ make_window (void) | |||
| 3769 | Lisp data to nil, so do it only for slots which should not be nil. */ | 3769 | Lisp data to nil, so do it only for slots which should not be nil. */ |
| 3770 | wset_normal_lines (w, make_float (1.0)); | 3770 | wset_normal_lines (w, make_float (1.0)); |
| 3771 | wset_normal_cols (w, make_float (1.0)); | 3771 | wset_normal_cols (w, make_float (1.0)); |
| 3772 | wset_new_total (w, make_number (0)); | 3772 | wset_new_total (w, make_fixnum (0)); |
| 3773 | wset_new_normal (w, make_number (0)); | 3773 | wset_new_normal (w, make_fixnum (0)); |
| 3774 | wset_new_pixel (w, make_number (0)); | 3774 | wset_new_pixel (w, make_fixnum (0)); |
| 3775 | wset_start (w, Fmake_marker ()); | 3775 | wset_start (w, Fmake_marker ()); |
| 3776 | wset_pointm (w, Fmake_marker ()); | 3776 | wset_pointm (w, Fmake_marker ()); |
| 3777 | wset_old_pointm (w, Fmake_marker ()); | 3777 | wset_old_pointm (w, Fmake_marker ()); |
| @@ -3827,7 +3827,7 @@ Note: This function does not operate on any child windows of WINDOW. */) | |||
| 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_number (XINT (w->new_pixel) + XINT (size))); | 3830 | wset_new_pixel (w, make_fixnum (XINT (w->new_pixel) + XINT (size))); |
| 3831 | 3831 | ||
| 3832 | return w->new_pixel; | 3832 | return w->new_pixel; |
| 3833 | } | 3833 | } |
| @@ -3849,11 +3849,11 @@ Note: This function does not operate on any child windows of WINDOW. */) | |||
| 3849 | { | 3849 | { |
| 3850 | struct window *w = decode_valid_window (window); | 3850 | struct window *w = decode_valid_window (window); |
| 3851 | 3851 | ||
| 3852 | CHECK_NUMBER (size); | 3852 | CHECK_FIXNUM (size); |
| 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_number (XINT (w->new_total) + XINT (size))); | 3856 | wset_new_total (w, make_fixnum (XINT (w->new_total) + XINT (size))); |
| 3857 | 3857 | ||
| 3858 | return w->new_total; | 3858 | return w->new_total; |
| 3859 | } | 3859 | } |
| @@ -3994,7 +3994,7 @@ window_resize_apply (struct window *w, bool horflag) | |||
| 3994 | { | 3994 | { |
| 3995 | w->pixel_width = XFASTINT (w->new_pixel); | 3995 | w->pixel_width = XFASTINT (w->new_pixel); |
| 3996 | w->total_cols = w->pixel_width / unit; | 3996 | w->total_cols = w->pixel_width / unit; |
| 3997 | if (NUMBERP (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); |
| 3999 | 3999 | ||
| 4000 | edge = w->pixel_left; | 4000 | edge = w->pixel_left; |
| @@ -4003,7 +4003,7 @@ window_resize_apply (struct window *w, bool horflag) | |||
| 4003 | { | 4003 | { |
| 4004 | w->pixel_height = XFASTINT (w->new_pixel); | 4004 | w->pixel_height = XFASTINT (w->new_pixel); |
| 4005 | w->total_lines = w->pixel_height / unit; | 4005 | w->total_lines = w->pixel_height / unit; |
| 4006 | if (NUMBERP (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); |
| 4008 | 4008 | ||
| 4009 | edge = w->pixel_top; | 4009 | edge = w->pixel_top; |
| @@ -4369,7 +4369,7 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 4369 | frame = WINDOW_FRAME (o); | 4369 | frame = WINDOW_FRAME (o); |
| 4370 | f = XFRAME (frame); | 4370 | f = XFRAME (frame); |
| 4371 | 4371 | ||
| 4372 | CHECK_NUMBER (pixel_size); | 4372 | CHECK_FIXNUM (pixel_size); |
| 4373 | EMACS_INT total_size | 4373 | EMACS_INT total_size |
| 4374 | = XINT (pixel_size) / (horflag | 4374 | = XINT (pixel_size) / (horflag |
| 4375 | ? FRAME_COLUMN_WIDTH (f) | 4375 | ? FRAME_COLUMN_WIDTH (f) |
| @@ -4406,13 +4406,13 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 4406 | p = XWINDOW (o->parent); | 4406 | p = XWINDOW (o->parent); |
| 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_number ((horflag ? p->pixel_width : p->pixel_height) | 4409 | (p, make_fixnum ((horflag ? p->pixel_width : p->pixel_height) |
| 4410 | - XINT (pixel_size))); | 4410 | - XINT (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 |
| 4414 | /* Undo the temporary pretension. */ | 4414 | /* Undo the temporary pretension. */ |
| 4415 | wset_new_pixel (p, make_number (horflag ? p->pixel_width : p->pixel_height)); | 4415 | wset_new_pixel (p, make_fixnum (horflag ? p->pixel_width : p->pixel_height)); |
| 4416 | } | 4416 | } |
| 4417 | else | 4417 | else |
| 4418 | { | 4418 | { |
| @@ -4440,9 +4440,9 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 4440 | wset_combination_limit (p, Qt); | 4440 | wset_combination_limit (p, Qt); |
| 4441 | /* These get applied below. */ | 4441 | /* These get applied below. */ |
| 4442 | wset_new_pixel | 4442 | wset_new_pixel |
| 4443 | (p, make_number (horflag ? o->pixel_width : o->pixel_height)); | 4443 | (p, make_fixnum (horflag ? o->pixel_width : o->pixel_height)); |
| 4444 | wset_new_total | 4444 | wset_new_total |
| 4445 | (p, make_number (horflag ? o->total_cols : o->total_lines)); | 4445 | (p, make_fixnum (horflag ? o->total_cols : o->total_lines)); |
| 4446 | wset_new_normal (p, new_normal); | 4446 | wset_new_normal (p, new_normal); |
| 4447 | } | 4447 | } |
| 4448 | else | 4448 | else |
| @@ -4514,7 +4514,7 @@ set correctly. See the code of `split-window' for how this is done. */) | |||
| 4514 | sum = sum + XINT (c->new_total); | 4514 | sum = sum + XINT (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_number ((horflag | 4517 | wset_new_total (n, make_fixnum ((horflag |
| 4518 | ? p->total_cols | 4518 | ? p->total_cols |
| 4519 | : p->total_lines) | 4519 | : p->total_lines) |
| 4520 | - sum)); | 4520 | - sum)); |
| @@ -4727,8 +4727,8 @@ grow_mini_window (struct window *w, int delta, bool pixelwise) | |||
| 4727 | root = FRAME_ROOT_WINDOW (f); | 4727 | root = FRAME_ROOT_WINDOW (f); |
| 4728 | r = XWINDOW (root); | 4728 | r = XWINDOW (root); |
| 4729 | height = call3 (Qwindow__resize_root_window_vertically, | 4729 | height = call3 (Qwindow__resize_root_window_vertically, |
| 4730 | root, make_number (- delta), pixelwise ? Qt : Qnil); | 4730 | root, make_fixnum (- delta), pixelwise ? Qt : Qnil); |
| 4731 | if (INTEGERP (height) && window_resize_check (r, false)) | 4731 | if (FIXNUMP (height) && window_resize_check (r, false)) |
| 4732 | { | 4732 | { |
| 4733 | block_input (); | 4733 | block_input (); |
| 4734 | window_resize_apply (r, false); | 4734 | window_resize_apply (r, false); |
| @@ -4784,9 +4784,9 @@ shrink_mini_window (struct window *w, bool pixelwise) | |||
| 4784 | root = FRAME_ROOT_WINDOW (f); | 4784 | root = FRAME_ROOT_WINDOW (f); |
| 4785 | r = XWINDOW (root); | 4785 | r = XWINDOW (root); |
| 4786 | delta = call3 (Qwindow__resize_root_window_vertically, | 4786 | delta = call3 (Qwindow__resize_root_window_vertically, |
| 4787 | root, make_number (height - unit), | 4787 | root, make_fixnum (height - unit), |
| 4788 | pixelwise ? Qt : Qnil); | 4788 | pixelwise ? Qt : Qnil); |
| 4789 | if (INTEGERP (delta) && window_resize_check (r, false)) | 4789 | if (FIXNUMP (delta) && window_resize_check (r, false)) |
| 4790 | { | 4790 | { |
| 4791 | block_input (); | 4791 | block_input (); |
| 4792 | window_resize_apply (r, false); | 4792 | window_resize_apply (r, false); |
| @@ -5105,7 +5105,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5105 | if (w->vscroll < 0 && rtop > 0) | 5105 | if (w->vscroll < 0 && rtop > 0) |
| 5106 | { | 5106 | { |
| 5107 | px = max (0, -w->vscroll - min (rtop, -dy)); | 5107 | px = max (0, -w->vscroll - min (rtop, -dy)); |
| 5108 | Fset_window_vscroll (window, make_number (px), Qt); | 5108 | Fset_window_vscroll (window, make_fixnum (px), Qt); |
| 5109 | return; | 5109 | return; |
| 5110 | } | 5110 | } |
| 5111 | } | 5111 | } |
| @@ -5115,7 +5115,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5115 | if (rbot > 0 && (w->vscroll < 0 || vpos == 0)) | 5115 | if (rbot > 0 && (w->vscroll < 0 || vpos == 0)) |
| 5116 | { | 5116 | { |
| 5117 | px = max (0, -w->vscroll + min (rbot, dy)); | 5117 | px = max (0, -w->vscroll + min (rbot, dy)); |
| 5118 | Fset_window_vscroll (window, make_number (px), Qt); | 5118 | Fset_window_vscroll (window, make_fixnum (px), Qt); |
| 5119 | return; | 5119 | return; |
| 5120 | } | 5120 | } |
| 5121 | 5121 | ||
| @@ -5124,14 +5124,14 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5124 | { | 5124 | { |
| 5125 | ptrdiff_t spos; | 5125 | ptrdiff_t spos; |
| 5126 | 5126 | ||
| 5127 | Fset_window_vscroll (window, make_number (0), Qt); | 5127 | Fset_window_vscroll (window, make_fixnum (0), Qt); |
| 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 = XINT (Fline_beginning_position (Qnil)); |
| 5132 | else | 5132 | else |
| 5133 | spos = min (XINT (Fline_end_position (Qnil)) + 1, ZV); | 5133 | spos = min (XINT (Fline_end_position (Qnil)) + 1, ZV); |
| 5134 | set_marker_restricted (w->start, make_number (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; |
| 5137 | wset_update_mode_line (w); | 5137 | wset_update_mode_line (w); |
| @@ -5143,7 +5143,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5143 | } | 5143 | } |
| 5144 | } | 5144 | } |
| 5145 | /* Cancel previous vscroll. */ | 5145 | /* Cancel previous vscroll. */ |
| 5146 | Fset_window_vscroll (window, make_number (0), Qt); | 5146 | Fset_window_vscroll (window, make_fixnum (0), Qt); |
| 5147 | } | 5147 | } |
| 5148 | 5148 | ||
| 5149 | itdata = bidi_shelve_cache (); | 5149 | itdata = bidi_shelve_cache (); |
| @@ -5448,7 +5448,7 @@ window_scroll_pixel_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5448 | if (adjust_old_pointm) | 5448 | if (adjust_old_pointm) |
| 5449 | Fset_marker (w->old_pointm, | 5449 | Fset_marker (w->old_pointm, |
| 5450 | ((w == XWINDOW (selected_window)) | 5450 | ((w == XWINDOW (selected_window)) |
| 5451 | ? make_number (BUF_PT (XBUFFER (w->contents))) | 5451 | ? make_fixnum (BUF_PT (XBUFFER (w->contents))) |
| 5452 | : Fmarker_position (w->pointm)), | 5452 | : Fmarker_position (w->pointm)), |
| 5453 | w->contents); | 5453 | w->contents); |
| 5454 | } | 5454 | } |
| @@ -5497,8 +5497,8 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5497 | window_scroll_preserve_hpos = posit.hpos + w->hscroll; | 5497 | window_scroll_preserve_hpos = posit.hpos + w->hscroll; |
| 5498 | } | 5498 | } |
| 5499 | 5499 | ||
| 5500 | original_pos = Fcons (make_number (window_scroll_preserve_hpos), | 5500 | original_pos = Fcons (make_fixnum (window_scroll_preserve_hpos), |
| 5501 | make_number (window_scroll_preserve_vpos)); | 5501 | make_fixnum (window_scroll_preserve_vpos)); |
| 5502 | } | 5502 | } |
| 5503 | 5503 | ||
| 5504 | XSETFASTINT (tem, PT); | 5504 | XSETFASTINT (tem, PT); |
| @@ -5506,14 +5506,14 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5506 | 5506 | ||
| 5507 | if (NILP (tem)) | 5507 | if (NILP (tem)) |
| 5508 | { | 5508 | { |
| 5509 | Fvertical_motion (make_number (- (ht / 2)), window, Qnil); | 5509 | Fvertical_motion (make_fixnum (- (ht / 2)), window, Qnil); |
| 5510 | startpos = PT; | 5510 | startpos = PT; |
| 5511 | startbyte = PT_BYTE; | 5511 | startbyte = PT_BYTE; |
| 5512 | } | 5512 | } |
| 5513 | 5513 | ||
| 5514 | SET_PT_BOTH (startpos, startbyte); | 5514 | SET_PT_BOTH (startpos, startbyte); |
| 5515 | lose = n < 0 && PT == BEGV; | 5515 | lose = n < 0 && PT == BEGV; |
| 5516 | Fvertical_motion (make_number (n), window, Qnil); | 5516 | Fvertical_motion (make_fixnum (n), window, Qnil); |
| 5517 | pos = PT; | 5517 | pos = PT; |
| 5518 | pos_byte = PT_BYTE; | 5518 | pos_byte = PT_BYTE; |
| 5519 | bolp = Fbolp (); | 5519 | bolp = Fbolp (); |
| @@ -5555,7 +5555,7 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5555 | if (this_scroll_margin > 0) | 5555 | if (this_scroll_margin > 0) |
| 5556 | { | 5556 | { |
| 5557 | SET_PT_BOTH (pos, pos_byte); | 5557 | SET_PT_BOTH (pos, pos_byte); |
| 5558 | Fvertical_motion (make_number (this_scroll_margin), window, Qnil); | 5558 | Fvertical_motion (make_fixnum (this_scroll_margin), window, Qnil); |
| 5559 | top_margin = PT; | 5559 | top_margin = PT; |
| 5560 | } | 5560 | } |
| 5561 | else | 5561 | else |
| @@ -5574,8 +5574,8 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5574 | else if (window_scroll_preserve_vpos | 5574 | else if (window_scroll_preserve_vpos |
| 5575 | >= w->total_lines - this_scroll_margin) | 5575 | >= w->total_lines - this_scroll_margin) |
| 5576 | nlines = w->total_lines - this_scroll_margin - 1; | 5576 | nlines = w->total_lines - this_scroll_margin - 1; |
| 5577 | Fvertical_motion (Fcons (make_number (window_scroll_preserve_hpos), | 5577 | Fvertical_motion (Fcons (make_fixnum (window_scroll_preserve_hpos), |
| 5578 | make_number (nlines)), window, Qnil); | 5578 | make_fixnum (nlines)), window, Qnil); |
| 5579 | } | 5579 | } |
| 5580 | else | 5580 | else |
| 5581 | SET_PT (top_margin); | 5581 | SET_PT (top_margin); |
| @@ -5587,7 +5587,7 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5587 | /* If we scrolled backward, put point near the end of the window | 5587 | /* If we scrolled backward, put point near the end of the window |
| 5588 | but not within the scroll margin. */ | 5588 | but not within the scroll margin. */ |
| 5589 | SET_PT_BOTH (pos, pos_byte); | 5589 | SET_PT_BOTH (pos, pos_byte); |
| 5590 | tem = Fvertical_motion (make_number (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 (XFASTINT (tem) == ht - this_scroll_margin) |
| 5593 | bottom_margin = PT; | 5593 | bottom_margin = PT; |
| @@ -5609,11 +5609,11 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5609 | else if (window_scroll_preserve_vpos | 5609 | else if (window_scroll_preserve_vpos |
| 5610 | >= ht - this_scroll_margin) | 5610 | >= ht - this_scroll_margin) |
| 5611 | nlines = ht - this_scroll_margin - 1; | 5611 | nlines = ht - this_scroll_margin - 1; |
| 5612 | Fvertical_motion (Fcons (make_number (window_scroll_preserve_hpos), | 5612 | Fvertical_motion (Fcons (make_fixnum (window_scroll_preserve_hpos), |
| 5613 | make_number (nlines)), window, Qnil); | 5613 | make_fixnum (nlines)), window, Qnil); |
| 5614 | } | 5614 | } |
| 5615 | else | 5615 | else |
| 5616 | Fvertical_motion (make_number (-1), window, Qnil); | 5616 | Fvertical_motion (make_fixnum (-1), window, Qnil); |
| 5617 | } | 5617 | } |
| 5618 | } | 5618 | } |
| 5619 | } | 5619 | } |
| @@ -5628,7 +5628,7 @@ window_scroll_line_based (Lisp_Object window, int n, bool whole, bool noerror) | |||
| 5628 | if (adjust_old_pointm) | 5628 | if (adjust_old_pointm) |
| 5629 | Fset_marker (w->old_pointm, | 5629 | Fset_marker (w->old_pointm, |
| 5630 | ((w == XWINDOW (selected_window)) | 5630 | ((w == XWINDOW (selected_window)) |
| 5631 | ? make_number (BUF_PT (XBUFFER (w->contents))) | 5631 | ? make_fixnum (BUF_PT (XBUFFER (w->contents))) |
| 5632 | : Fmarker_position (w->pointm)), | 5632 | : Fmarker_position (w->pointm)), |
| 5633 | w->contents); | 5633 | w->contents); |
| 5634 | } | 5634 | } |
| @@ -5961,7 +5961,7 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5961 | else | 5961 | else |
| 5962 | { | 5962 | { |
| 5963 | arg = Fprefix_numeric_value (arg); | 5963 | arg = Fprefix_numeric_value (arg); |
| 5964 | CHECK_NUMBER (arg); | 5964 | CHECK_FIXNUM (arg); |
| 5965 | iarg = XINT (arg); | 5965 | iarg = XINT (arg); |
| 5966 | } | 5966 | } |
| 5967 | 5967 | ||
| @@ -6139,10 +6139,10 @@ pixels. */) | |||
| 6139 | struct window *w = decode_live_window (window); | 6139 | struct window *w = decode_live_window (window); |
| 6140 | 6140 | ||
| 6141 | if (NILP (pixelwise)) | 6141 | if (NILP (pixelwise)) |
| 6142 | return make_number (window_box_width (w, TEXT_AREA) | 6142 | return make_fixnum (window_box_width (w, TEXT_AREA) |
| 6143 | / FRAME_COLUMN_WIDTH (WINDOW_XFRAME (w))); | 6143 | / FRAME_COLUMN_WIDTH (WINDOW_XFRAME (w))); |
| 6144 | else | 6144 | else |
| 6145 | return make_number (window_box_width (w, TEXT_AREA)); | 6145 | return make_fixnum (window_box_width (w, TEXT_AREA)); |
| 6146 | } | 6146 | } |
| 6147 | 6147 | ||
| 6148 | DEFUN ("window-text-height", Fwindow_text_height, Swindow_text_height, | 6148 | DEFUN ("window-text-height", Fwindow_text_height, Swindow_text_height, |
| @@ -6160,10 +6160,10 @@ pixels. */) | |||
| 6160 | struct window *w = decode_live_window (window); | 6160 | struct window *w = decode_live_window (window); |
| 6161 | 6161 | ||
| 6162 | if (NILP (pixelwise)) | 6162 | if (NILP (pixelwise)) |
| 6163 | return make_number (window_box_height (w) | 6163 | return make_fixnum (window_box_height (w) |
| 6164 | / FRAME_LINE_HEIGHT (WINDOW_XFRAME (w))); | 6164 | / FRAME_LINE_HEIGHT (WINDOW_XFRAME (w))); |
| 6165 | else | 6165 | else |
| 6166 | return make_number (window_box_height (w)); | 6166 | return make_fixnum (window_box_height (w)); |
| 6167 | } | 6167 | } |
| 6168 | 6168 | ||
| 6169 | DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line, | 6169 | DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line, |
| @@ -6196,7 +6196,7 @@ from the top of the window. */) | |||
| 6196 | if (start < BEGV || start > ZV) | 6196 | if (start < BEGV || start > ZV) |
| 6197 | { | 6197 | { |
| 6198 | int height = window_internal_height (w); | 6198 | int height = window_internal_height (w); |
| 6199 | Fvertical_motion (make_number (- (height / 2)), window, Qnil); | 6199 | Fvertical_motion (make_fixnum (- (height / 2)), window, Qnil); |
| 6200 | set_marker_both (w->start, w->contents, PT, PT_BYTE); | 6200 | set_marker_both (w->start, w->contents, PT, PT_BYTE); |
| 6201 | w->start_at_line_beg = !NILP (Fbolp ()); | 6201 | w->start_at_line_beg = !NILP (Fbolp ()); |
| 6202 | w->force_start = true; | 6202 | w->force_start = true; |
| @@ -6228,7 +6228,7 @@ from the top of the window. */) | |||
| 6228 | iarg = min (iarg, lines - this_scroll_margin - 1); | 6228 | iarg = min (iarg, lines - this_scroll_margin - 1); |
| 6229 | #endif | 6229 | #endif |
| 6230 | 6230 | ||
| 6231 | arg = make_number (iarg); | 6231 | arg = make_fixnum (iarg); |
| 6232 | } | 6232 | } |
| 6233 | 6233 | ||
| 6234 | /* Skip past a partially visible first line. */ | 6234 | /* Skip past a partially visible first line. */ |
| @@ -6611,7 +6611,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6611 | current when the window configuration was saved. */ | 6611 | current when the window configuration was saved. */ |
| 6612 | if (EQ (XWINDOW (data->current_window)->contents, new_current_buffer)) | 6612 | if (EQ (XWINDOW (data->current_window)->contents, new_current_buffer)) |
| 6613 | set_marker_restricted (XWINDOW (data->current_window)->pointm, | 6613 | set_marker_restricted (XWINDOW (data->current_window)->pointm, |
| 6614 | make_number (old_point), | 6614 | make_fixnum (old_point), |
| 6615 | XWINDOW (data->current_window)->contents); | 6615 | XWINDOW (data->current_window)->contents); |
| 6616 | 6616 | ||
| 6617 | /* In the following call to select_window, prevent "swapping out | 6617 | /* In the following call to select_window, prevent "swapping out |
| @@ -6715,7 +6715,7 @@ the return value is nil. Otherwise the value is t. */) | |||
| 6715 | the "normal" frame's selected window and that window *does* | 6715 | the "normal" frame's selected window and that window *does* |
| 6716 | show new_current_buffer. */ | 6716 | show new_current_buffer. */ |
| 6717 | if (!EQ (XWINDOW (selected_window)->contents, new_current_buffer)) | 6717 | if (!EQ (XWINDOW (selected_window)->contents, new_current_buffer)) |
| 6718 | Fgoto_char (make_number (old_point)); | 6718 | Fgoto_char (make_fixnum (old_point)); |
| 6719 | } | 6719 | } |
| 6720 | 6720 | ||
| 6721 | Vminibuf_scroll_window = data->minibuf_scroll_window; | 6721 | Vminibuf_scroll_window = data->minibuf_scroll_window; |
| @@ -6850,21 +6850,21 @@ save_window_save (Lisp_Object window, struct Lisp_Vector *vector, ptrdiff_t i) | |||
| 6850 | p = SAVED_WINDOW_N (vector, i); | 6850 | p = SAVED_WINDOW_N (vector, i); |
| 6851 | w = XWINDOW (window); | 6851 | w = XWINDOW (window); |
| 6852 | 6852 | ||
| 6853 | wset_temslot (w, make_number (i)); i++; | 6853 | wset_temslot (w, make_fixnum (i)); i++; |
| 6854 | p->window = window; | 6854 | p->window = window; |
| 6855 | p->buffer = (WINDOW_LEAF_P (w) ? w->contents : Qnil); | 6855 | p->buffer = (WINDOW_LEAF_P (w) ? w->contents : Qnil); |
| 6856 | p->pixel_left = make_number (w->pixel_left); | 6856 | p->pixel_left = make_fixnum (w->pixel_left); |
| 6857 | p->pixel_top = make_number (w->pixel_top); | 6857 | p->pixel_top = make_fixnum (w->pixel_top); |
| 6858 | p->pixel_width = make_number (w->pixel_width); | 6858 | p->pixel_width = make_fixnum (w->pixel_width); |
| 6859 | p->pixel_height = make_number (w->pixel_height); | 6859 | p->pixel_height = make_fixnum (w->pixel_height); |
| 6860 | p->pixel_width_before_size_change | 6860 | p->pixel_width_before_size_change |
| 6861 | = make_number (w->pixel_width_before_size_change); | 6861 | = make_fixnum (w->pixel_width_before_size_change); |
| 6862 | p->pixel_height_before_size_change | 6862 | p->pixel_height_before_size_change |
| 6863 | = make_number (w->pixel_height_before_size_change); | 6863 | = make_fixnum (w->pixel_height_before_size_change); |
| 6864 | p->left_col = make_number (w->left_col); | 6864 | p->left_col = make_fixnum (w->left_col); |
| 6865 | p->top_line = make_number (w->top_line); | 6865 | p->top_line = make_fixnum (w->top_line); |
| 6866 | p->total_cols = make_number (w->total_cols); | 6866 | p->total_cols = make_fixnum (w->total_cols); |
| 6867 | p->total_lines = make_number (w->total_lines); | 6867 | p->total_lines = make_fixnum (w->total_lines); |
| 6868 | p->normal_cols = w->normal_cols; | 6868 | p->normal_cols = w->normal_cols; |
| 6869 | p->normal_lines = w->normal_lines; | 6869 | p->normal_lines = w->normal_lines; |
| 6870 | XSETFASTINT (p->hscroll, w->hscroll); | 6870 | XSETFASTINT (p->hscroll, w->hscroll); |
| @@ -6872,13 +6872,13 @@ save_window_save (Lisp_Object window, struct Lisp_Vector *vector, ptrdiff_t i) | |||
| 6872 | XSETFASTINT (p->min_hscroll, w->min_hscroll); | 6872 | XSETFASTINT (p->min_hscroll, w->min_hscroll); |
| 6873 | XSETFASTINT (p->hscroll_whole, w->hscroll_whole); | 6873 | XSETFASTINT (p->hscroll_whole, w->hscroll_whole); |
| 6874 | p->display_table = w->display_table; | 6874 | p->display_table = w->display_table; |
| 6875 | p->left_margin_cols = make_number (w->left_margin_cols); | 6875 | p->left_margin_cols = make_fixnum (w->left_margin_cols); |
| 6876 | p->right_margin_cols = make_number (w->right_margin_cols); | 6876 | p->right_margin_cols = make_fixnum (w->right_margin_cols); |
| 6877 | p->left_fringe_width = make_number (w->left_fringe_width); | 6877 | p->left_fringe_width = make_fixnum (w->left_fringe_width); |
| 6878 | p->right_fringe_width = make_number (w->right_fringe_width); | 6878 | p->right_fringe_width = make_fixnum (w->right_fringe_width); |
| 6879 | p->fringes_outside_margins = w->fringes_outside_margins ? Qt : Qnil; | 6879 | p->fringes_outside_margins = w->fringes_outside_margins ? Qt : Qnil; |
| 6880 | p->scroll_bar_width = make_number (w->scroll_bar_width); | 6880 | p->scroll_bar_width = make_fixnum (w->scroll_bar_width); |
| 6881 | p->scroll_bar_height = make_number (w->scroll_bar_height); | 6881 | p->scroll_bar_height = make_fixnum (w->scroll_bar_height); |
| 6882 | p->vertical_scroll_bar_type = w->vertical_scroll_bar_type; | 6882 | p->vertical_scroll_bar_type = w->vertical_scroll_bar_type; |
| 6883 | p->horizontal_scroll_bar_type = w->horizontal_scroll_bar_type; | 6883 | p->horizontal_scroll_bar_type = w->horizontal_scroll_bar_type; |
| 6884 | p->dedicated = w->dedicated; | 6884 | p->dedicated = w->dedicated; |
| @@ -7013,7 +7013,7 @@ saved by this function. */) | |||
| 7013 | data->saved_windows = tem; | 7013 | data->saved_windows = tem; |
| 7014 | for (i = 0; i < n_windows; i++) | 7014 | for (i = 0; i < n_windows; i++) |
| 7015 | ASET (tem, i, | 7015 | ASET (tem, i, |
| 7016 | Fmake_vector (make_number (VECSIZE (struct saved_window)), Qnil)); | 7016 | Fmake_vector (make_fixnum (VECSIZE (struct saved_window)), Qnil)); |
| 7017 | save_window_save (FRAME_ROOT_WINDOW (f), XVECTOR (tem), 0); | 7017 | save_window_save (FRAME_ROOT_WINDOW (f), XVECTOR (tem), 0); |
| 7018 | XSETWINDOW_CONFIGURATION (tem, data); | 7018 | XSETWINDOW_CONFIGURATION (tem, data); |
| 7019 | return (tem); | 7019 | return (tem); |
| @@ -7105,9 +7105,9 @@ as nil. */) | |||
| 7105 | { | 7105 | { |
| 7106 | struct window *w = decode_live_window (window); | 7106 | struct window *w = decode_live_window (window); |
| 7107 | return Fcons (w->left_margin_cols | 7107 | return Fcons (w->left_margin_cols |
| 7108 | ? make_number (w->left_margin_cols) : Qnil, | 7108 | ? make_fixnum (w->left_margin_cols) : Qnil, |
| 7109 | w->right_margin_cols | 7109 | w->right_margin_cols |
| 7110 | ? make_number (w->right_margin_cols) : Qnil); | 7110 | ? make_fixnum (w->right_margin_cols) : Qnil); |
| 7111 | } | 7111 | } |
| 7112 | 7112 | ||
| 7113 | 7113 | ||
| @@ -7186,8 +7186,8 @@ Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) | |||
| 7186 | { | 7186 | { |
| 7187 | struct window *w = decode_live_window (window); | 7187 | struct window *w = decode_live_window (window); |
| 7188 | 7188 | ||
| 7189 | return list3 (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)), | 7189 | return list3 (make_fixnum (WINDOW_LEFT_FRINGE_WIDTH (w)), |
| 7190 | make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)), | 7190 | make_fixnum (WINDOW_RIGHT_FRINGE_WIDTH (w)), |
| 7191 | WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) ? Qt : Qnil); | 7191 | WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) ? Qt : Qnil); |
| 7192 | } | 7192 | } |
| 7193 | 7193 | ||
| @@ -7309,14 +7309,14 @@ value. */) | |||
| 7309 | struct window *w = decode_live_window (window); | 7309 | struct window *w = decode_live_window (window); |
| 7310 | 7310 | ||
| 7311 | return Fcons (((w->scroll_bar_width >= 0) | 7311 | return Fcons (((w->scroll_bar_width >= 0) |
| 7312 | ? make_number (w->scroll_bar_width) | 7312 | ? make_fixnum (w->scroll_bar_width) |
| 7313 | : Qnil), | 7313 | : Qnil), |
| 7314 | list5 (make_number (WINDOW_SCROLL_BAR_COLS (w)), | 7314 | list5 (make_fixnum (WINDOW_SCROLL_BAR_COLS (w)), |
| 7315 | w->vertical_scroll_bar_type, | 7315 | w->vertical_scroll_bar_type, |
| 7316 | ((w->scroll_bar_height >= 0) | 7316 | ((w->scroll_bar_height >= 0) |
| 7317 | ? make_number (w->scroll_bar_height) | 7317 | ? make_fixnum (w->scroll_bar_height) |
| 7318 | : Qnil), | 7318 | : Qnil), |
| 7319 | make_number (WINDOW_SCROLL_BAR_LINES (w)), | 7319 | make_fixnum (WINDOW_SCROLL_BAR_LINES (w)), |
| 7320 | w->horizontal_scroll_bar_type)); | 7320 | w->horizontal_scroll_bar_type)); |
| 7321 | } | 7321 | } |
| 7322 | 7322 | ||
| @@ -7338,9 +7338,9 @@ optional second arg PIXELS-P means value is measured in pixels. */) | |||
| 7338 | if (FRAME_WINDOW_P (f)) | 7338 | if (FRAME_WINDOW_P (f)) |
| 7339 | result = (NILP (pixels_p) | 7339 | result = (NILP (pixels_p) |
| 7340 | ? FRAME_CANON_Y_FROM_PIXEL_Y (f, -w->vscroll) | 7340 | ? FRAME_CANON_Y_FROM_PIXEL_Y (f, -w->vscroll) |
| 7341 | : make_number (-w->vscroll)); | 7341 | : make_fixnum (-w->vscroll)); |
| 7342 | else | 7342 | else |
| 7343 | result = make_number (0); | 7343 | result = make_fixnum (0); |
| 7344 | return result; | 7344 | return result; |
| 7345 | } | 7345 | } |
| 7346 | 7346 | ||
| @@ -7360,7 +7360,7 @@ If PIXELS-P is non-nil, the return value is VSCROLL. */) | |||
| 7360 | struct window *w = decode_live_window (window); | 7360 | struct window *w = decode_live_window (window); |
| 7361 | struct frame *f = XFRAME (w->frame); | 7361 | struct frame *f = XFRAME (w->frame); |
| 7362 | 7362 | ||
| 7363 | CHECK_NUMBER_OR_FLOAT (vscroll); | 7363 | CHECK_FIXNUM_OR_FLOAT (vscroll); |
| 7364 | 7364 | ||
| 7365 | if (FRAME_WINDOW_P (f)) | 7365 | if (FRAME_WINDOW_P (f)) |
| 7366 | { | 7366 | { |