aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-04-24 22:13:00 +0000
committerKarl Heuer1995-04-24 22:13:00 +0000
commit7c97ffdc851b20d1f626443c80a37b4732978b7a (patch)
tree3709b232b3ce757d9e2c723316887e52d716a644 /src
parentbe2f0083ade2278e0202bc010f45a5d3860216cc (diff)
downloademacs-7c97ffdc851b20d1f626443c80a37b4732978b7a.tar.gz
emacs-7c97ffdc851b20d1f626443c80a37b4732978b7a.zip
(Vsystem_key_alist): Delete global variable.
(init_kboard): Initialize Vsystem_key_alist member. (syms_of_keyboard): Change DEFVAR_LISP to DEFVAR_KBOARD. (make_lispy_event): Use the kboard's alist instead of the global.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index de23b958568..dd143e1635d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2699,8 +2699,6 @@ static Lisp_Object system_key_syms;
2699static Lisp_Object func_key_syms; 2699static Lisp_Object func_key_syms;
2700static Lisp_Object mouse_syms; 2700static Lisp_Object mouse_syms;
2701 2701
2702Lisp_Object Vsystem_key_alist;
2703
2704/* This is a list of keysym codes for special "accent" characters. 2702/* This is a list of keysym codes for special "accent" characters.
2705 It parallels lispy_accent_keys. */ 2703 It parallels lispy_accent_keys. */
2706 2704
@@ -2993,7 +2991,8 @@ make_lispy_event (event)
2993 system_key_syms = Fcons (Qnil, Qnil); 2991 system_key_syms = Fcons (Qnil, Qnil);
2994 return modify_event_symbol (event->code & 0xffffff, 2992 return modify_event_symbol (event->code & 0xffffff,
2995 event->modifiers, 2993 event->modifiers,
2996 Qfunction_key, Vsystem_key_alist, 2994 Qfunction_key,
2995 current_kboard->Vsystem_key_alist,
2997 0, &system_key_syms, 0xffffff); 2996 0, &system_key_syms, 0xffffff);
2998 } 2997 }
2999 2998
@@ -6577,6 +6576,7 @@ init_kboard (kb)
6577 kb->defining_kbd_macro = Qnil; 6576 kb->defining_kbd_macro = Qnil;
6578 kb->Vlast_kbd_macro = Qnil; 6577 kb->Vlast_kbd_macro = Qnil;
6579 kb->reference_count = 0; 6578 kb->reference_count = 0;
6579 kb->Vsystem_key_alist = Qnil;
6580} 6580}
6581 6581
6582/* 6582/*
@@ -7073,12 +7073,11 @@ and the minor mode maps regardless of `overriding-local-map'.");
7073 "*Non-nil means generate motion events for mouse motion."); 7073 "*Non-nil means generate motion events for mouse motion.");
7074#endif 7074#endif
7075 7075
7076 DEFVAR_LISP ("system-key-alist", &Vsystem_key_alist, 7076 DEFVAR_KBOARD ("system-key-alist", Vsystem_key_alist,
7077 "Alist of system-specific X windows key symbols.\n\ 7077 "Alist of system-specific X windows key symbols.\n\
7078Each element should have the form (N . SYMBOL) where N is the\n\ 7078Each element should have the form (N . SYMBOL) where N is the\n\
7079numeric keysym code (sans the \"system-specific\" bit 1<<28)\n\ 7079numeric keysym code (sans the \"system-specific\" bit 1<<28)\n\
7080and SYMBOL is its name."); 7080and SYMBOL is its name.");
7081 Vsystem_key_alist = Qnil;
7082 7081
7083 DEFVAR_LISP ("deferred-action-list", &Vdeferred_action_list, 7082 DEFVAR_LISP ("deferred-action-list", &Vdeferred_action_list,
7084 "List of deferred actions to be performed at a later time.\n\ 7083 "List of deferred actions to be performed at a later time.\n\