aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.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/keymap.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/keymap.c')
-rw-r--r--src/keymap.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/src/keymap.c b/src/keymap.c
index a7e0557ebde..bdd3af2cdcc 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -382,17 +382,17 @@ access_keymap_1 (Lisp_Object map, Lisp_Object idx,
382 else if (FIXNUMP (idx)) 382 else if (FIXNUMP (idx))
383 /* Clobber the high bits that can be present on a machine 383 /* Clobber the high bits that can be present on a machine
384 with more than 24 bits of integer. */ 384 with more than 24 bits of integer. */
385 XSETFASTINT (idx, XINT (idx) & (CHAR_META | (CHAR_META - 1))); 385 XSETFASTINT (idx, XFIXNUM (idx) & (CHAR_META | (CHAR_META - 1)));
386 386
387 /* Handle the special meta -> esc mapping. */ 387 /* Handle the special meta -> esc mapping. */
388 if (FIXNUMP (idx) && XFASTINT (idx) & meta_modifier) 388 if (FIXNUMP (idx) && XFIXNAT (idx) & meta_modifier)
389 { 389 {
390 /* See if there is a meta-map. If there's none, there is 390 /* See if there is a meta-map. If there's none, there is
391 no binding for IDX, unless a default binding exists in MAP. */ 391 no binding for IDX, unless a default binding exists in MAP. */
392 Lisp_Object event_meta_binding, event_meta_map; 392 Lisp_Object event_meta_binding, event_meta_map;
393 /* A strange value in which Meta is set would cause 393 /* A strange value in which Meta is set would cause
394 infinite recursion. Protect against that. */ 394 infinite recursion. Protect against that. */
395 if (XINT (meta_prefix_char) & CHAR_META) 395 if (XFIXNUM (meta_prefix_char) & CHAR_META)
396 meta_prefix_char = make_fixnum (27); 396 meta_prefix_char = make_fixnum (27);
397 event_meta_binding = access_keymap_1 (map, meta_prefix_char, t_ok, 397 event_meta_binding = access_keymap_1 (map, meta_prefix_char, t_ok,
398 noinherit, autoload); 398 noinherit, autoload);
@@ -400,7 +400,7 @@ access_keymap_1 (Lisp_Object map, Lisp_Object idx,
400 if (CONSP (event_meta_map)) 400 if (CONSP (event_meta_map))
401 { 401 {
402 map = event_meta_map; 402 map = event_meta_map;
403 idx = make_fixnum (XFASTINT (idx) & ~meta_modifier); 403 idx = make_fixnum (XFIXNAT (idx) & ~meta_modifier);
404 } 404 }
405 else if (t_ok) 405 else if (t_ok)
406 /* Set IDX to t, so that we only find a default binding. */ 406 /* Set IDX to t, so that we only find a default binding. */
@@ -473,15 +473,15 @@ access_keymap_1 (Lisp_Object map, Lisp_Object idx,
473 } 473 }
474 else if (VECTORP (binding)) 474 else if (VECTORP (binding))
475 { 475 {
476 if (FIXNUMP (idx) && XFASTINT (idx) < ASIZE (binding)) 476 if (FIXNUMP (idx) && XFIXNAT (idx) < ASIZE (binding))
477 val = AREF (binding, XFASTINT (idx)); 477 val = AREF (binding, XFIXNAT (idx));
478 } 478 }
479 else if (CHAR_TABLE_P (binding)) 479 else if (CHAR_TABLE_P (binding))
480 { 480 {
481 /* Character codes with modifiers 481 /* Character codes with modifiers
482 are not included in a char-table. 482 are not included in a char-table.
483 All character codes without modifiers are included. */ 483 All character codes without modifiers are included. */
484 if (FIXNUMP (idx) && (XFASTINT (idx) & CHAR_MODIFIER_MASK) == 0) 484 if (FIXNUMP (idx) && (XFIXNAT (idx) & CHAR_MODIFIER_MASK) == 0)
485 { 485 {
486 val = Faref (binding, idx); 486 val = Faref (binding, idx);
487 /* nil has a special meaning for char-tables, so 487 /* nil has a special meaning for char-tables, so
@@ -567,7 +567,7 @@ map_keymap_char_table_item (Lisp_Object args, Lisp_Object key, Lisp_Object val)
567 it in place. */ 567 it in place. */
568 if (CONSP (key)) 568 if (CONSP (key))
569 key = Fcons (XCAR (key), XCDR (key)); 569 key = Fcons (XCAR (key), XCDR (key));
570 union map_keymap *md = XINTPTR (args); 570 union map_keymap *md = XFIXNUMPTR (args);
571 map_keymap_item (md->s.fun, md->s.args, key, val, md->s.data); 571 map_keymap_item (md->s.fun, md->s.args, key, val, md->s.data);
572 } 572 }
573} 573}
@@ -785,7 +785,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def)
785 else if (FIXNUMP (idx)) 785 else if (FIXNUMP (idx))
786 /* Clobber the high bits that can be present on a machine 786 /* Clobber the high bits that can be present on a machine
787 with more than 24 bits of integer. */ 787 with more than 24 bits of integer. */
788 XSETFASTINT (idx, XINT (idx) & (CHAR_META | (CHAR_META - 1))); 788 XSETFASTINT (idx, XFIXNUM (idx) & (CHAR_META | (CHAR_META - 1)));
789 789
790 /* Scan the keymap for a binding of idx. */ 790 /* Scan the keymap for a binding of idx. */
791 { 791 {
@@ -807,22 +807,22 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def)
807 elt = XCAR (tail); 807 elt = XCAR (tail);
808 if (VECTORP (elt)) 808 if (VECTORP (elt))
809 { 809 {
810 if (FIXNATP (idx) && XFASTINT (idx) < ASIZE (elt)) 810 if (FIXNATP (idx) && XFIXNAT (idx) < ASIZE (elt))
811 { 811 {
812 CHECK_IMPURE (elt, XVECTOR (elt)); 812 CHECK_IMPURE (elt, XVECTOR (elt));
813 ASET (elt, XFASTINT (idx), def); 813 ASET (elt, XFIXNAT (idx), def);
814 return def; 814 return def;
815 } 815 }
816 else if (CONSP (idx) && CHARACTERP (XCAR (idx))) 816 else if (CONSP (idx) && CHARACTERP (XCAR (idx)))
817 { 817 {
818 int from = XFASTINT (XCAR (idx)); 818 int from = XFIXNAT (XCAR (idx));
819 int to = XFASTINT (XCDR (idx)); 819 int to = XFIXNAT (XCDR (idx));
820 820
821 if (to >= ASIZE (elt)) 821 if (to >= ASIZE (elt))
822 to = ASIZE (elt) - 1; 822 to = ASIZE (elt) - 1;
823 for (; from <= to; from++) 823 for (; from <= to; from++)
824 ASET (elt, from, def); 824 ASET (elt, from, def);
825 if (to == XFASTINT (XCDR (idx))) 825 if (to == XFIXNAT (XCDR (idx)))
826 /* We have defined all keys in IDX. */ 826 /* We have defined all keys in IDX. */
827 return def; 827 return def;
828 } 828 }
@@ -833,7 +833,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def)
833 /* Character codes with modifiers 833 /* Character codes with modifiers
834 are not included in a char-table. 834 are not included in a char-table.
835 All character codes without modifiers are included. */ 835 All character codes without modifiers are included. */
836 if (FIXNATP (idx) && !(XFASTINT (idx) & CHAR_MODIFIER_MASK)) 836 if (FIXNATP (idx) && !(XFIXNAT (idx) & CHAR_MODIFIER_MASK))
837 { 837 {
838 Faset (elt, idx, 838 Faset (elt, idx,
839 /* nil has a special meaning for char-tables, so 839 /* nil has a special meaning for char-tables, so
@@ -870,11 +870,11 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def)
870 && CHARACTERP (XCAR (idx)) 870 && CHARACTERP (XCAR (idx))
871 && CHARACTERP (XCAR (elt))) 871 && CHARACTERP (XCAR (elt)))
872 { 872 {
873 int from = XFASTINT (XCAR (idx)); 873 int from = XFIXNAT (XCAR (idx));
874 int to = XFASTINT (XCDR (idx)); 874 int to = XFIXNAT (XCDR (idx));
875 875
876 if (from <= XFASTINT (XCAR (elt)) 876 if (from <= XFIXNAT (XCAR (elt))
877 && to >= XFASTINT (XCAR (elt))) 877 && to >= XFIXNAT (XCAR (elt)))
878 { 878 {
879 XSETCDR (elt, def); 879 XSETCDR (elt, def);
880 if (from == to) 880 if (from == to)
@@ -1124,7 +1124,7 @@ binding KEY to DEF is added at the front of KEYMAP. */)
1124 silly_event_symbol_error (c); 1124 silly_event_symbol_error (c);
1125 1125
1126 if (FIXNUMP (c) 1126 if (FIXNUMP (c)
1127 && (XINT (c) & meta_bit) 1127 && (XFIXNUM (c) & meta_bit)
1128 && !metized) 1128 && !metized)
1129 { 1129 {
1130 c = meta_prefix_char; 1130 c = meta_prefix_char;
@@ -1133,7 +1133,7 @@ binding KEY to DEF is added at the front of KEYMAP. */)
1133 else 1133 else
1134 { 1134 {
1135 if (FIXNUMP (c)) 1135 if (FIXNUMP (c))
1136 XSETINT (c, XINT (c) & ~meta_bit); 1136 XSETINT (c, XFIXNUM (c) & ~meta_bit);
1137 1137
1138 metized = 0; 1138 metized = 0;
1139 idx++; 1139 idx++;
@@ -1246,8 +1246,8 @@ recognize the default bindings, just as `read-key-sequence' does. */)
1246 c = Fevent_convert_list (c); 1246 c = Fevent_convert_list (c);
1247 1247
1248 /* Turn the 8th bit of string chars into a meta modifier. */ 1248 /* Turn the 8th bit of string chars into a meta modifier. */
1249 if (STRINGP (key) && XINT (c) & 0x80 && !STRING_MULTIBYTE (key)) 1249 if (STRINGP (key) && XFIXNUM (c) & 0x80 && !STRING_MULTIBYTE (key))
1250 XSETINT (c, (XINT (c) | meta_modifier) & ~0x80); 1250 XSETINT (c, (XFIXNUM (c) | meta_modifier) & ~0x80);
1251 1251
1252 /* Allow string since binding for `menu-bar-select-buffer' 1252 /* Allow string since binding for `menu-bar-select-buffer'
1253 includes the buffer name in the key sequence. */ 1253 includes the buffer name in the key sequence. */
@@ -1300,7 +1300,7 @@ silly_event_symbol_error (Lisp_Object c)
1300 int modifiers; 1300 int modifiers;
1301 1301
1302 parsed = parse_modifiers (c); 1302 parsed = parse_modifiers (c);
1303 modifiers = XFASTINT (XCAR (XCDR (parsed))); 1303 modifiers = XFIXNAT (XCAR (XCDR (parsed)));
1304 base = XCAR (parsed); 1304 base = XCAR (parsed);
1305 name = Fsymbol_name (base); 1305 name = Fsymbol_name (base);
1306 /* This alist includes elements such as ("RET" . "\\r"). */ 1306 /* This alist includes elements such as ("RET" . "\\r"). */
@@ -1474,7 +1474,7 @@ current_minor_maps (Lisp_Object **modeptr, Lisp_Object **mapptr)
1474static ptrdiff_t 1474static ptrdiff_t
1475click_position (Lisp_Object position) 1475click_position (Lisp_Object position)
1476{ 1476{
1477 EMACS_INT pos = (FIXNUMP (position) ? XINT (position) 1477 EMACS_INT pos = (FIXNUMP (position) ? XFIXNUM (position)
1478 : MARKERP (position) ? marker_position (position) 1478 : MARKERP (position) ? marker_position (position)
1479 : PT); 1479 : PT);
1480 if (! (BEGV <= pos && pos <= ZV)) 1480 if (! (BEGV <= pos && pos <= ZV))
@@ -1553,12 +1553,12 @@ like in the respective argument of `key-binding'. */)
1553 1553
1554 pos = POSN_BUFFER_POSN (position); 1554 pos = POSN_BUFFER_POSN (position);
1555 if (FIXNUMP (pos) 1555 if (FIXNUMP (pos)
1556 && XINT (pos) >= BEG && XINT (pos) <= Z) 1556 && XFIXNUM (pos) >= BEG && XFIXNUM (pos) <= Z)
1557 { 1557 {
1558 local_map = get_local_map (XINT (pos), 1558 local_map = get_local_map (XFIXNUM (pos),
1559 current_buffer, Qlocal_map); 1559 current_buffer, Qlocal_map);
1560 1560
1561 keymap = get_local_map (XINT (pos), 1561 keymap = get_local_map (XFIXNUM (pos),
1562 current_buffer, Qkeymap); 1562 current_buffer, Qkeymap);
1563 } 1563 }
1564 } 1564 }
@@ -1576,8 +1576,8 @@ like in the respective argument of `key-binding'. */)
1576 pos = XCDR (string); 1576 pos = XCDR (string);
1577 string = XCAR (string); 1577 string = XCAR (string);
1578 if (FIXNUMP (pos) 1578 if (FIXNUMP (pos)
1579 && XINT (pos) >= 0 1579 && XFIXNUM (pos) >= 0
1580 && XINT (pos) < SCHARS (string)) 1580 && XFIXNUM (pos) < SCHARS (string))
1581 { 1581 {
1582 map = Fget_text_property (pos, Qlocal_map, string); 1582 map = Fget_text_property (pos, Qlocal_map, string);
1583 if (!NILP (map)) 1583 if (!NILP (map))
@@ -1854,8 +1854,8 @@ accessible_keymaps_1 (Lisp_Object key, Lisp_Object cmd, Lisp_Object args, void *
1854 while (!NILP (tem = Frassq (cmd, maps))) 1854 while (!NILP (tem = Frassq (cmd, maps)))
1855 { 1855 {
1856 Lisp_Object prefix = XCAR (tem); 1856 Lisp_Object prefix = XCAR (tem);
1857 ptrdiff_t lim = XINT (Flength (XCAR (tem))); 1857 ptrdiff_t lim = XFIXNUM (Flength (XCAR (tem)));
1858 if (lim <= XINT (Flength (thisseq))) 1858 if (lim <= XFIXNUM (Flength (thisseq)))
1859 { /* This keymap was already seen with a smaller prefix. */ 1859 { /* This keymap was already seen with a smaller prefix. */
1860 ptrdiff_t i = 0; 1860 ptrdiff_t i = 0;
1861 while (i < lim && EQ (Faref (prefix, make_fixnum (i)), 1861 while (i < lim && EQ (Faref (prefix, make_fixnum (i)),
@@ -1879,10 +1879,10 @@ accessible_keymaps_1 (Lisp_Object key, Lisp_Object cmd, Lisp_Object args, void *
1879 if (is_metized) 1879 if (is_metized)
1880 { 1880 {
1881 int meta_bit = meta_modifier; 1881 int meta_bit = meta_modifier;
1882 Lisp_Object last = make_fixnum (XINT (Flength (thisseq)) - 1); 1882 Lisp_Object last = make_fixnum (XFIXNUM (Flength (thisseq)) - 1);
1883 tem = Fcopy_sequence (thisseq); 1883 tem = Fcopy_sequence (thisseq);
1884 1884
1885 Faset (tem, last, make_fixnum (XINT (key) | meta_bit)); 1885 Faset (tem, last, make_fixnum (XFIXNUM (key) | meta_bit));
1886 1886
1887 /* This new sequence is the same length as 1887 /* This new sequence is the same length as
1888 thisseq, so stick it in the list right 1888 thisseq, so stick it in the list right
@@ -1910,7 +1910,7 @@ then the value includes only maps for prefixes that start with PREFIX. */)
1910 (Lisp_Object keymap, Lisp_Object prefix) 1910 (Lisp_Object keymap, Lisp_Object prefix)
1911{ 1911{
1912 Lisp_Object maps, tail; 1912 Lisp_Object maps, tail;
1913 EMACS_INT prefixlen = XFASTINT (Flength (prefix)); 1913 EMACS_INT prefixlen = XFIXNAT (Flength (prefix));
1914 1914
1915 if (!NILP (prefix)) 1915 if (!NILP (prefix))
1916 { 1916 {
@@ -1969,11 +1969,11 @@ then the value includes only maps for prefixes that start with PREFIX. */)
1969 data.thisseq = Fcar (XCAR (tail)); 1969 data.thisseq = Fcar (XCAR (tail));
1970 data.maps = maps; 1970 data.maps = maps;
1971 data.tail = tail; 1971 data.tail = tail;
1972 last = make_fixnum (XINT (Flength (data.thisseq)) - 1); 1972 last = make_fixnum (XFIXNUM (Flength (data.thisseq)) - 1);
1973 /* Does the current sequence end in the meta-prefix-char? */ 1973 /* Does the current sequence end in the meta-prefix-char? */
1974 data.is_metized = (XINT (last) >= 0 1974 data.is_metized = (XFIXNUM (last) >= 0
1975 /* Don't metize the last char of PREFIX. */ 1975 /* Don't metize the last char of PREFIX. */
1976 && XINT (last) >= prefixlen 1976 && XFIXNUM (last) >= prefixlen
1977 && EQ (Faref (data.thisseq, last), meta_prefix_char)); 1977 && EQ (Faref (data.thisseq, last), meta_prefix_char));
1978 1978
1979 /* Since we can't run lisp code, we can't scan autoloaded maps. */ 1979 /* Since we can't run lisp code, we can't scan autoloaded maps. */
@@ -1997,7 +1997,7 @@ For an approximate inverse of this, see `kbd'. */)
1997 EMACS_INT i; 1997 EMACS_INT i;
1998 ptrdiff_t i_byte; 1998 ptrdiff_t i_byte;
1999 Lisp_Object *args; 1999 Lisp_Object *args;
2000 EMACS_INT size = XINT (Flength (keys)); 2000 EMACS_INT size = XFIXNUM (Flength (keys));
2001 Lisp_Object list; 2001 Lisp_Object list;
2002 Lisp_Object sep = build_string (" "); 2002 Lisp_Object sep = build_string (" ");
2003 Lisp_Object key; 2003 Lisp_Object key;
@@ -2006,7 +2006,7 @@ For an approximate inverse of this, see `kbd'. */)
2006 USE_SAFE_ALLOCA; 2006 USE_SAFE_ALLOCA;
2007 2007
2008 if (!NILP (prefix)) 2008 if (!NILP (prefix))
2009 size += XINT (Flength (prefix)); 2009 size += XFIXNUM (Flength (prefix));
2010 2010
2011 /* This has one extra element at the end that we don't pass to Fconcat. */ 2011 /* This has one extra element at the end that we don't pass to Fconcat. */
2012 EMACS_INT size4; 2012 EMACS_INT size4;
@@ -2043,7 +2043,7 @@ For an approximate inverse of this, see `kbd'. */)
2043 else if (VECTORP (list)) 2043 else if (VECTORP (list))
2044 size = ASIZE (list); 2044 size = ASIZE (list);
2045 else if (CONSP (list)) 2045 else if (CONSP (list))
2046 size = XINT (Flength (list)); 2046 size = XFIXNUM (Flength (list));
2047 else 2047 else
2048 wrong_type_argument (Qarrayp, list); 2048 wrong_type_argument (Qarrayp, list);
2049 2049
@@ -2074,7 +2074,7 @@ For an approximate inverse of this, see `kbd'. */)
2074 { 2074 {
2075 if (!FIXNUMP (key) 2075 if (!FIXNUMP (key)
2076 || EQ (key, meta_prefix_char) 2076 || EQ (key, meta_prefix_char)
2077 || (XINT (key) & meta_modifier)) 2077 || (XFIXNUM (key) & meta_modifier))
2078 { 2078 {
2079 args[len++] = Fsingle_key_description (meta_prefix_char, Qnil); 2079 args[len++] = Fsingle_key_description (meta_prefix_char, Qnil);
2080 args[len++] = sep; 2080 args[len++] = sep;
@@ -2082,7 +2082,7 @@ For an approximate inverse of this, see `kbd'. */)
2082 continue; 2082 continue;
2083 } 2083 }
2084 else 2084 else
2085 XSETINT (key, XINT (key) | meta_modifier); 2085 XSETINT (key, XFIXNUM (key) | meta_modifier);
2086 add_meta = 0; 2086 add_meta = 0;
2087 } 2087 }
2088 else if (EQ (key, meta_prefix_char)) 2088 else if (EQ (key, meta_prefix_char))
@@ -2240,7 +2240,7 @@ around function keys and event symbols. */)
2240 if (FIXNUMP (key)) /* Normal character. */ 2240 if (FIXNUMP (key)) /* Normal character. */
2241 { 2241 {
2242 char tem[KEY_DESCRIPTION_SIZE]; 2242 char tem[KEY_DESCRIPTION_SIZE];
2243 char *p = push_key_description (XINT (key), tem); 2243 char *p = push_key_description (XFIXNUM (key), tem);
2244 *p = 0; 2244 *p = 0;
2245 return make_specified_string (tem, -1, p - tem, 1); 2245 return make_specified_string (tem, -1, p - tem, 1);
2246 } 2246 }
@@ -2306,7 +2306,7 @@ See Info node `(elisp)Describing Characters' for examples. */)
2306 2306
2307 CHECK_CHARACTER (character); 2307 CHECK_CHARACTER (character);
2308 2308
2309 c = XINT (character); 2309 c = XFIXNUM (character);
2310 if (!ASCII_CHAR_P (c)) 2310 if (!ASCII_CHAR_P (c))
2311 { 2311 {
2312 int len = CHAR_STRING (c, (unsigned char *) str); 2312 int len = CHAR_STRING (c, (unsigned char *) str);
@@ -2328,7 +2328,7 @@ static int
2328preferred_sequence_p (Lisp_Object seq) 2328preferred_sequence_p (Lisp_Object seq)
2329{ 2329{
2330 EMACS_INT i; 2330 EMACS_INT i;
2331 EMACS_INT len = XFASTINT (Flength (seq)); 2331 EMACS_INT len = XFIXNAT (Flength (seq));
2332 int result = 1; 2332 int result = 1;
2333 2333
2334 for (i = 0; i < len; i++) 2334 for (i = 0; i < len; i++)
@@ -2342,7 +2342,7 @@ preferred_sequence_p (Lisp_Object seq)
2342 return 0; 2342 return 0;
2343 else 2343 else
2344 { 2344 {
2345 int modifiers = XINT (elt) & (CHAR_MODIFIER_MASK & ~CHAR_META); 2345 int modifiers = XFIXNUM (elt) & (CHAR_MODIFIER_MASK & ~CHAR_META);
2346 if (modifiers == where_is_preferred_modifier) 2346 if (modifiers == where_is_preferred_modifier)
2347 result = 2; 2347 result = 2;
2348 else if (modifiers) 2348 else if (modifiers)
@@ -2463,12 +2463,12 @@ where_is_internal (Lisp_Object definition, Lisp_Object keymaps,
2463 2463
2464 this = Fcar (XCAR (maps)); 2464 this = Fcar (XCAR (maps));
2465 map = Fcdr (XCAR (maps)); 2465 map = Fcdr (XCAR (maps));
2466 last = make_fixnum (XINT (Flength (this)) - 1); 2466 last = make_fixnum (XFIXNUM (Flength (this)) - 1);
2467 last_is_meta = (XINT (last) >= 0 2467 last_is_meta = (XFIXNUM (last) >= 0
2468 && EQ (Faref (this, last), meta_prefix_char)); 2468 && EQ (Faref (this, last), meta_prefix_char));
2469 2469
2470 /* if (nomenus && !preferred_sequence_p (this)) */ 2470 /* if (nomenus && !preferred_sequence_p (this)) */
2471 if (nomenus && XINT (last) >= 0 2471 if (nomenus && XFIXNUM (last) >= 0
2472 && SYMBOLP (tem = Faref (this, make_fixnum (0))) 2472 && SYMBOLP (tem = Faref (this, make_fixnum (0)))
2473 && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmouse_events))) 2473 && !NILP (Fmemq (XCAR (parse_modifiers (tem)), Vmouse_events)))
2474 /* If no menu entries should be returned, skip over the 2474 /* If no menu entries should be returned, skip over the
@@ -2720,7 +2720,7 @@ where_is_internal_1 (Lisp_Object key, Lisp_Object binding, Lisp_Object args, voi
2720 if (FIXNUMP (key) && last_is_meta) 2720 if (FIXNUMP (key) && last_is_meta)
2721 { 2721 {
2722 sequence = Fcopy_sequence (this); 2722 sequence = Fcopy_sequence (this);
2723 Faset (sequence, last, make_fixnum (XINT (key) | meta_modifier)); 2723 Faset (sequence, last, make_fixnum (XFIXNUM (key) | meta_modifier));
2724 } 2724 }
2725 else 2725 else
2726 { 2726 {
@@ -3126,8 +3126,8 @@ describe_map_compare (const void *aa, const void *bb)
3126{ 3126{
3127 const struct describe_map_elt *a = aa, *b = bb; 3127 const struct describe_map_elt *a = aa, *b = bb;
3128 if (FIXNUMP (a->event) && FIXNUMP (b->event)) 3128 if (FIXNUMP (a->event) && FIXNUMP (b->event))
3129 return ((XINT (a->event) > XINT (b->event)) 3129 return ((XFIXNUM (a->event) > XFIXNUM (b->event))
3130 - (XINT (a->event) < XINT (b->event))); 3130 - (XFIXNUM (a->event) < XFIXNUM (b->event)));
3131 if (!FIXNUMP (a->event) && FIXNUMP (b->event)) 3131 if (!FIXNUMP (a->event) && FIXNUMP (b->event))
3132 return 1; 3132 return 1;
3133 if (FIXNUMP (a->event) && !FIXNUMP (b->event)) 3133 if (FIXNUMP (a->event) && !FIXNUMP (b->event))
@@ -3285,7 +3285,7 @@ describe_map (Lisp_Object map, Lisp_Object prefix,
3285 if (FIXNUMP (vect[i].event)) 3285 if (FIXNUMP (vect[i].event))
3286 { 3286 {
3287 while (i + 1 < slots_used 3287 while (i + 1 < slots_used
3288 && EQ (vect[i+1].event, make_fixnum (XINT (vect[i].event) + 1)) 3288 && EQ (vect[i+1].event, make_fixnum (XFIXNUM (vect[i].event) + 1))
3289 && !NILP (Fequal (vect[i + 1].definition, definition)) 3289 && !NILP (Fequal (vect[i + 1].definition, definition))
3290 && vect[i].shadowed == vect[i + 1].shadowed) 3290 && vect[i].shadowed == vect[i + 1].shadowed)
3291 i++; 3291 i++;
@@ -3407,7 +3407,7 @@ describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args,
3407 if (!keymap_p) 3407 if (!keymap_p)
3408 { 3408 {
3409 /* Call Fkey_description first, to avoid GC bug for the other string. */ 3409 /* Call Fkey_description first, to avoid GC bug for the other string. */
3410 if (!NILP (prefix) && XFASTINT (Flength (prefix)) > 0) 3410 if (!NILP (prefix) && XFIXNAT (Flength (prefix)) > 0)
3411 { 3411 {
3412 Lisp_Object tem = Fkey_description (prefix, Qnil); 3412 Lisp_Object tem = Fkey_description (prefix, Qnil);
3413 AUTO_STRING (space, " "); 3413 AUTO_STRING (space, " ");