aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorKaroly Lorentey2005-10-28 14:29:24 +0000
committerKaroly Lorentey2005-10-28 14:29:24 +0000
commit2e4782930af512802ac0ee1067d22b5136524dfc (patch)
treed6d1f6be38ffa2b3e7c917246c7a28ce0db58f28 /src/keyboard.h
parent7a81ec10b3821910ca633767b521259a056dbebe (diff)
downloademacs-2e4782930af512802ac0ee1067d22b5136524dfc.tar.gz
emacs-2e4782930af512802ac0ee1067d22b5136524dfc.zip
Change `keyboard-translate-table' to be terminal-local.
* lisp/subr.el (keyboard-translate): Use `terminal-local-value' to access `keyboard-translate-table'. * lisp/obsolete/keyswap.el: Ditto. * src/keyboard.c (Vkeyboard_translate_table): Moved to struct kboard. * src/keyboard.h (Vkeyboard_translate_table): Moved to struct kboard. * src/keyboard.c (read_char): Use current_kboard to access Vkeyboard_translate_table. * src/keymap.c (Fdescribe_buffer_bindings): Ditto. * src/keyboard.c (init_kboard): Initialize Vkeyboard_translate_table. * src/keyboard.c (syms_of_keyboard): Use DEFVAR_KBOARD to define Vkeyboard_translate_table. Update doc strings. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-431
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 690cb9cb177..48801dff216 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -81,6 +81,9 @@ struct kboard
81 other commands. */ 81 other commands. */
82 Lisp_Object Vreal_last_command; 82 Lisp_Object Vreal_last_command;
83 83
84 /* User-supplied table to translate input characters through. */
85 Lisp_Object Vkeyboard_translate_table;
86
84 /* The prefix argument for the next command, in raw form. */ 87 /* The prefix argument for the next command, in raw form. */
85 Lisp_Object Vprefix_arg; 88 Lisp_Object Vprefix_arg;
86 89
@@ -302,8 +305,6 @@ struct input_event;
302extern Lisp_Object parse_modifiers P_ ((Lisp_Object)); 305extern Lisp_Object parse_modifiers P_ ((Lisp_Object));
303extern Lisp_Object reorder_modifiers P_ ((Lisp_Object)); 306extern Lisp_Object reorder_modifiers P_ ((Lisp_Object));
304extern Lisp_Object read_char P_ ((int, int, Lisp_Object *, Lisp_Object, int *)); 307extern Lisp_Object read_char P_ ((int, int, Lisp_Object *, Lisp_Object, int *));
305/* User-supplied string to translate input characters through. */
306extern Lisp_Object Vkeyboard_translate_table;
307 308
308/* Parent keymap of terminal-local function-key-map instances. */ 309/* Parent keymap of terminal-local function-key-map instances. */
309extern Lisp_Object Vfunction_key_map; 310extern Lisp_Object Vfunction_key_map;