diff options
| author | Thien-Thi Nguyen | 2002-06-03 01:39:27 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2002-06-03 01:39:27 +0000 |
| commit | 744cd66b791b6562030d75049d2944fe3ce0bd3a (patch) | |
| tree | 66627075574cb6f0f7da4db9c6ceeee489694851 /src/keymap.c | |
| parent | a731cae28ec4cdc487467b08c2df5e082ff6c0a6 (diff) | |
| download | emacs-744cd66b791b6562030d75049d2944fe3ce0bd3a.tar.gz emacs-744cd66b791b6562030d75049d2944fe3ce0bd3a.zip | |
(describe_command): Cast `current_column' return value to int.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/keymap.c b/src/keymap.c index 775125d6f2d..b7c4519cb01 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -477,11 +477,11 @@ fix_submap_inheritance (map, event, submap) | |||
| 477 | 477 | ||
| 478 | /* Look up IDX in MAP. IDX may be any sort of event. | 478 | /* Look up IDX in MAP. IDX may be any sort of event. |
| 479 | Note that this does only one level of lookup; IDX must be a single | 479 | Note that this does only one level of lookup; IDX must be a single |
| 480 | event, not a sequence. | 480 | event, not a sequence. |
| 481 | 481 | ||
| 482 | If T_OK is non-zero, bindings for Qt are treated as default | 482 | If T_OK is non-zero, bindings for Qt are treated as default |
| 483 | bindings; any key left unmentioned by other tables and bindings is | 483 | bindings; any key left unmentioned by other tables and bindings is |
| 484 | given the binding of Qt. | 484 | given the binding of Qt. |
| 485 | 485 | ||
| 486 | If T_OK is zero, bindings for Qt are not treated specially. | 486 | If T_OK is zero, bindings for Qt are not treated specially. |
| 487 | 487 | ||
| @@ -572,7 +572,7 @@ access_keymap (map, idx, t_ok, noinherit, autoload) | |||
| 572 | else if (CONSP (binding)) | 572 | else if (CONSP (binding)) |
| 573 | { | 573 | { |
| 574 | Lisp_Object key = XCAR (binding); | 574 | Lisp_Object key = XCAR (binding); |
| 575 | 575 | ||
| 576 | if (EQ (key, idx)) | 576 | if (EQ (key, idx)) |
| 577 | val = XCDR (binding); | 577 | val = XCDR (binding); |
| 578 | else if (t_ok | 578 | else if (t_ok |
| @@ -1188,7 +1188,7 @@ silly_event_symbol_error (c) | |||
| 1188 | { | 1188 | { |
| 1189 | Lisp_Object parsed, base, name, assoc; | 1189 | Lisp_Object parsed, base, name, assoc; |
| 1190 | int modifiers; | 1190 | int modifiers; |
| 1191 | 1191 | ||
| 1192 | parsed = parse_modifiers (c); | 1192 | parsed = parse_modifiers (c); |
| 1193 | modifiers = (int) XUINT (XCAR (XCDR (parsed))); | 1193 | modifiers = (int) XUINT (XCAR (XCDR (parsed))); |
| 1194 | base = XCAR (parsed); | 1194 | base = XCAR (parsed); |
| @@ -1217,7 +1217,7 @@ silly_event_symbol_error (c) | |||
| 1217 | 1217 | ||
| 1218 | c = reorder_modifiers (c); | 1218 | c = reorder_modifiers (c); |
| 1219 | keystring = concat2 (build_string (new_mods), XCDR (assoc)); | 1219 | keystring = concat2 (build_string (new_mods), XCDR (assoc)); |
| 1220 | 1220 | ||
| 1221 | error ((modifiers & ~meta_modifier | 1221 | error ((modifiers & ~meta_modifier |
| 1222 | ? "To bind the key %s, use [?%s], not [%s]" | 1222 | ? "To bind the key %s, use [?%s], not [%s]" |
| 1223 | : "To bind the key %s, use \"%s\", not [%s]"), | 1223 | : "To bind the key %s, use \"%s\", not [%s]"), |
| @@ -1310,7 +1310,7 @@ current_minor_maps (modeptr, mapptr) | |||
| 1310 | newsize = cmm_size == 0 ? 30 : cmm_size * 2; | 1310 | newsize = cmm_size == 0 ? 30 : cmm_size * 2; |
| 1311 | allocsize = newsize * sizeof *newmodes; | 1311 | allocsize = newsize * sizeof *newmodes; |
| 1312 | 1312 | ||
| 1313 | /* Use malloc here. See the comment above this function. | 1313 | /* Use malloc here. See the comment above this function. |
| 1314 | Avoid realloc here; it causes spurious traps on GNU/Linux [KFS] */ | 1314 | Avoid realloc here; it causes spurious traps on GNU/Linux [KFS] */ |
| 1315 | BLOCK_INPUT; | 1315 | BLOCK_INPUT; |
| 1316 | newmodes = (Lisp_Object *) malloc (allocsize); | 1316 | newmodes = (Lisp_Object *) malloc (allocsize); |
| @@ -1335,7 +1335,7 @@ current_minor_maps (modeptr, mapptr) | |||
| 1335 | cmm_maps = newmaps; | 1335 | cmm_maps = newmaps; |
| 1336 | } | 1336 | } |
| 1337 | UNBLOCK_INPUT; | 1337 | UNBLOCK_INPUT; |
| 1338 | 1338 | ||
| 1339 | if (newmodes == NULL || newmaps == NULL) | 1339 | if (newmodes == NULL || newmaps == NULL) |
| 1340 | break; | 1340 | break; |
| 1341 | cmm_size = newsize; | 1341 | cmm_size = newsize; |
| @@ -1440,7 +1440,7 @@ is non-nil, `key-binding' returns the unmapped command. */) | |||
| 1440 | goto done; | 1440 | goto done; |
| 1441 | } | 1441 | } |
| 1442 | else | 1442 | else |
| 1443 | { | 1443 | { |
| 1444 | Lisp_Object local; | 1444 | Lisp_Object local; |
| 1445 | 1445 | ||
| 1446 | local = get_local_map (PT, current_buffer, Qkeymap); | 1446 | local = get_local_map (PT, current_buffer, Qkeymap); |
| @@ -1481,14 +1481,14 @@ is non-nil, `key-binding' returns the unmapped command. */) | |||
| 1481 | 1481 | ||
| 1482 | /* If the result of the ordinary keymap lookup is an interactive | 1482 | /* If the result of the ordinary keymap lookup is an interactive |
| 1483 | command, look for a key binding (ie. remapping) for that command. */ | 1483 | command, look for a key binding (ie. remapping) for that command. */ |
| 1484 | 1484 | ||
| 1485 | if (NILP (no_remap) && SYMBOLP (value)) | 1485 | if (NILP (no_remap) && SYMBOLP (value)) |
| 1486 | { | 1486 | { |
| 1487 | Lisp_Object value1; | 1487 | Lisp_Object value1; |
| 1488 | if (value1 = Fremap_command (value), !NILP (value1)) | 1488 | if (value1 = Fremap_command (value), !NILP (value1)) |
| 1489 | value = value1; | 1489 | value = value1; |
| 1490 | } | 1490 | } |
| 1491 | 1491 | ||
| 1492 | return value; | 1492 | return value; |
| 1493 | } | 1493 | } |
| 1494 | 1494 | ||
| @@ -2486,7 +2486,7 @@ remapped command in the returned list. */) | |||
| 2486 | Lisp_Object *defns; | 2486 | Lisp_Object *defns; |
| 2487 | int i, j, n; | 2487 | int i, j, n; |
| 2488 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; | 2488 | struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; |
| 2489 | 2489 | ||
| 2490 | /* Check heuristic-consistency of the cache. */ | 2490 | /* Check heuristic-consistency of the cache. */ |
| 2491 | if (NILP (Fequal (keymaps, where_is_cache_keymaps))) | 2491 | if (NILP (Fequal (keymaps, where_is_cache_keymaps))) |
| 2492 | where_is_cache = Qnil; | 2492 | where_is_cache = Qnil; |
| @@ -2925,7 +2925,7 @@ describe_command (definition, args) | |||
| 2925 | Lisp_Object definition, args; | 2925 | Lisp_Object definition, args; |
| 2926 | { | 2926 | { |
| 2927 | register Lisp_Object tem1; | 2927 | register Lisp_Object tem1; |
| 2928 | int column = current_column (); | 2928 | int column = (int) current_column (); /* iftc */ |
| 2929 | int description_column; | 2929 | int description_column; |
| 2930 | 2930 | ||
| 2931 | /* If column 16 is no good, go to col 32; | 2931 | /* If column 16 is no good, go to col 32; |
| @@ -3481,7 +3481,7 @@ apropos_accum (symbol, string) | |||
| 3481 | apropos_accumulate = Fcons (symbol, apropos_accumulate); | 3481 | apropos_accumulate = Fcons (symbol, apropos_accumulate); |
| 3482 | } | 3482 | } |
| 3483 | 3483 | ||
| 3484 | DEFUN ("apropos-internal", Fapropos_internal, Sapropos_internal, 1, 2, 0, | 3484 | DEFUN ("apropos-internal", Fapropos_internal, Sapropos_internal, 1, 2, 0, |
| 3485 | doc: /* Show all symbols whose names contain match for REGEXP. | 3485 | doc: /* Show all symbols whose names contain match for REGEXP. |
| 3486 | If optional 2nd arg PREDICATE is non-nil, (funcall PREDICATE SYMBOL) is done | 3486 | If optional 2nd arg PREDICATE is non-nil, (funcall PREDICATE SYMBOL) is done |
| 3487 | for each symbol and a symbol is mentioned only if that returns non-nil. | 3487 | for each symbol and a symbol is mentioned only if that returns non-nil. |
| @@ -3585,7 +3585,7 @@ It is intended for modes or packages using multiple minor-mode keymaps. | |||
| 3585 | Each element is a keymap alist just like `minor-mode-map-alist', or a | 3585 | Each element is a keymap alist just like `minor-mode-map-alist', or a |
| 3586 | symbol with a variable binding which is a keymap alist, and it is used | 3586 | symbol with a variable binding which is a keymap alist, and it is used |
| 3587 | the same way. The "active" keymaps in each alist are used before | 3587 | the same way. The "active" keymaps in each alist are used before |
| 3588 | `minor-mode-map-alist' and `minor-mode-overriding-map-alist'. */); | 3588 | `minor-mode-map-alist' and `minor-mode-overriding-map-alist'. */); |
| 3589 | Vemulation_mode_map_alists = Qnil; | 3589 | Vemulation_mode_map_alists = Qnil; |
| 3590 | 3590 | ||
| 3591 | 3591 | ||