• Karoly Lorentey's avatar
    Make terminal_coding and keyboard_coding display-local. · b8299c66
    Karoly Lorentey authored
    src/coding.c: Include frame.h and termhooks.h.
    (terminal_coding, keyboard_coding): Remove.
    (Fset_terminal_coding_system_internal, Fterminal_coding_system):
    Use the selected frame's terminal coding system.
    (Fset_safe_terminal_coding_system_internal): Fix typo.
    (Fset_keyboard_coding_system_internal, Fkeyboard_coding_system):
    Use the selected frame's keyboard coding system.
    (init_coding_once): Don't initialize keyboard_coding and terminal_coding.
    
    src/coding.h (terminal_coding, keyboard_coding): Remove.
    
    src/termhooks.h (terminal_coding, keyboard_coding): New members of
    struct display.
    (FRAME_TERMINAL_CODING, FRAME_KEYBOARD_CODING): New macros.
    
    src/termchar.h (kboard): Cosmetic change.
    
    src/term.c (encode_terminal_code): Add coding parameter.
    (tty_write_glyphs): Use the display-local terminal coding system.
    (create_display): Allocate and initialize coding systems.
    (delete_display): Free coding systems.
    
    src/xdisp.c (decode_mode_spec): Use display-local coding systems.
    
    src/Makefile.in: Fix dependencies for termchar.h and termhooks.h.
    
    git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-167
    b8299c66
termhooks.h 22.5 KB