comparison src/keyboard.c @ 12176:3e14d94320f2

(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.
author Karl Heuer <kwzh@gnu.org>
date Fri, 09 Jun 1995 20:37:54 +0000
parents f31fca0fcdb0
children 7a18efea682a
comparison
equal deleted inserted replaced
12175:4e36e9e99082 12176:3e14d94320f2
2709 get_input_pending (&input_pending); 2709 get_input_pending (&input_pending);
2710 } 2710 }
2711 2711
2712 /* Caches for modify_event_symbol. */ 2712 /* Caches for modify_event_symbol. */
2713 static Lisp_Object accent_key_syms; 2713 static Lisp_Object accent_key_syms;
2714 static Lisp_Object system_key_syms;
2715 static Lisp_Object func_key_syms; 2714 static Lisp_Object func_key_syms;
2716 static Lisp_Object mouse_syms; 2715 static Lisp_Object mouse_syms;
2717 2716
2718 /* This is a list of keysym codes for special "accent" characters. 2717 /* This is a list of keysym codes for special "accent" characters.
2719 It parallels lispy_accent_keys. */ 2718 It parallels lispy_accent_keys. */
3001 /* Handle system-specific keysyms. */ 3000 /* Handle system-specific keysyms. */
3002 if (event->code & (1 << 28)) 3001 if (event->code & (1 << 28))
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,
3016 event->modifiers, 3016 event->modifiers,
3017 Qfunction_key, Qnil, 3017 Qfunction_key, Qnil,
6622 kb->kbd_macro_bufsize = 0; 6622 kb->kbd_macro_bufsize = 0;
6623 kb->defining_kbd_macro = Qnil; 6623 kb->defining_kbd_macro = Qnil;
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
6630 /* 6631 /*
6631 * Destroy the contents of a kboard object, but not the object itself. 6632 * Destroy the contents of a kboard object, but not the object itself.
6869 staticpro (&accent_key_syms); 6870 staticpro (&accent_key_syms);
6870 6871
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
6880 unread_switch_frame = Qnil; 6878 unread_switch_frame = Qnil;
6881 staticpro (&unread_switch_frame); 6879 staticpro (&unread_switch_frame);