1. 16 May, 2007 1 commit
    • Miles Bader's avatar
      Rudimentary fix for environment variable handling. · 36ab8612
      Miles Bader authored
      * lisp/env.el (getenv): Restore David Kastrup's fix.
      (environment): Add optional frame parameter.
      
      * lisp/mule-cmds.el (set-locale-environment): Fix getenv call.
      * lisp/term/rxvt.el (rxvt-set-background-mode): Ditto.
      * lisp/x-win.el (x-initialize-window-system, terminal-init-xterm): Ditto.
      
      * lisp/server.el (server-with-environment): Restore the original environment.
      
      Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-6
      Creator:  Karoly Lorentey <karoly@lorentey.hu>
      36ab8612
  2. 21 Jan, 2007 1 commit
  3. 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
  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. 25 Sep, 2005 1 commit
  9. 24 Sep, 2005 2 commits
  10. 22 Sep, 2005 1 commit
  11. 21 Sep, 2005 1 commit
  12. 19 Sep, 2005 1 commit
  13. 09 Sep, 2005 1 commit
  14. 01 Aug, 2005 1 commit
  15. 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
  16. 22 Jul, 2005 1 commit
  17. 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
  18. 04 Jul, 2005 1 commit
  19. 29 Jun, 2005 1 commit
  20. 27 Jun, 2005 1 commit
    • 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. 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
  24. 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
  25. 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
  26. 01 Sep, 2003 1 commit
  27. 04 Feb, 2003 1 commit
  28. 25 Jan, 2002 2 commits