aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-12 07:26:16 +0000
committerRichard M. Stallman1993-06-12 07:26:16 +0000
commitb8d9050d7304665260026121b84b783bfc43b24f (patch)
tree212d1eca8c1eb2add075071195479e564d6a4381 /src
parent164a14ef248a0407557ca7bc20f4e54d3f8d0ac1 (diff)
downloademacs-b8d9050d7304665260026121b84b783bfc43b24f.tar.gz
emacs-b8d9050d7304665260026121b84b783bfc43b24f.zip
(read_char): Set c properly as a Lisp int.
(command_loop_1): Delete spurious use of XINT on c, a char.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c192b2070bd..822f336b65e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1097,7 +1097,7 @@ command_loop_1 ()
1097 || !EQ (current_buffer->selective_display, Qnil) 1097 || !EQ (current_buffer->selective_display, Qnil)
1098 || detect_input_pending () 1098 || detect_input_pending ()
1099 || !NILP (Vexecuting_macro); 1099 || !NILP (Vexecuting_macro);
1100 if (internal_self_insert (XINT (c), 0)) 1100 if (internal_self_insert (c, 0))
1101 { 1101 {
1102 lose = 1; 1102 lose = 1;
1103 nonundocount = 0; 1103 nonundocount = 0;
@@ -1107,7 +1107,7 @@ command_loop_1 ()
1107 { 1107 {
1108 struct Lisp_Vector *dp 1108 struct Lisp_Vector *dp
1109 = window_display_table (XWINDOW (selected_window)); 1109 = window_display_table (XWINDOW (selected_window));
1110 int lose = XINT (c); 1110 int lose = c;
1111 1111
1112 if (dp) 1112 if (dp)
1113 { 1113 {
@@ -1510,7 +1510,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
1510 /* Transfer any other modifier bits directly from 1510 /* Transfer any other modifier bits directly from
1511 extra_keyboard_modifiers to c. Ignore the actual character code 1511 extra_keyboard_modifiers to c. Ignore the actual character code
1512 in the low 16 bits of extra_keyboard_modifiers. */ 1512 in the low 16 bits of extra_keyboard_modifiers. */
1513 c |= (extra_keyboard_modifiers & ~0xff7f & ~CHAR_CTL); 1513 XSETINT (c, XINT (c) | (extra_keyboard_modifiers & ~0xff7f & ~CHAR_CTL));
1514 } 1514 }
1515 1515
1516 non_reread: 1516 non_reread: