diff options
| author | Karl Heuer | 1994-10-04 15:59:48 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 15:59:48 +0000 |
| commit | bb9e9bed5a19a98f5ac2cbba451cf53e73743267 (patch) | |
| tree | 06e69d15be2a29bee468aa4863089d2a7496171e /src/keyboard.c | |
| parent | 94d92e9c1c721fb03c81563a46e47426aef539ef (diff) | |
| download | emacs-bb9e9bed5a19a98f5ac2cbba451cf53e73743267.tar.gz emacs-bb9e9bed5a19a98f5ac2cbba451cf53e73743267.zip | |
(read_char, make_lispy_event, make_lispy_movement, parse_modifiers,
apply_modifiers, modify_event_symbol, menu_bar_one_keymap, read_key_sequence,
Fexecute_extended_command, Frecursion_depth, Fcurrent_input_mode,
syms_of_keyboard): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 0975792cd4a..bbd823b2ede 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1538,7 +1538,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1538 | c = Faref (Vexecuting_macro, make_number (executing_macro_index)); | 1538 | c = Faref (Vexecuting_macro, make_number (executing_macro_index)); |
| 1539 | if (STRINGP (Vexecuting_macro) | 1539 | if (STRINGP (Vexecuting_macro) |
| 1540 | && (XINT (c) & 0x80)) | 1540 | && (XINT (c) & 0x80)) |
| 1541 | XFASTINT (c) = CHAR_META | (XINT (c) & ~0x80); | 1541 | XSETFASTINT (c, CHAR_META | (XINT (c) & ~0x80)); |
| 1542 | 1542 | ||
| 1543 | executing_macro_index++; | 1543 | executing_macro_index++; |
| 1544 | 1544 | ||
| @@ -2575,7 +2575,7 @@ make_lispy_event (event) | |||
| 2575 | & (meta_modifier | alt_modifier | 2575 | & (meta_modifier | alt_modifier |
| 2576 | | hyper_modifier | super_modifier)); | 2576 | | hyper_modifier | super_modifier)); |
| 2577 | button_down_time = 0; | 2577 | button_down_time = 0; |
| 2578 | XFASTINT (lispy_c) = c; | 2578 | XSETFASTINT (lispy_c, c); |
| 2579 | return lispy_c; | 2579 | return lispy_c; |
| 2580 | } | 2580 | } |
| 2581 | 2581 | ||
| @@ -2935,8 +2935,8 @@ make_lispy_movement (frame, bar_window, part, x, y, time) | |||
| 2935 | { | 2935 | { |
| 2936 | window = Qnil; | 2936 | window = Qnil; |
| 2937 | posn = Qnil; | 2937 | posn = Qnil; |
| 2938 | XFASTINT (x) = 0; | 2938 | XSETFASTINT (x, 0); |
| 2939 | XFASTINT (y) = 0; | 2939 | XSETFASTINT (y, 0); |
| 2940 | } | 2940 | } |
| 2941 | 2941 | ||
| 2942 | return Fcons (Qmouse_movement, | 2942 | return Fcons (Qmouse_movement, |
| @@ -3182,7 +3182,7 @@ parse_modifiers (symbol) | |||
| 3182 | 3182 | ||
| 3183 | if (modifiers & ~((1<<VALBITS) - 1)) | 3183 | if (modifiers & ~((1<<VALBITS) - 1)) |
| 3184 | abort (); | 3184 | abort (); |
| 3185 | XFASTINT (mask) = modifiers; | 3185 | XSETFASTINT (mask, modifiers); |
| 3186 | elements = Fcons (unmodified, Fcons (mask, Qnil)); | 3186 | elements = Fcons (unmodified, Fcons (mask, Qnil)); |
| 3187 | 3187 | ||
| 3188 | /* Cache the parsing results on SYMBOL. */ | 3188 | /* Cache the parsing results on SYMBOL. */ |
| @@ -3221,7 +3221,7 @@ apply_modifiers (modifiers, base) | |||
| 3221 | 3221 | ||
| 3222 | /* The click modifier never figures into cache indices. */ | 3222 | /* The click modifier never figures into cache indices. */ |
| 3223 | cache = Fget (base, Qmodifier_cache); | 3223 | cache = Fget (base, Qmodifier_cache); |
| 3224 | XFASTINT (index) = (modifiers & ~click_modifier); | 3224 | XSETFASTINT (index, (modifiers & ~click_modifier)); |
| 3225 | entry = assq_no_quit (index, cache); | 3225 | entry = assq_no_quit (index, cache); |
| 3226 | 3226 | ||
| 3227 | if (CONSP (entry)) | 3227 | if (CONSP (entry)) |
| @@ -3238,7 +3238,7 @@ apply_modifiers (modifiers, base) | |||
| 3238 | Fput (base, Qmodifier_cache, Fcons (entry, cache)); | 3238 | Fput (base, Qmodifier_cache, Fcons (entry, cache)); |
| 3239 | 3239 | ||
| 3240 | /* We have the parsing info now for free, so add it to the caches. */ | 3240 | /* We have the parsing info now for free, so add it to the caches. */ |
| 3241 | XFASTINT (index) = modifiers; | 3241 | XSETFASTINT (index, modifiers); |
| 3242 | Fput (new_symbol, Qevent_symbol_element_mask, | 3242 | Fput (new_symbol, Qevent_symbol_element_mask, |
| 3243 | Fcons (base, Fcons (index, Qnil))); | 3243 | Fcons (base, Fcons (index, Qnil))); |
| 3244 | Fput (new_symbol, Qevent_symbol_elements, | 3244 | Fput (new_symbol, Qevent_symbol_elements, |
| @@ -3350,7 +3350,7 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_alist, | |||
| 3350 | { | 3350 | { |
| 3351 | Lisp_Object size; | 3351 | Lisp_Object size; |
| 3352 | 3352 | ||
| 3353 | XFASTINT (size) = table_size; | 3353 | XSETFASTINT (size, table_size); |
| 3354 | *symbol_table = Fmake_vector (size, Qnil); | 3354 | *symbol_table = Fmake_vector (size, Qnil); |
| 3355 | } | 3355 | } |
| 3356 | 3356 | ||
| @@ -3889,7 +3889,7 @@ menu_bar_one_keymap (keymap) | |||
| 3889 | for (c = 0; c < len; c++) | 3889 | for (c = 0; c < len; c++) |
| 3890 | { | 3890 | { |
| 3891 | Lisp_Object character; | 3891 | Lisp_Object character; |
| 3892 | XFASTINT (character) = c; | 3892 | XSETFASTINT (character, c); |
| 3893 | binding = XVECTOR (item)->contents[c]; | 3893 | binding = XVECTOR (item)->contents[c]; |
| 3894 | if (CONSP (binding)) | 3894 | if (CONSP (binding)) |
| 3895 | { | 3895 | { |
| @@ -4935,7 +4935,7 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 4935 | (get_keyelt | 4935 | (get_keyelt |
| 4936 | (access_keymap (fkey_map, meta_prefix_char, 1, 0)), | 4936 | (access_keymap (fkey_map, meta_prefix_char, 1, 0)), |
| 4937 | 0, 1); | 4937 | 0, 1); |
| 4938 | XFASTINT (key) = XFASTINT (key) & ~meta_modifier; | 4938 | XSETFASTINT (key, XFASTINT (key) & ~meta_modifier); |
| 4939 | } | 4939 | } |
| 4940 | else | 4940 | else |
| 4941 | fkey_next = fkey_map; | 4941 | fkey_next = fkey_map; |
| @@ -4996,8 +4996,8 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 4996 | int i; | 4996 | int i; |
| 4997 | 4997 | ||
| 4998 | for (i = 0; i < len; i++) | 4998 | for (i = 0; i < len; i++) |
| 4999 | XFASTINT (keybuf[fkey_start + i]) | 4999 | XSETFASTINT (keybuf[fkey_start + i], |
| 5000 | = XSTRING (fkey_next)->data[i]; | 5000 | XSTRING (fkey_next)->data[i]); |
| 5001 | } | 5001 | } |
| 5002 | 5002 | ||
| 5003 | mock_input = t; | 5003 | mock_input = t; |
| @@ -5039,7 +5039,7 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 5039 | (get_keyelt | 5039 | (get_keyelt |
| 5040 | (access_keymap (keytran_map, meta_prefix_char, 1, 0)), | 5040 | (access_keymap (keytran_map, meta_prefix_char, 1, 0)), |
| 5041 | 0, 1); | 5041 | 0, 1); |
| 5042 | XFASTINT (key) = XFASTINT (key) & ~meta_modifier; | 5042 | XSETFASTINT (key, XFASTINT (key) & ~meta_modifier); |
| 5043 | } | 5043 | } |
| 5044 | else | 5044 | else |
| 5045 | keytran_next = keytran_map; | 5045 | keytran_next = keytran_map; |
| @@ -5090,8 +5090,8 @@ read_key_sequence (keybuf, bufsize, prompt) | |||
| 5090 | int i; | 5090 | int i; |
| 5091 | 5091 | ||
| 5092 | for (i = 0; i < len; i++) | 5092 | for (i = 0; i < len; i++) |
| 5093 | XFASTINT (keybuf[keytran_start + i]) | 5093 | XSETFASTINT (keybuf[keytran_start + i], |
| 5094 | = XSTRING (keytran_next)->data[i]; | 5094 | XSTRING (keytran_next)->data[i]); |
| 5095 | } | 5095 | } |
| 5096 | 5096 | ||
| 5097 | mock_input = t; | 5097 | mock_input = t; |
| @@ -5353,11 +5353,11 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_ | |||
| 5353 | str = XSTRING (function); | 5353 | str = XSTRING (function); |
| 5354 | for (i = 0; i < str->size; i++) | 5354 | for (i = 0; i < str->size; i++) |
| 5355 | { | 5355 | { |
| 5356 | XFASTINT (tem) = str->data[i]; | 5356 | XSETFASTINT (tem, str->data[i]); |
| 5357 | add_command_key (tem); | 5357 | add_command_key (tem); |
| 5358 | } | 5358 | } |
| 5359 | 5359 | ||
| 5360 | XFASTINT (tem) = '\015'; | 5360 | XSETFASTINT (tem, '\015'); |
| 5361 | add_command_key (tem); | 5361 | add_command_key (tem); |
| 5362 | } | 5362 | } |
| 5363 | 5363 | ||
| @@ -5434,7 +5434,7 @@ DEFUN ("recursion-depth", Frecursion_depth, Srecursion_depth, 0, 0, 0, | |||
| 5434 | () | 5434 | () |
| 5435 | { | 5435 | { |
| 5436 | Lisp_Object temp; | 5436 | Lisp_Object temp; |
| 5437 | XFASTINT (temp) = command_loop_level + minibuf_level; | 5437 | XSETFASTINT (temp, command_loop_level + minibuf_level); |
| 5438 | return temp; | 5438 | return temp; |
| 5439 | } | 5439 | } |
| 5440 | 5440 | ||
| @@ -5824,7 +5824,7 @@ The elements of this list correspond to the arguments of\n\ | |||
| 5824 | val[0] = interrupt_input ? Qt : Qnil; | 5824 | val[0] = interrupt_input ? Qt : Qnil; |
| 5825 | val[1] = flow_control ? Qt : Qnil; | 5825 | val[1] = flow_control ? Qt : Qnil; |
| 5826 | val[2] = meta_key == 2 ? make_number (0) : meta_key == 1 ? Qt : Qnil; | 5826 | val[2] = meta_key == 2 ? make_number (0) : meta_key == 1 ? Qt : Qnil; |
| 5827 | XFASTINT (val[3]) = quit_char; | 5827 | XSETFASTINT (val[3], quit_char); |
| 5828 | 5828 | ||
| 5829 | return Flist (sizeof (val) / sizeof (val[0]), val); | 5829 | return Flist (sizeof (val) / sizeof (val[0]), val); |
| 5830 | } | 5830 | } |
| @@ -6113,7 +6113,7 @@ Zero means disable autosaving due to number of characters typed."); | |||
| 6113 | Zero or nil means disable auto-saving due to idleness.\n\ | 6113 | Zero or nil means disable auto-saving due to idleness.\n\ |
| 6114 | After auto-saving due to this many seconds of idle time,\n\ | 6114 | After auto-saving due to this many seconds of idle time,\n\ |
| 6115 | Emacs also does a garbage collection if that seems to be warranted."); | 6115 | Emacs also does a garbage collection if that seems to be warranted."); |
| 6116 | XFASTINT (Vauto_save_timeout) = 30; | 6116 | XSETFASTINT (Vauto_save_timeout, 30); |
| 6117 | 6117 | ||
| 6118 | DEFVAR_INT ("echo-keystrokes", &echo_keystrokes, | 6118 | DEFVAR_INT ("echo-keystrokes", &echo_keystrokes, |
| 6119 | "*Nonzero means echo unfinished commands after this many seconds of pause."); | 6119 | "*Nonzero means echo unfinished commands after this many seconds of pause."); |