Work around nondeterministic binding of terminal-local variables. (Fixes national...
authorKaroly Lorentey <lorentey@elte.hu>
Mon, 27 Jun 2005 02:08:34 +0000 (02:08 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Mon, 27 Jun 2005 02:08:34 +0000 (02:08 +0000)
commit2a42d44084e05d60f28a51609aa7c12fb547fffe
treecdaa000810271e1898e8adfeb9b7760710c9547d
parente589efa546443ad7a61ec3867b46cda884d22de5
Work around nondeterministic binding of terminal-local variables.  (Fixes national character input on ttys.)

* src/data.c (Fterminal_local_value, Fset_terminal_local_value): New functions.
  (syms_of_data): Defsubr them.

* lisp/international/encoded-kb.el (encoded-kbd-setup-keymap): Add keymap
  parameter.  Use it instead of changing key-translation-map directly.
  (encoded-kbd-setup-display): Use terminal-local-value and
  set-terminal-local-value to access key-translation-map.  Remove
  debugging messages.

* lisp/international/mule.el (keyboard-coding-system): Test for
  encoded-kbd-setup-display, not encoded-kbd-mode.

* src/keyboard.c (syms_of_keyboard): Expand docs of terminal-local
  variables to warn about their random bindings.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-365
README.multi-tty
lisp/international/encoded-kb.el
lisp/international/mule.el
src/data.c
src/keyboard.c