1. 03 Jul, 2007 1 commit
    • Dan Nicolaescu's avatar
      * server.el (server-process-filter): Likewise. · de87fb59
      Dan Nicolaescu authored
      (server-process-filter): Likewise. Also set COLORFGBG and
      COLORTERM.
      
      * frame.el (frame-initialize, make-frame): Likewise.
      
      * faces.el (tty-set-up-initial-frame-faces): Likewise.
      
      * env.el (read-envvar-name): Don't consider the environment frame
      param.
      (setenv): Set display-environment-variable and
      term-environment-variable.
      
      * frame.c (Qterm_environment_variable,
      Qdisplay_environment_variable): New variables.
      (syms_of_frame): Intern and staticpro them.
      
      * frame.h: Declare them here.
      
      * callproc.c (child_setup): Use the display-environment-variable
      and term-environment-variable frame params.
      (getenv_internal): Likewise.
      (set_initial_environment): Initialise Vprocess_environment.
      
      * frames.texi (Basic Parameters): Add display-environment-variable
      and term-environment-variable.
      de87fb59
  2. 17 Feb, 2007 1 commit
  3. 21 Jan, 2007 1 commit
  4. 09 Jan, 2007 1 commit
  5. 22 Dec, 2006 2 commits
  6. 13 Jun, 2006 1 commit
  7. 26 May, 2006 1 commit
    • Karoly Lorentey's avatar
      Rework environment variable support. (Reported by Kalle Olavi Niemitalo and Noah Friedman.) · a13f8f50
      Karoly Lorentey authored
      * src/callproc.c (Vglobal_environment, Vlocal_environment_variables): Remove.
        (getenv_internal, child_setup): Don't look at global-environment or
        local-environment-variables.
        (Fgetenv_internal): Update docs.
        (set_initial_environment): Rename from set_global_environment.  Store
        Emacs environment in initial frame parameter.
        (syms_of_callproc): Remove obsolete defvars.  Update docs.
      
      * lisp/env.el (read-envvar-name): Remove reference to global-environment.
        (setenv-internal): New function.
        (setenv): Use it.  Always set process-environment.  Update docs.
        (getenv): Update docs.
        (environment): Rewrite for the new environment design.  Update docs.
      
      * lisp/frame.el (frame-initialize): Copy the environment from the initial frame.
      
      * src/emacs.c (main): Call set_initial_environment, not set_global_environment.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-569
      a13f8f50
  8. 18 May, 2006 1 commit
  9. 08 May, 2006 1 commit
  10. 06 Feb, 2006 1 commit
  11. 30 Jan, 2006 1 commit
  12. 26 Jan, 2006 1 commit
  13. 03 Jan, 2006 1 commit
  14. 01 Jan, 2006 1 commit
  15. 29 Dec, 2005 5 commits
    • Karoly Lorentey's avatar
      Set `local-environment-variables' to t by default. · c5166388
      Karoly Lorentey authored
      * src/callproc.c (syms_of_callproc): Initialize
        `Vlocal-environment-variables' to `Qt'.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-472
      c5166388
    • Karoly Lorentey's avatar
      Update environment-related doc strings. · 17ccbd91
      Karoly Lorentey authored
      * lisp/env.el (setenv, getenv): Update doc strings.
      
      * src/callproc.c (Fgetenv_internal, syms_of_callproc): Update doc strings.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-470
      17ccbd91
    • Karoly Lorentey's avatar
      Store local environment in frame (not terminal) parameters. · da8e8fc1
      Karoly Lorentey authored
      * src/callproc.c (child_setup, getenv_internal, Fgetenv_internal):
        Store the local environment in a frame (not terminal) parameter.
        Update doc strings.
        (syms_of_callproc): Update doc strings.
        (Qenvironment): Moved to frame.c. 
      
      * lisp/env.el (read-envvar-name, setenv, getenv, environment): Use frame
        parameters to store the local environment, not terminal parameters.
      
      * server.el (server-process-filter): Store the local environment in a
        frame (not terminal) parameter.  Do not try to decode environment
        strings.
      
      * lisp/frame.el (make-frame): Set up the 'environment frame parameter,
        when needed.
      
      * src/frame.c (Qenvironment): Move here from callproc.c.
        (Fdelete_frame): Don't allow other frames to refer to a deleted frame
        in their 'environment parameter.
        (Fframe_with_environment): New function.
        (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
      
      * frame.h (Qenvironment): Declare.
      * lisp.h (Fframe_with_environment): EXFUN it.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-467
      da8e8fc1
    • Karoly Lorentey's avatar
      Initialize Vprocess_environment to nil. · 86f5ca04
      Karoly Lorentey authored
      * src/callproc.c (syms_of_callproc): Initialize Vprocess_environment to nil.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-466
      86f5ca04
    • Karoly Lorentey's avatar
      Fix semantics of let-binding `process-environment'. · 5990851d
      Karoly Lorentey authored
      * lisp/env.el: Require cl for byte compilation. (For `block' and `return'.)
        (read-envvar-name): Update for rename.  Include `process-environment'
        as well.
        (setenv): Update for rename also handle `process-environment'.  Update doc.
        (getenv): Update doc.
        (environment): New function.
        (let-environment): New macro.
      
      * lisp/font-lock.el (lisp-font-lock-keywords-2): Add `let-environment'.
      
      * src/callproc.c (Vglobal_environment): New variable, taking over the
        previous role of `Vprocess_environment', which is now something else.
        (add_env): New function.
        (child_setup): Use it.
        (child_setup, getenv_internal): Rename Vprocess_environment to
        Vglobal_environment.  Handle the new Vprocess_environment.
        (Fgetenv_internal, egetenv): Update doc.
        (set_process_environment): Rename to `set_global_environment'.  Rename
        Vprocess_environment to Vglobal_environment.
        (syms_of_callproc): Rename process-environment to global-environment,
        add new process-environment, update docs.
      
      * src/emacs.c (main): Call set_global_environment instead of
        set_process_environment.
      
      * fileio.c (Fread_file_name): Update comment.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-465
      5990851d
  16. 26 Dec, 2005 2 commits
    • Karoly Lorentey's avatar
      Fix compilation errors in previous commit. · 30663b47
      Karoly Lorentey authored
      * src/callproc.c (getenv_internal): Fix get_terminal_param call.
      
      * dispextern.h (get_device): Move declaration to termhooks.h.
      * termhooks.h (get_device): Move here.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-462
      30663b47
    • 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
  17. 07 Aug, 2005 1 commit
  18. 04 Jul, 2005 1 commit
  19. 03 Jun, 2005 1 commit
  20. 24 Mar, 2005 1 commit
  21. 02 Nov, 2004 1 commit
  22. 13 Oct, 2004 1 commit
  23. 29 Sep, 2004 1 commit
  24. 17 Jun, 2004 1 commit
  25. 16 Jun, 2004 1 commit
  26. 26 Jan, 2004 1 commit
    • Jan Djärv's avatar
      Define synch_process_termsig. · ca498128
      Jan Djärv authored
      (Fcall_process): Initiate synch_process_termsig to zero and
      check if non-zero and get signal name after subprocess has ended.
      ca498128
  27. 01 Sep, 2003 1 commit
  28. 02 Jun, 2003 1 commit
  29. 18 May, 2003 1 commit
  30. 04 Feb, 2003 1 commit
  31. 24 Aug, 2002 1 commit
  32. 22 Jul, 2002 1 commit
  33. 21 Jul, 2002 1 commit
  34. 19 Jul, 2002 1 commit