aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-06-09 20:37:54 +0000
committerKarl Heuer1995-06-09 20:37:54 +0000
commit142e6c732ed826aa24379f80aae6d4372e7bb1e7 (patch)
treee75e778d105976fc79ba3a2b5b34f1dc8a21dc94 /src
parent6d03a6fdd558387854e4253737ebf5d48cef0ec3 (diff)
downloademacs-142e6c732ed826aa24379f80aae6d4372e7bb1e7.tar.gz
emacs-142e6c732ed826aa24379f80aae6d4372e7bb1e7.zip
(system_key_syms): Deleted; now part of struct kboard.
(make_lispy_event): Use the struct member. (init_kboard): Initialize it. (syms_of_keyboard): Delete initialization and staticpro.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 45890ee9944..45b4079d25d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2711,7 +2711,6 @@ swallow_events ()
2711 2711
2712/* Caches for modify_event_symbol. */ 2712/* Caches for modify_event_symbol. */
2713static Lisp_Object accent_key_syms; 2713static Lisp_Object accent_key_syms;
2714static Lisp_Object system_key_syms;
2715static Lisp_Object func_key_syms; 2714static Lisp_Object func_key_syms;
2716static Lisp_Object mouse_syms; 2715static Lisp_Object mouse_syms;
2717 2716
@@ -3003,13 +3002,14 @@ make_lispy_event (event)
3003 { 3002 {
3004 /* We need to use an alist rather than a vector as the cache 3003 /* We need to use an alist rather than a vector as the cache
3005 since we can't make a vector long enuf. */ 3004 since we can't make a vector long enuf. */
3006 if (NILP (system_key_syms)) 3005 if (NILP (current_kboard->system_key_syms))
3007 system_key_syms = Fcons (Qnil, Qnil); 3006 current_kboard->system_key_syms = Fcons (Qnil, Qnil);
3008 return modify_event_symbol (event->code, 3007 return modify_event_symbol (event->code,
3009 event->modifiers, 3008 event->modifiers,
3010 Qfunction_key, 3009 Qfunction_key,
3011 current_kboard->Vsystem_key_alist, 3010 current_kboard->Vsystem_key_alist,
3012 0, &system_key_syms, (unsigned)-1); 3011 0, &current_kboard->system_key_syms,
3012 (unsigned)-1);
3013 } 3013 }
3014 3014
3015 return modify_event_symbol (event->code - 0xff00, 3015 return modify_event_symbol (event->code - 0xff00,
@@ -6624,6 +6624,7 @@ init_kboard (kb)
6624 kb->Vlast_kbd_macro = Qnil; 6624 kb->Vlast_kbd_macro = Qnil;
6625 kb->reference_count = 0; 6625 kb->reference_count = 0;
6626 kb->Vsystem_key_alist = Qnil; 6626 kb->Vsystem_key_alist = Qnil;
6627 kb->system_key_syms = Qnil;
6627 kb->Vdefault_minibuffer_frame = Qnil; 6628 kb->Vdefault_minibuffer_frame = Qnil;
6628} 6629}
6629 6630
@@ -6871,9 +6872,6 @@ syms_of_keyboard ()
6871 func_key_syms = Qnil; 6872 func_key_syms = Qnil;
6872 staticpro (&func_key_syms); 6873 staticpro (&func_key_syms);
6873 6874
6874 system_key_syms = Qnil;
6875 staticpro (&system_key_syms);
6876
6877 mouse_syms = Qnil; 6875 mouse_syms = Qnil;
6878 staticpro (&mouse_syms); 6876 staticpro (&mouse_syms);
6879 6877