• Karoly Lorentey's avatar
    Change key-translation-map to be terminal-local. · 4ea81208
    Karoly Lorentey authored
    * src/keymap.c (Vkey_translation_map): Remove.
      (syms_of_keymap): Remove DEFVAR for key-translation-map.
      (Fdescribe_buffer_bindings): Update for terminal-local key-translation-map.
      
    
    * src/keyboard.h (kboard): Add Vkey_translation_map field.
      (Vglobal_key_translation_map): Declare.
    
    * src/keyboard.c (Vglobal_key_translation_map): New variable.
      (syms_of_keyboard): DEFVAR it and Vkey_translation_map.
      (mark_kboards): Mark key-translation-map.
      (read_key_sequence): Update for terminal-local key-translation-map.
    
    * src/emacs.c (main): Call syms_of_keymap before syms_of_keyboard.
    
    * lisp/term/mac-win.el (mac-handle-language-change): Use
      global-key-translation-map instead of key-translation-map.
    * lisp/obsolete/iso-acc.el (iso-accents-customize): Ditto.
    * lisp/international/iso-transl.el (iso-transl-ctl-x-8-map): Ditto.
    * lisp/double.el (double-setup): Ditto.
    
    
    git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-359
    4ea81208
iso-transl.el 8.41 KB