1. 20 May, 2006 1 commit
    • Karoly Lorentey's avatar
      Fix and/or simplify terminal initialization files. · 8cbd7bed
      Karoly Lorentey authored
      * lisp/faces.el (tty-create-frame-with-faces): Set up faces and
        background mode only after the terminal has been initialized.
        (frame-set-background-mode): Handle the 'background-mode terminal
        parameter.
        (tty-run-terminal-initialization): Add type option.
      
      * lisp/term/README: Update.
      * lisp/term/rxvt.el: Simplify.
      * lisp/term/xterm.el: Simplify and fix.
      * lisp/term/*.el: Simplify and fix.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-564
      8cbd7bed
  2. 12 May, 2006 1 commit
  3. 08 May, 2006 1 commit
  4. 06 Feb, 2006 1 commit
  5. 26 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Implement automatic terminal-local environment variables via `local-environment-variables'. · f105f403
      Karoly Lorentey authored
      * lisp/env.el (setenv, getenv): Add optional terminal parameter.  Update docs.
        (setenv): Handle `local-environment-variables'.
        (read-envvar-name): Also allow (and complete) local
        environment variables on the current terminal.
      
      * src/callproc.c: Include frame.h and termhooks.h, for terminal parameters.
        (Qenvironment): New constant.
        (Vlocal_environment_variables): New variable.
        (syms_of_callproc): Register and initialize them.
        (child_setup): Handle Vlocal_environment_variables.
        (getenv_internal): Add terminal parameter.  Handle
        Vlocal_environment_variables.
        (Fgetenv_internal): Add terminal parameter.
      
      * src/termhooks.h (get_terminal_param): Declare.
      
      * src/Makefile.in (callproc.o): Update dependencies.
      * mac/makefile.MPW (callproc.c.x): Update dependencies.
      
      * lisp/termdev.el (terminal-id): Make parameter optional.
        (terminal-getenv, terminal-setenv, with-terminal-environment): 
        Disable functions.
      
      * lisp/mule-cmds.el (set-locale-environment): Convert `terminal-getenv' calls
        to `getenv'.
      * lisp/rxvt.el (rxvt-set-background-mode): Ditto.
      * lisp/x-win.el (x-initialize-window-system): Ditto.
      * lisp/xterm.el (terminal-init-xterm): Ditto.
      
      * lisp/server.el (server-process-filter): Fix reference to the 'display frame
        parameter.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-461
      f105f403
  6. 19 Nov, 2005 1 commit
    • Karoly Lorentey's avatar
      Store client's environment in terminal parameters, not server parameters. · 59e085e0
      Karoly Lorentey authored
      * lisp/loadup.el: Don't load server.
      * lisp/ldefs-boot.el: Update.
      
      * lib-src/emacsclient.c (main): Send environment only when a new display
        is created.
      
      * lisp/server.el (server-save-buffers-kill-display): Add autoload
        cookie.  Move stuff not specific to server into `save-buffers-kill-display'.
      * lisp/files.el (save-buffers-kill-display): New function.
        (ctl-x-map): Bind it to C-x C-c.
      
      * lisp/frame.el (terminal-getenv): New function.
      * lisp/international/mule-cmds.el (set-locale-environment): Use it.
      
      * lisp/frame.el (with-terminal-environment): New macro.
      
      * lisp/server.el (server-getenv, server-with-client-environment): Remove.
        (server-getenv-from, server-with-environment): New functions.
        (server-process-filter): Change syntax of environment
        variables.  Put environment into terminal parameters, not client parameters.
      
      * lisp/term/rxvt.el: Don't require server.
        (rxvt-set-background-mode): Use terminal-getenv, not server-getenv.
      * lisp/term/x-win.el (x-initialize-window-system): Ditto.
      * lisp/term/xterm.el (terminal-init-xterm): Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-443
      59e085e0
  7. 29 Oct, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix semantics of terminal-local variables. Remove `terminal-local-value' hack. · c40bb1ba
      Karoly Lorentey authored
      * src/data.c (do_symval_forwarding, store_symval_forwarding)
        (find_symbol_value): Use the selected frame's keyboard, not
        current_kboard.
      
      * src/data.c (Fterminal_local_value, Fset_terminal_local_value): Disable
        these functions.
      
      * src/data.c (syms_of_data): Don't defsubr them.
      * lisp/edmacro.el (edmacro-format-keys): Remove terminal-local-value calls.
      * lisp/emulation/cua-base.el (cua--pre-command-handler-1): Ditto.
      * lisp/international/encoded-kb.el (encoded-kbd-setup-display): Ditto.
      * lisp/isearch.el (isearch-other-meta-char): Ditto.
      * lisp/obsolete/keyswap.el (the-table): Ditto.
      * lisp/simple.el (normal-erase-is-backspace-mode): Ditto.
      * lisp/subr.el (keyboard-translate, read-quoted-char): Ditto.
      * lisp/term/AT386.el (terminal-init-AT386): Ditto.
      * lisp/term/internal.el: Ditto.
      * lisp/term/iris-ansi.el (terminal-init-iris-ansi): Ditto.
      * lisp/term/lk201.el (terminal-init-lk201): Ditto.
      * lisp/term/mac-win.el: Ditto.
      * lisp/term/news.el (terminal-init-news): Ditto.
      * lisp/term/rxvt.el (terminal-init-rxvt): Ditto.
      * lisp/term/sun.el (terminal-init-sun): Ditto.
      * lisp/term/tvi970.el (terminal-init-tvi970): Ditto.
      * lisp/term/vt200.el (terminal-init-vt200): Ditto.
      * lisp/term/vt201.el (terminal-init-vt201): Ditto.
      * lisp/term/vt220.el (terminal-init-vt220): Ditto.
      * lisp/term/vt240.el (terminal-init-vt240): Ditto.
      * lisp/term/vt300.el (terminal-init-vt300): Ditto.
      * lisp/term/vt320.el (terminal-init-vt320): Ditto.
      * lisp/term/vt400.el (terminal-init-vt400): Ditto.
      * lisp/term/vt420.el (terminal-init-vt420): Ditto.
      * lisp/term/wyse50.el (terminal-init-wyse50): Ditto.
      * lisp/term/x-win.el (x-setup-function-keys): Ditto.
      * lisp/term/xterm.el (terminal-init-xterm): Ditto.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-434
      c40bb1ba
  8. 21 Sep, 2005 1 commit
  9. 07 Sep, 2005 1 commit
  10. 04 Sep, 2005 1 commit
  11. 02 Sep, 2005 1 commit
    • Dan Nicolaescu's avatar
      * term/xterm.el (terminal-init-xterm): Add eval-when-compile to · f47877ee
      Dan Nicolaescu authored
      fix compilation warning. Reorder the key definitions to group
      together keys emitted by the current version of xterm.
      
      * progmodes/vhdl-mode.el (vhdl-highlight-faces)
      (vhdl-speedbar-entity-face, vhdl-speedbar-entity-selected-face):
      Reorder predicates to correct min-color usage.
      f47877ee
  12. 01 Aug, 2005 1 commit
  13. 27 Jul, 2005 1 commit
    • Dan Nicolaescu's avatar
      * term/apollo.el (terminal-init-apollo): New function containing · 4f0c9ba7
      Dan Nicolaescu authored
      all former top level forms in the file.
      * term/bobcat.el (terminal-init-bobcat):
      * term/cygwin.el (terminal-init-cygwin):
      * term/iris-ansi.el (terminal-init-iris-ansi):
      * term/linux.el (terminal-init-linux):
      * term/news.el (terminal-init-news):
      * term/rxvt.el (terminal-init-rxvt):
      * term/sun.el (terminal-init-sun):
      * term/tvi970.el (terminal-init-tvi970):
      * term/vt100.el (terminal-init-vt100):
      * term/vt102.el (terminal-init-vt102):
      * term/vt125.el (terminal-init-vt125):
      * term/vt200.el (terminal-init-vt200):
      * term/vt201.el (terminal-init-vt201):
      * term/vt220.el (terminal-init-vt220):
      * term/vt240.el (terminal-init-vt240):
      * term/vt300.el (terminal-init-vt300):
      * term/vt320.el (terminal-init-vt320):
      * term/vt400.el (terminal-init-vt400):
      * term/vt420.el (terminal-init-vt420):
      * term/wyse50.el (terminal-init-wyse50):
      * term/xterm.el (terminal-init-xterm): Likewise.
      
      * term/README: Describe the terminal-init-* functionality.
      
      * startup.el (command-line): After loading the terminal
      initialization file call the corresponding terminal initialization
      function.
      4f0c9ba7
  14. 22 Jul, 2005 1 commit
  15. 12 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename function-key-map to local-function-key-map, and global-function-key-map... · ac09dc1e
      Karoly Lorentey authored
      Rename function-key-map to local-function-key-map, and global-function-key-map to function-key-map.  Same for key-translation-map.
      
      * src/keyboard.h (struct kboard): Rename member 'Vfunction_key_map' to
        'Vlocal_function_key_map', and 'Vkey_translation_map' to
        'Vlocal_key_translation_map'.
        (Vfunction_key_map, Vkey_translation_map): New declarations.
      
      * src/keyboard.c (Vfunction_key_map): New variable.
        (Vglobal_key_translation_map): Rename to Vglobal_key_translation_map.
        (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): Update.
      * src/keymap.c (Fdescribe_buffer_bindings): Update.
      * src/term.c (term_get_fkeys_1): Update.
      
      * lisp/double.el (double-setup): Replace global-key-translation-map with key-translation-map.
      * lisp/international/encoded-kb.el (encoded-kbd-setup-display): Ditto.
      * lisp/international/iso-transl.el: Ditto.
      * lisp/obsolete/iso-acc.el (iso-accents-customize): Ditto.
      
      * lisp/edmacro.el (edmacro-format-keys): Use terminal-local binding of
        local-function-key-map instead of function-key-map.
      * lisp/emulation/cua-base.el (cua--pre-command-handler): Ditto.
      * lisp/isearch.el (isearch-other-meta-char): Ditto.
      * lisp/subr.el (read-quoted-char): Ditto.
      * lisp/term/vt200.el: Ditto.
      * lisp/term/vt201.el: Ditto.
      * lisp/term/vt220.el: Ditto.
      * lisp/term/vt240.el: Ditto.
      * lisp/term/vt300.el: Ditto.
      * lisp/term/vt320.el: Ditto.
      * lisp/term/vt400.el: Ditto.
      * lisp/term/vt420.el: Ditto.
      
      * lisp/simple.el (normal-erase-is-backspace-mode): Add todo note.
      * lisp/xt-mouse.el: Ditto.
      
      * lisp/term/AT386.el: Adapt for renaming of function-key-map to local-function-key-map.
      * lisp/term/internal.el: Ditto.
      * lisp/term/iris-ansi.el: Ditto.
      * lisp/term/lk201.el: Ditto.
      * lisp/term/mac-win.el: Ditto.
      * lisp/term/news.el: Ditto.
      * lisp/term/rxvt.el: Ditto.
      * lisp/term/sun.el: Ditto.
      * lisp/term/tvi970.el: Ditto.
      * lisp/term/wyse50.el: Ditto.
      * lisp/term/x-win.el (x-setup-function-keys): Ditto.
      * lisp/term/xterm.el: Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-386
      ac09dc1e
  16. 04 Jul, 2005 1 commit
  17. 30 Jun, 2005 1 commit
  18. 29 Jun, 2005 1 commit
  19. 28 Jun, 2005 1 commit
  20. 27 Jun, 2005 2 commits
    • Karoly Lorentey's avatar
      Speed up loading of term/xterm.el. · 440607d3
      Karoly Lorentey authored
      * lisp/term/xterm.el: Don't do the key substitutions unless f13-f60 are
        really defined.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-367
      440607d3
    • Karoly Lorentey's avatar
      Use terminal-local-value to access function-key-map in terminal packages. · ff2fc632
      Karoly Lorentey authored
      * lisp/term/AT386.el: Wrap function-key-map accesses in (set-)terminal-local-value.
      * lisp/term/internal.el: Ditto.
      * lisp/term/iris-ansi.el: Ditto.
      * lisp/term/lk201.el: Ditto.
      * lisp/term/mac-win.el: Ditto.
      * lisp/term/news.el: Ditto.
      * lisp/term/rxvt.el: Ditto.
      * lisp/term/sun.el: Ditto.
      * lisp/term/tvi970.el: Ditto.
      * lisp/term/wyse50.el: Ditto.
      * lisp/term/x-win.el: Ditto.
      * lisp/term/xterm.el: Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-366
      ff2fc632
  21. 26 Jun, 2005 1 commit
    • Karoly Lorentey's avatar
      Update Lisp code for a terminal-local `function-key-map'. · 2bb819d5
      Karoly Lorentey authored
      * lisp/term/x-win.el (x-setup-function-keys): New function.  Move
        function-key-map tweaks here.
      
      * lisp/faces.el (x-create-frame-with-faces): Call x-setup-function-keys.
      
      * lisp/term/iris-ansi.el: Update for terminal-local function-key-map.
      * lisp/term/lk201.el: Ditto.
      * lisp/term/news.el: Ditto.
      * lisp/term/rxvt.el: Ditto.
      * lisp/term/sun.el: Ditto.
      * lisp/term/xterm.el: Ditto.
      
      * lisp/startup.el: Cosmetic change.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-356
      2bb819d5
  22. 14 May, 2005 1 commit
  23. 12 May, 2005 1 commit
  24. 03 May, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix exponential slowdowns on repeated tty frame creation. · 941d4811
      Karoly Lorentey authored
      * lisp/term/xterm.el: Protect extended function-key-map from being added
        to the real function-key-map each time the file is loaded.
        (xterm-function-map): New variable.
      
      * lisp/term/rxvt.el: Ditto.
        (rxvt-function-map): New variable.
      
      * lisp/term/lk201.el: Add note on buggy globalness of define-key.
      * lisp/term/iris-ansi.el: Ditto.
      * lisp/term/news.el: Ditto.
      * lisp/term/sun.el: Ditto.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-337
      941d4811
  25. 01 May, 2005 1 commit
  26. 26 Apr, 2005 1 commit
  27. 13 Apr, 2005 1 commit
  28. 09 Apr, 2005 1 commit
  29. 06 Apr, 2005 1 commit
  30. 25 Mar, 2005 1 commit
  31. 24 Mar, 2005 1 commit
  32. 23 Mar, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix some superflous deviations from CVS, plus apply some cosmetics. · dc2be2fa
      Karoly Lorentey authored
      * etc/TODO: Fix deviation from CVS.
      * lisp/emulation/viper-util.el: Ditto.
      * lisp/international/mule-cmds.el: Ditto.
      * lisp/progmodes/gdb-ui.el: Ditto.
      * src/termchar.h: Ditto.
      * src/xfns.c (Fx_create_frame): Ditto.
      
      * lisp/term/rxvt.el: Don't embed `(require 'server)' in eval-when-compile.
      * lisp/term/xterm.el: Ditto.
      
      * src/xterm.c (x_delete_display): Cosmetic change.
      * src/xterm.c (x_create_frame_display): Cosmetic change.
      
      
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-317
      dc2be2fa
  33. 08 Sep, 2004 1 commit
  34. 08 May, 2004 1 commit
    • Karoly Lorentey's avatar
      Fixed environment variable handling during terminal initialization. · 2cd1371d
      Karoly Lorentey authored
      lisp/server.el (server-getenv): New inline function.
      
      lisp/term/rxvt.el (rxvt-set-background-mode): Use server-getenv
      instead of getenv.
      lisp/term/x-win.el (x-initialize-window-system): Ditto.
      lisp/term/xterm.el (xterm-rxvt-set-background-mode): Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-158
      2cd1371d
  35. 09 Jan, 2004 1 commit
    • Karoly Lorentey's avatar
      Hookified termcap devices, added bootstrap display device, plus many bugfixes. · 3224dac1
      Karoly Lorentey authored
      lisp/frame.el (display-color-cells): Pass display parameter to tty-display-color-cells.
      
      lisp/term/xterm.el (xterm-register-default-colors): Pass the selected-frame to display-color-cells.
      
      src/dispextern.h (set_terminal_modes, reset_terminal_modes): Removed declarations.
      (get_named_tty_display): New prototype.
      (tty_clear_end_of_line, term_init): Updated to new prototype.
      (initial_term_init): Renamed to init_initial_display.
      
      src/dispnew.c (Fredraw_frame): ifdef-out DOS-specific code.  Add display parameter to set_terminal_modes call.
      (update_frame): Don't flush the tty of there is no tty.
      (init_display): Set up a termcap display on the controlling tty and
      change the initial frame to use that.  Delete the initial display.
      
      src/frame.c (Fframep): Return t for the initial frame.
      (make_initial_frame): New function for creating the initial frame during bootstrap.  Use init_initial_display, not initial_term_init.
      (make_terminal_frame): Removed special cases for creating the initial frame.
      
      src/frame.h (enum output_method): New entry: output_initial for the bootstrap display.
      (FRAME_INITIAL_P): New macro.
      (make_initial_frame): New prototype.
      
      src/keyboard.c (interrupt_signal): Exit Emacs on SIGINT from the (frameless) controlling tty, if possible.  Explain this in a comment.
      (init_keyboard): Added comment about exiting on SIGINT.
      (Fset_input_mode): A termcap frame is never the initial frame anymore.
      
      src/sysdep.c (init_sys_modes): Update tty_set_terminal_modes call to the new prototype.
      (reset_sys_modes): Comment out tty_clear_end_of_line call; it doesn't work anymore.  Update tty_reset_terminal_modes call.
      
      src/termchar.h (struct tty_display_info): Added pointer to the display structure, for reset_sys_modes.
      
      src/termhooks.h (struct display): Added display parameter to set_terminal_modes_hook and reset_terminal_modes_hook.
      
      src/term.c (initial_display): New variable.
      (tty_ring_bell, tty_update_end, tty_set_terminal_window, tty_cursor_to)
      (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame, tty_clear_end_of_line)
      (tty_write_glyphs, tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines): New functions.
      (ring_bell, update_end, set_terminal_window, cursor_to, raw_cursor_to)
      (clear_to_end, clear_frame, clear_end_of_line, write_glyphs, insert_glyphs)
      (delete_glyphs, ins_del_lines): Removed special casing of termcap displays.
      (get_tty_display): New function.
      (Ftty_display_color_p, Ftty_display_color_cells): Use it.
      (get_named_tty_display): Removed static.
      (tty_set_terminal_modes, tty_reset_terminal_modes): Changed to use a display parameter
      instead of tty_display_info for hook compatibility.
      (set_terminal_modes, reset_terminal_modes): Removed.
      (initial_term_init): Renamed to init_initial_display.  Set up an
      output_initial device, not a termcap display.
      (delete_initial_display): New function.
      (maybe_fatal): New function, for private use of term_init.
      (term_init): New parameter for choosing between fatal and simple errors.
      Removed incomprehensible special casing for the second initialization of the
      controlling tty.  Use maybe_fatal for error handling.
      Initialize termcap display hooks in the new device.
      Initialize the display pointer in the tty_display_info structure.
      (delete_tty): Replace order of reset_sys_modes and delete_display.
      
      src/window.c (init_window_once): Call make_initial_frame instead of make_terminal_frame.
      
      src/xfaces.c (realize_default_face, realize_face): Don't abort on the bootstrap display device.
      
      src/xterm.c (XTset_terminal_modes, XTreset_terminal_modes): Added display parameter.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-48
      3224dac1
  36. 01 Sep, 2003 1 commit
  37. 27 Jun, 2002 1 commit
  38. 25 Jan, 2002 1 commit
    • Eli Zaretskii's avatar
      (xterm-standard-colors): New variable. · 63e9afde
      Eli Zaretskii authored
      (xterm-rgb-convert-to-16bit, xterm-register-default-colors)
      (xterm-rxvt-set-background-mode): New functions.
      (toplevel): Call xterm-register-default-colors,
      xterm-rxvt-set-background-mode, and tty-set-up-initial-frame-faces.
      Add support for more keys from xterm's terminfo entry.
      63e9afde
  39. 04 Nov, 2001 1 commit