aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-09-29 14:29:22 +0000
committerJim Blandy1992-09-29 14:29:22 +0000
commit9deb415abc9b6bc8dfd5efbafb905ed319237425 (patch)
tree06e3c592d4bc1ec11fe178bda24620f470a50214 /src
parent5160df46a25f6f1f3dd1dfae9c00b44bc19adefe (diff)
downloademacs-9deb415abc9b6bc8dfd5efbafb905ed319237425.tar.gz
emacs-9deb415abc9b6bc8dfd5efbafb905ed319237425.zip
* keyboard.c: Initialize recent_keys in syms_of_keyboard, not
init_keyboard; the latter is run after dumping, so you can't add more staticpros.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 2390c8199c1..df53edd4138 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3474,15 +3474,12 @@ init_keyboard ()
3474 quit_char = Ctl ('g'); 3474 quit_char = Ctl ('g');
3475 unread_command_char = Qnil; 3475 unread_command_char = Qnil;
3476 total_keys = 0; 3476 total_keys = 0;
3477 recent_keys_index = 0;
3477 kbd_fetch_ptr = kbd_buffer; 3478 kbd_fetch_ptr = kbd_buffer;
3478 kbd_store_ptr = kbd_buffer; 3479 kbd_store_ptr = kbd_buffer;
3479 do_mouse_tracking = 0; 3480 do_mouse_tracking = 0;
3480 input_pending = 0; 3481 input_pending = 0;
3481 3482
3482 recent_keys = Fmake_vector (make_number (NUM_RECENT_KEYS), Qnil);
3483 staticpro (&recent_keys);
3484 recent_keys_index = 0;
3485
3486 if (!noninteractive) 3483 if (!noninteractive)
3487 { 3484 {
3488 signal (SIGINT, interrupt_signal); 3485 signal (SIGINT, interrupt_signal);
@@ -3588,6 +3585,9 @@ syms_of_keyboard ()
3588 } 3585 }
3589 } 3586 }
3590 3587
3588 recent_keys = Fmake_vector (make_number (NUM_RECENT_KEYS), Qnil);
3589 staticpro (&recent_keys);
3590
3591 func_key_syms = Qnil; 3591 func_key_syms = Qnil;
3592 staticpro (&func_key_syms); 3592 staticpro (&func_key_syms);
3593 3593