aboutsummaryrefslogtreecommitdiffstats
path: root/src/textprop.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/textprop.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/textprop.c')
-rw-r--r--src/textprop.c182
1 files changed, 91 insertions, 91 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 3f636a125ab..4bd4892b730 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -79,7 +79,7 @@ text_read_only (Lisp_Object propval)
79static void 79static void
80modify_text_properties (Lisp_Object buffer, Lisp_Object start, Lisp_Object end) 80modify_text_properties (Lisp_Object buffer, Lisp_Object start, Lisp_Object end)
81{ 81{
82 ptrdiff_t b = XINT (start), e = XINT (end); 82 ptrdiff_t b = XFIXNUM (start), e = XFIXNUM (end);
83 struct buffer *buf = XBUFFER (buffer), *old = current_buffer; 83 struct buffer *buf = XBUFFER (buffer), *old = current_buffer;
84 84
85 set_buffer_internal (buf); 85 set_buffer_internal (buf);
@@ -145,7 +145,7 @@ validate_interval_range (Lisp_Object object, Lisp_Object *begin,
145 if (EQ (*begin, *end) && begin != end) 145 if (EQ (*begin, *end) && begin != end)
146 return NULL; 146 return NULL;
147 147
148 if (XINT (*begin) > XINT (*end)) 148 if (XFIXNUM (*begin) > XFIXNUM (*end))
149 { 149 {
150 Lisp_Object n; 150 Lisp_Object n;
151 n = *begin; 151 n = *begin;
@@ -157,8 +157,8 @@ validate_interval_range (Lisp_Object object, Lisp_Object *begin,
157 { 157 {
158 register struct buffer *b = XBUFFER (object); 158 register struct buffer *b = XBUFFER (object);
159 159
160 if (!(BUF_BEGV (b) <= XINT (*begin) && XINT (*begin) <= XINT (*end) 160 if (!(BUF_BEGV (b) <= XFIXNUM (*begin) && XFIXNUM (*begin) <= XFIXNUM (*end)
161 && XINT (*end) <= BUF_ZV (b))) 161 && XFIXNUM (*end) <= BUF_ZV (b)))
162 args_out_of_range (*begin, *end); 162 args_out_of_range (*begin, *end);
163 i = buffer_intervals (b); 163 i = buffer_intervals (b);
164 164
@@ -166,24 +166,24 @@ validate_interval_range (Lisp_Object object, Lisp_Object *begin,
166 if (BUF_BEGV (b) == BUF_ZV (b)) 166 if (BUF_BEGV (b) == BUF_ZV (b))
167 return NULL; 167 return NULL;
168 168
169 searchpos = XINT (*begin); 169 searchpos = XFIXNUM (*begin);
170 } 170 }
171 else 171 else
172 { 172 {
173 ptrdiff_t len = SCHARS (object); 173 ptrdiff_t len = SCHARS (object);
174 174
175 if (! (0 <= XINT (*begin) && XINT (*begin) <= XINT (*end) 175 if (! (0 <= XFIXNUM (*begin) && XFIXNUM (*begin) <= XFIXNUM (*end)
176 && XINT (*end) <= len)) 176 && XFIXNUM (*end) <= len))
177 args_out_of_range (*begin, *end); 177 args_out_of_range (*begin, *end);
178 XSETFASTINT (*begin, XFASTINT (*begin)); 178 XSETFASTINT (*begin, XFIXNAT (*begin));
179 if (begin != end) 179 if (begin != end)
180 XSETFASTINT (*end, XFASTINT (*end)); 180 XSETFASTINT (*end, XFIXNAT (*end));
181 i = string_intervals (object); 181 i = string_intervals (object);
182 182
183 if (len == 0) 183 if (len == 0)
184 return NULL; 184 return NULL;
185 185
186 searchpos = XINT (*begin); 186 searchpos = XFIXNUM (*begin);
187 } 187 }
188 188
189 if (!i) 189 if (!i)
@@ -572,7 +572,7 @@ If POSITION is at the end of OBJECT, the value is nil. */)
572 it means it's the end of OBJECT. 572 it means it's the end of OBJECT.
573 There are no properties at the very end, 573 There are no properties at the very end,
574 since no character follows. */ 574 since no character follows. */
575 if (XINT (position) == LENGTH (i) + i->position) 575 if (XFIXNUM (position) == LENGTH (i) + i->position)
576 return Qnil; 576 return Qnil;
577 577
578 return i->plist; 578 return i->plist;
@@ -621,14 +621,14 @@ get_char_property_and_overlay (Lisp_Object position, register Lisp_Object prop,
621 Lisp_Object *overlay_vec; 621 Lisp_Object *overlay_vec;
622 struct buffer *obuf = current_buffer; 622 struct buffer *obuf = current_buffer;
623 623
624 if (XINT (position) < BUF_BEGV (XBUFFER (object)) 624 if (XFIXNUM (position) < BUF_BEGV (XBUFFER (object))
625 || XINT (position) > BUF_ZV (XBUFFER (object))) 625 || XFIXNUM (position) > BUF_ZV (XBUFFER (object)))
626 xsignal1 (Qargs_out_of_range, position); 626 xsignal1 (Qargs_out_of_range, position);
627 627
628 set_buffer_temp (XBUFFER (object)); 628 set_buffer_temp (XBUFFER (object));
629 629
630 USE_SAFE_ALLOCA; 630 USE_SAFE_ALLOCA;
631 GET_OVERLAYS_AT (XINT (position), overlay_vec, noverlays, NULL, false); 631 GET_OVERLAYS_AT (XFIXNUM (position), overlay_vec, noverlays, NULL, false);
632 noverlays = sort_overlays (overlay_vec, noverlays, w); 632 noverlays = sort_overlays (overlay_vec, noverlays, w);
633 633
634 set_buffer_temp (obuf); 634 set_buffer_temp (obuf);
@@ -715,7 +715,7 @@ before LIMIT. LIMIT is a no-op if it is greater than (point-max). */)
715 if (! NILP (limit)) 715 if (! NILP (limit))
716 { 716 {
717 CHECK_FIXNUM_COERCE_MARKER (limit); 717 CHECK_FIXNUM_COERCE_MARKER (limit);
718 if (XINT (limit) < XINT (temp)) 718 if (XFIXNUM (limit) < XFIXNUM (temp))
719 temp = limit; 719 temp = limit;
720 } 720 }
721 return Fnext_property_change (position, Qnil, temp); 721 return Fnext_property_change (position, Qnil, temp);
@@ -741,7 +741,7 @@ before LIMIT. LIMIT is a no-op if it is less than (point-min). */)
741 if (! NILP (limit)) 741 if (! NILP (limit))
742 { 742 {
743 CHECK_FIXNUM_COERCE_MARKER (limit); 743 CHECK_FIXNUM_COERCE_MARKER (limit);
744 if (XINT (limit) > XINT (temp)) 744 if (XFIXNUM (limit) > XFIXNUM (temp))
745 temp = limit; 745 temp = limit;
746 } 746 }
747 return Fprevious_property_change (position, Qnil, temp); 747 return Fprevious_property_change (position, Qnil, temp);
@@ -805,17 +805,17 @@ last valid position in OBJECT. */)
805 else 805 else
806 CHECK_FIXNUM_COERCE_MARKER (limit); 806 CHECK_FIXNUM_COERCE_MARKER (limit);
807 807
808 if (XFASTINT (position) >= XFASTINT (limit)) 808 if (XFIXNAT (position) >= XFIXNAT (limit))
809 { 809 {
810 position = limit; 810 position = limit;
811 if (XFASTINT (position) > ZV) 811 if (XFIXNAT (position) > ZV)
812 XSETFASTINT (position, ZV); 812 XSETFASTINT (position, ZV);
813 } 813 }
814 else 814 else
815 while (true) 815 while (true)
816 { 816 {
817 position = Fnext_char_property_change (position, limit); 817 position = Fnext_char_property_change (position, limit);
818 if (XFASTINT (position) >= XFASTINT (limit)) 818 if (XFIXNAT (position) >= XFIXNAT (limit))
819 { 819 {
820 position = limit; 820 position = limit;
821 break; 821 break;
@@ -887,23 +887,23 @@ first valid position in OBJECT. */)
887 else 887 else
888 CHECK_FIXNUM_COERCE_MARKER (limit); 888 CHECK_FIXNUM_COERCE_MARKER (limit);
889 889
890 if (XFASTINT (position) <= XFASTINT (limit)) 890 if (XFIXNAT (position) <= XFIXNAT (limit))
891 { 891 {
892 position = limit; 892 position = limit;
893 if (XFASTINT (position) < BEGV) 893 if (XFIXNAT (position) < BEGV)
894 XSETFASTINT (position, BEGV); 894 XSETFASTINT (position, BEGV);
895 } 895 }
896 else 896 else
897 { 897 {
898 Lisp_Object initial_value 898 Lisp_Object initial_value
899 = Fget_char_property (make_fixnum (XFASTINT (position) - 1), 899 = Fget_char_property (make_fixnum (XFIXNAT (position) - 1),
900 prop, object); 900 prop, object);
901 901
902 while (true) 902 while (true)
903 { 903 {
904 position = Fprevious_char_property_change (position, limit); 904 position = Fprevious_char_property_change (position, limit);
905 905
906 if (XFASTINT (position) <= XFASTINT (limit)) 906 if (XFIXNAT (position) <= XFIXNAT (limit))
907 { 907 {
908 position = limit; 908 position = limit;
909 break; 909 break;
@@ -911,7 +911,7 @@ first valid position in OBJECT. */)
911 else 911 else
912 { 912 {
913 Lisp_Object value 913 Lisp_Object value
914 = Fget_char_property (make_fixnum (XFASTINT (position) - 1), 914 = Fget_char_property (make_fixnum (XFIXNAT (position) - 1),
915 prop, object); 915 prop, object);
916 916
917 if (!EQ (value, initial_value)) 917 if (!EQ (value, initial_value))
@@ -976,13 +976,13 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
976 next = next_interval (i); 976 next = next_interval (i);
977 977
978 while (next && intervals_equal (i, next) 978 while (next && intervals_equal (i, next)
979 && (NILP (limit) || next->position < XFASTINT (limit))) 979 && (NILP (limit) || next->position < XFIXNAT (limit)))
980 next = next_interval (next); 980 next = next_interval (next);
981 981
982 if (!next 982 if (!next
983 || (next->position 983 || (next->position
984 >= (FIXNUMP (limit) 984 >= (FIXNUMP (limit)
985 ? XFASTINT (limit) 985 ? XFIXNAT (limit)
986 : (STRINGP (object) 986 : (STRINGP (object)
987 ? SCHARS (object) 987 ? SCHARS (object)
988 : BUF_ZV (XBUFFER (object)))))) 988 : BUF_ZV (XBUFFER (object))))))
@@ -1025,13 +1025,13 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */)
1025 next = next_interval (i); 1025 next = next_interval (i);
1026 while (next 1026 while (next
1027 && EQ (here_val, textget (next->plist, prop)) 1027 && EQ (here_val, textget (next->plist, prop))
1028 && (NILP (limit) || next->position < XFASTINT (limit))) 1028 && (NILP (limit) || next->position < XFIXNAT (limit)))
1029 next = next_interval (next); 1029 next = next_interval (next);
1030 1030
1031 if (!next 1031 if (!next
1032 || (next->position 1032 || (next->position
1033 >= (FIXNUMP (limit) 1033 >= (FIXNUMP (limit)
1034 ? XFASTINT (limit) 1034 ? XFIXNAT (limit)
1035 : (STRINGP (object) 1035 : (STRINGP (object)
1036 ? SCHARS (object) 1036 ? SCHARS (object)
1037 : BUF_ZV (XBUFFER (object)))))) 1037 : BUF_ZV (XBUFFER (object))))))
@@ -1069,19 +1069,19 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
1069 return limit; 1069 return limit;
1070 1070
1071 /* Start with the interval containing the char before point. */ 1071 /* Start with the interval containing the char before point. */
1072 if (i->position == XFASTINT (position)) 1072 if (i->position == XFIXNAT (position))
1073 i = previous_interval (i); 1073 i = previous_interval (i);
1074 1074
1075 previous = previous_interval (i); 1075 previous = previous_interval (i);
1076 while (previous && intervals_equal (previous, i) 1076 while (previous && intervals_equal (previous, i)
1077 && (NILP (limit) 1077 && (NILP (limit)
1078 || (previous->position + LENGTH (previous) > XFASTINT (limit)))) 1078 || (previous->position + LENGTH (previous) > XFIXNAT (limit))))
1079 previous = previous_interval (previous); 1079 previous = previous_interval (previous);
1080 1080
1081 if (!previous 1081 if (!previous
1082 || (previous->position + LENGTH (previous) 1082 || (previous->position + LENGTH (previous)
1083 <= (FIXNUMP (limit) 1083 <= (FIXNUMP (limit)
1084 ? XFASTINT (limit) 1084 ? XFIXNAT (limit)
1085 : (STRINGP (object) ? 0 : BUF_BEGV (XBUFFER (object)))))) 1085 : (STRINGP (object) ? 0 : BUF_BEGV (XBUFFER (object))))))
1086 return limit; 1086 return limit;
1087 else 1087 else
@@ -1117,7 +1117,7 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
1117 i = validate_interval_range (object, &position, &position, soft); 1117 i = validate_interval_range (object, &position, &position, soft);
1118 1118
1119 /* Start with the interval containing the char before point. */ 1119 /* Start with the interval containing the char before point. */
1120 if (i && i->position == XFASTINT (position)) 1120 if (i && i->position == XFIXNAT (position))
1121 i = previous_interval (i); 1121 i = previous_interval (i);
1122 1122
1123 if (!i) 1123 if (!i)
@@ -1128,13 +1128,13 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */)
1128 while (previous 1128 while (previous
1129 && EQ (here_val, textget (previous->plist, prop)) 1129 && EQ (here_val, textget (previous->plist, prop))
1130 && (NILP (limit) 1130 && (NILP (limit)
1131 || (previous->position + LENGTH (previous) > XFASTINT (limit)))) 1131 || (previous->position + LENGTH (previous) > XFIXNAT (limit))))
1132 previous = previous_interval (previous); 1132 previous = previous_interval (previous);
1133 1133
1134 if (!previous 1134 if (!previous
1135 || (previous->position + LENGTH (previous) 1135 || (previous->position + LENGTH (previous)
1136 <= (FIXNUMP (limit) 1136 <= (FIXNUMP (limit)
1137 ? XFASTINT (limit) 1137 ? XFIXNAT (limit)
1138 : (STRINGP (object) ? 0 : BUF_BEGV (XBUFFER (object)))))) 1138 : (STRINGP (object) ? 0 : BUF_BEGV (XBUFFER (object))))))
1139 return limit; 1139 return limit;
1140 else 1140 else
@@ -1164,8 +1164,8 @@ add_text_properties_1 (Lisp_Object start, Lisp_Object end,
1164 if (!i) 1164 if (!i)
1165 return Qnil; 1165 return Qnil;
1166 1166
1167 s = XINT (start); 1167 s = XFIXNUM (start);
1168 len = XINT (end) - s; 1168 len = XFIXNUM (end) - s;
1169 1169
1170 /* If this interval already has the properties, we can skip it. */ 1170 /* If this interval already has the properties, we can skip it. */
1171 if (interval_has_all_properties (properties, i)) 1171 if (interval_has_all_properties (properties, i))
@@ -1221,8 +1221,8 @@ add_text_properties_1 (Lisp_Object start, Lisp_Object end,
1221 if (interval_has_all_properties (properties, i)) 1221 if (interval_has_all_properties (properties, i))
1222 { 1222 {
1223 if (BUFFERP (object)) 1223 if (BUFFERP (object))
1224 signal_after_change (XINT (start), XINT (end) - XINT (start), 1224 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1225 XINT (end) - XINT (start)); 1225 XFIXNUM (end) - XFIXNUM (start));
1226 1226
1227 eassert (modified); 1227 eassert (modified);
1228 return Qt; 1228 return Qt;
@@ -1232,8 +1232,8 @@ add_text_properties_1 (Lisp_Object start, Lisp_Object end,
1232 { 1232 {
1233 add_properties (properties, i, object, set_type); 1233 add_properties (properties, i, object, set_type);
1234 if (BUFFERP (object)) 1234 if (BUFFERP (object))
1235 signal_after_change (XINT (start), XINT (end) - XINT (start), 1235 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1236 XINT (end) - XINT (start)); 1236 XFIXNUM (end) - XFIXNUM (start));
1237 return Qt; 1237 return Qt;
1238 } 1238 }
1239 1239
@@ -1243,8 +1243,8 @@ add_text_properties_1 (Lisp_Object start, Lisp_Object end,
1243 copy_properties (unchanged, i); 1243 copy_properties (unchanged, i);
1244 add_properties (properties, i, object, set_type); 1244 add_properties (properties, i, object, set_type);
1245 if (BUFFERP (object)) 1245 if (BUFFERP (object))
1246 signal_after_change (XINT (start), XINT (end) - XINT (start), 1246 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1247 XINT (end) - XINT (start)); 1247 XFIXNUM (end) - XFIXNUM (start));
1248 return Qt; 1248 return Qt;
1249 } 1249 }
1250 1250
@@ -1362,8 +1362,8 @@ set_text_properties (Lisp_Object start, Lisp_Object end, Lisp_Object properties,
1362 /* If we want no properties for a whole string, 1362 /* If we want no properties for a whole string,
1363 get rid of its intervals. */ 1363 get rid of its intervals. */
1364 if (NILP (properties) && STRINGP (object) 1364 if (NILP (properties) && STRINGP (object)
1365 && XFASTINT (start) == 0 1365 && XFIXNAT (start) == 0
1366 && XFASTINT (end) == SCHARS (object)) 1366 && XFIXNAT (end) == SCHARS (object))
1367 { 1367 {
1368 if (!string_intervals (object)) 1368 if (!string_intervals (object))
1369 return Qnil; 1369 return Qnil;
@@ -1397,8 +1397,8 @@ set_text_properties (Lisp_Object start, Lisp_Object end, Lisp_Object properties,
1397 set_text_properties_1 (start, end, properties, object, i); 1397 set_text_properties_1 (start, end, properties, object, i);
1398 1398
1399 if (BUFFERP (object) && !NILP (coherent_change_p)) 1399 if (BUFFERP (object) && !NILP (coherent_change_p))
1400 signal_after_change (XINT (start), XINT (end) - XINT (start), 1400 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1401 XINT (end) - XINT (start)); 1401 XFIXNUM (end) - XFIXNUM (start));
1402 return Qt; 1402 return Qt;
1403} 1403}
1404 1404
@@ -1415,15 +1415,15 @@ set_text_properties_1 (Lisp_Object start, Lisp_Object end, Lisp_Object propertie
1415 register ptrdiff_t s, len; 1415 register ptrdiff_t s, len;
1416 INTERVAL unchanged; 1416 INTERVAL unchanged;
1417 1417
1418 if (XINT (start) < XINT (end)) 1418 if (XFIXNUM (start) < XFIXNUM (end))
1419 { 1419 {
1420 s = XINT (start); 1420 s = XFIXNUM (start);
1421 len = XINT (end) - s; 1421 len = XFIXNUM (end) - s;
1422 } 1422 }
1423 else if (XINT (end) < XINT (start)) 1423 else if (XFIXNUM (end) < XFIXNUM (start))
1424 { 1424 {
1425 s = XINT (end); 1425 s = XFIXNUM (end);
1426 len = XINT (start) - s; 1426 len = XFIXNUM (start) - s;
1427 } 1427 }
1428 else 1428 else
1429 return; 1429 return;
@@ -1515,8 +1515,8 @@ Use `set-text-properties' if you want to remove all text properties. */)
1515 if (!i) 1515 if (!i)
1516 return Qnil; 1516 return Qnil;
1517 1517
1518 s = XINT (start); 1518 s = XFIXNUM (start);
1519 len = XINT (end) - s; 1519 len = XFIXNUM (end) - s;
1520 1520
1521 /* If there are no properties on this entire interval, return. */ 1521 /* If there are no properties on this entire interval, return. */
1522 if (! interval_has_some_properties (properties, i)) 1522 if (! interval_has_some_properties (properties, i))
@@ -1573,8 +1573,8 @@ Use `set-text-properties' if you want to remove all text properties. */)
1573 { 1573 {
1574 eassert (modified); 1574 eassert (modified);
1575 if (BUFFERP (object)) 1575 if (BUFFERP (object))
1576 signal_after_change (XINT (start), XINT (end) - XINT (start), 1576 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1577 XINT (end) - XINT (start)); 1577 XFIXNUM (end) - XFIXNUM (start));
1578 return Qt; 1578 return Qt;
1579 } 1579 }
1580 1580
@@ -1582,8 +1582,8 @@ Use `set-text-properties' if you want to remove all text properties. */)
1582 { 1582 {
1583 remove_properties (properties, Qnil, i, object); 1583 remove_properties (properties, Qnil, i, object);
1584 if (BUFFERP (object)) 1584 if (BUFFERP (object))
1585 signal_after_change (XINT (start), XINT (end) - XINT (start), 1585 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1586 XINT (end) - XINT (start)); 1586 XFIXNUM (end) - XFIXNUM (start));
1587 return Qt; 1587 return Qt;
1588 } 1588 }
1589 1589
@@ -1593,8 +1593,8 @@ Use `set-text-properties' if you want to remove all text properties. */)
1593 copy_properties (unchanged, i); 1593 copy_properties (unchanged, i);
1594 remove_properties (properties, Qnil, i, object); 1594 remove_properties (properties, Qnil, i, object);
1595 if (BUFFERP (object)) 1595 if (BUFFERP (object))
1596 signal_after_change (XINT (start), XINT (end) - XINT (start), 1596 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1597 XINT (end) - XINT (start)); 1597 XFIXNUM (end) - XFIXNUM (start));
1598 return Qt; 1598 return Qt;
1599 } 1599 }
1600 1600
@@ -1627,8 +1627,8 @@ Return t if any property was actually removed, nil otherwise. */)
1627 if (!i) 1627 if (!i)
1628 return Qnil; 1628 return Qnil;
1629 1629
1630 s = XINT (start); 1630 s = XFIXNUM (start);
1631 len = XINT (end) - s; 1631 len = XFIXNUM (end) - s;
1632 1632
1633 /* If there are no properties on the interval, return. */ 1633 /* If there are no properties on the interval, return. */
1634 if (! interval_has_some_properties_list (properties, i)) 1634 if (! interval_has_some_properties_list (properties, i))
@@ -1671,9 +1671,9 @@ Return t if any property was actually removed, nil otherwise. */)
1671 if (modified) 1671 if (modified)
1672 { 1672 {
1673 if (BUFFERP (object)) 1673 if (BUFFERP (object))
1674 signal_after_change (XINT (start), 1674 signal_after_change (XFIXNUM (start),
1675 XINT (end) - XINT (start), 1675 XFIXNUM (end) - XFIXNUM (start),
1676 XINT (end) - XINT (start)); 1676 XFIXNUM (end) - XFIXNUM (start));
1677 return Qt; 1677 return Qt;
1678 } 1678 }
1679 else 1679 else
@@ -1685,8 +1685,8 @@ Return t if any property was actually removed, nil otherwise. */)
1685 modify_text_properties (object, start, end); 1685 modify_text_properties (object, start, end);
1686 remove_properties (Qnil, properties, i, object); 1686 remove_properties (Qnil, properties, i, object);
1687 if (BUFFERP (object)) 1687 if (BUFFERP (object))
1688 signal_after_change (XINT (start), XINT (end) - XINT (start), 1688 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1689 XINT (end) - XINT (start)); 1689 XFIXNUM (end) - XFIXNUM (start));
1690 return Qt; 1690 return Qt;
1691 } 1691 }
1692 else 1692 else
@@ -1698,8 +1698,8 @@ Return t if any property was actually removed, nil otherwise. */)
1698 modify_text_properties (object, start, end); 1698 modify_text_properties (object, start, end);
1699 remove_properties (Qnil, properties, i, object); 1699 remove_properties (Qnil, properties, i, object);
1700 if (BUFFERP (object)) 1700 if (BUFFERP (object))
1701 signal_after_change (XINT (start), XINT (end) - XINT (start), 1701 signal_after_change (XFIXNUM (start), XFIXNUM (end) - XFIXNUM (start),
1702 XINT (end) - XINT (start)); 1702 XFIXNUM (end) - XFIXNUM (start));
1703 return Qt; 1703 return Qt;
1704 } 1704 }
1705 } 1705 }
@@ -1717,9 +1717,9 @@ Return t if any property was actually removed, nil otherwise. */)
1717 if (modified) 1717 if (modified)
1718 { 1718 {
1719 if (BUFFERP (object)) 1719 if (BUFFERP (object))
1720 signal_after_change (XINT (start), 1720 signal_after_change (XFIXNUM (start),
1721 XINT (end) - XINT (start), 1721 XFIXNUM (end) - XFIXNUM (start),
1722 XINT (end) - XINT (start)); 1722 XFIXNUM (end) - XFIXNUM (start));
1723 return Qt; 1723 return Qt;
1724 } 1724 }
1725 else 1725 else
@@ -1746,7 +1746,7 @@ markers). If OBJECT is a string, START and END are 0-based indices into it. */
1746 i = validate_interval_range (object, &start, &end, soft); 1746 i = validate_interval_range (object, &start, &end, soft);
1747 if (!i) 1747 if (!i)
1748 return (!NILP (value) || EQ (start, end) ? Qnil : start); 1748 return (!NILP (value) || EQ (start, end) ? Qnil : start);
1749 e = XINT (end); 1749 e = XFIXNUM (end);
1750 1750
1751 while (i) 1751 while (i)
1752 { 1752 {
@@ -1755,8 +1755,8 @@ markers). If OBJECT is a string, START and END are 0-based indices into it. */
1755 if (EQ (textget (i->plist, property), value)) 1755 if (EQ (textget (i->plist, property), value))
1756 { 1756 {
1757 pos = i->position; 1757 pos = i->position;
1758 if (pos < XINT (start)) 1758 if (pos < XFIXNUM (start))
1759 pos = XINT (start); 1759 pos = XFIXNUM (start);
1760 return make_fixnum (pos); 1760 return make_fixnum (pos);
1761 } 1761 }
1762 i = next_interval (i); 1762 i = next_interval (i);
@@ -1782,8 +1782,8 @@ markers). If OBJECT is a string, START and END are 0-based indices into it. */
1782 i = validate_interval_range (object, &start, &end, soft); 1782 i = validate_interval_range (object, &start, &end, soft);
1783 if (!i) 1783 if (!i)
1784 return (NILP (value) || EQ (start, end)) ? Qnil : start; 1784 return (NILP (value) || EQ (start, end)) ? Qnil : start;
1785 s = XINT (start); 1785 s = XFIXNUM (start);
1786 e = XINT (end); 1786 e = XFIXNUM (end);
1787 1787
1788 while (i) 1788 while (i)
1789 { 1789 {
@@ -1811,7 +1811,7 @@ int
1811text_property_stickiness (Lisp_Object prop, Lisp_Object pos, Lisp_Object buffer) 1811text_property_stickiness (Lisp_Object prop, Lisp_Object pos, Lisp_Object buffer)
1812{ 1812{
1813 bool ignore_previous_character; 1813 bool ignore_previous_character;
1814 Lisp_Object prev_pos = make_fixnum (XINT (pos) - 1); 1814 Lisp_Object prev_pos = make_fixnum (XFIXNUM (pos) - 1);
1815 Lisp_Object front_sticky; 1815 Lisp_Object front_sticky;
1816 bool is_rear_sticky = true, is_front_sticky = false; /* defaults */ 1816 bool is_rear_sticky = true, is_front_sticky = false; /* defaults */
1817 Lisp_Object defalt = Fassq (prop, Vtext_property_default_nonsticky); 1817 Lisp_Object defalt = Fassq (prop, Vtext_property_default_nonsticky);
@@ -1819,7 +1819,7 @@ text_property_stickiness (Lisp_Object prop, Lisp_Object pos, Lisp_Object buffer)
1819 if (NILP (buffer)) 1819 if (NILP (buffer))
1820 XSETBUFFER (buffer, current_buffer); 1820 XSETBUFFER (buffer, current_buffer);
1821 1821
1822 ignore_previous_character = XINT (pos) <= BUF_BEGV (XBUFFER (buffer)); 1822 ignore_previous_character = XFIXNUM (pos) <= BUF_BEGV (XBUFFER (buffer));
1823 1823
1824 if (ignore_previous_character || (CONSP (defalt) && !NILP (XCDR (defalt)))) 1824 if (ignore_previous_character || (CONSP (defalt) && !NILP (XCDR (defalt))))
1825 is_rear_sticky = false; 1825 is_rear_sticky = false;
@@ -1895,7 +1895,7 @@ copy_text_properties (Lisp_Object start, Lisp_Object end, Lisp_Object src,
1895 { 1895 {
1896 Lisp_Object dest_start, dest_end; 1896 Lisp_Object dest_start, dest_end;
1897 1897
1898 e = XINT (pos) + (XINT (end) - XINT (start)); 1898 e = XFIXNUM (pos) + (XFIXNUM (end) - XFIXNUM (start));
1899 if (MOST_POSITIVE_FIXNUM < e) 1899 if (MOST_POSITIVE_FIXNUM < e)
1900 args_out_of_range (pos, end); 1900 args_out_of_range (pos, end);
1901 dest_start = pos; 1901 dest_start = pos;
@@ -1905,9 +1905,9 @@ copy_text_properties (Lisp_Object start, Lisp_Object end, Lisp_Object src,
1905 validate_interval_range (dest, &dest_start, &dest_end, soft); 1905 validate_interval_range (dest, &dest_start, &dest_end, soft);
1906 } 1906 }
1907 1907
1908 s = XINT (start); 1908 s = XFIXNUM (start);
1909 e = XINT (end); 1909 e = XFIXNUM (end);
1910 p = XINT (pos); 1910 p = XFIXNUM (pos);
1911 1911
1912 stuff = Qnil; 1912 stuff = Qnil;
1913 1913
@@ -1975,8 +1975,8 @@ text_property_list (Lisp_Object object, Lisp_Object start, Lisp_Object end, Lisp
1975 i = validate_interval_range (object, &start, &end, soft); 1975 i = validate_interval_range (object, &start, &end, soft);
1976 if (i) 1976 if (i)
1977 { 1977 {
1978 ptrdiff_t s = XINT (start); 1978 ptrdiff_t s = XFIXNUM (start);
1979 ptrdiff_t e = XINT (end); 1979 ptrdiff_t e = XFIXNUM (end);
1980 1980
1981 while (s < e) 1981 while (s < e)
1982 { 1982 {
@@ -2027,8 +2027,8 @@ add_text_properties_from_list (Lisp_Object object, Lisp_Object list, Lisp_Object
2027 Lisp_Object item, start, end, plist; 2027 Lisp_Object item, start, end, plist;
2028 2028
2029 item = XCAR (list); 2029 item = XCAR (list);
2030 start = make_fixnum (XINT (XCAR (item)) + XINT (delta)); 2030 start = make_fixnum (XFIXNUM (XCAR (item)) + XFIXNUM (delta));
2031 end = make_fixnum (XINT (XCAR (XCDR (item))) + XINT (delta)); 2031 end = make_fixnum (XFIXNUM (XCAR (XCDR (item))) + XFIXNUM (delta));
2032 plist = XCAR (XCDR (XCDR (item))); 2032 plist = XCAR (XCDR (XCDR (item)));
2033 2033
2034 Fadd_text_properties (start, end, plist, object); 2034 Fadd_text_properties (start, end, plist, object);
@@ -2046,7 +2046,7 @@ Lisp_Object
2046extend_property_ranges (Lisp_Object list, Lisp_Object old_end, Lisp_Object new_end) 2046extend_property_ranges (Lisp_Object list, Lisp_Object old_end, Lisp_Object new_end)
2047{ 2047{
2048 Lisp_Object prev = Qnil, head = list; 2048 Lisp_Object prev = Qnil, head = list;
2049 ptrdiff_t max = XINT (new_end); 2049 ptrdiff_t max = XFIXNUM (new_end);
2050 2050
2051 for (; CONSP (list); prev = list, list = XCDR (list)) 2051 for (; CONSP (list); prev = list, list = XCDR (list))
2052 { 2052 {
@@ -2055,9 +2055,9 @@ extend_property_ranges (Lisp_Object list, Lisp_Object old_end, Lisp_Object new_e
2055 2055
2056 item = XCAR (list); 2056 item = XCAR (list);
2057 beg = XCAR (item); 2057 beg = XCAR (item);
2058 end = XINT (XCAR (XCDR (item))); 2058 end = XFIXNUM (XCAR (XCDR (item)));
2059 2059
2060 if (XINT (beg) >= max) 2060 if (XFIXNUM (beg) >= max)
2061 { 2061 {
2062 /* The start-point is past the end of the new string. 2062 /* The start-point is past the end of the new string.
2063 Discard this property. */ 2063 Discard this property. */
@@ -2066,7 +2066,7 @@ extend_property_ranges (Lisp_Object list, Lisp_Object old_end, Lisp_Object new_e
2066 else 2066 else
2067 XSETCDR (prev, XCDR (list)); 2067 XSETCDR (prev, XCDR (list));
2068 } 2068 }
2069 else if ((end == XINT (old_end) && end != max) 2069 else if ((end == XFIXNUM (old_end) && end != max)
2070 || end > max) 2070 || end > max)
2071 { 2071 {
2072 /* Either the end-point is past the end of the new string, 2072 /* Either the end-point is past the end of the new string,