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. 14 May, 2007 1 commit
  3. 13 May, 2007 1 commit
  4. 21 Jan, 2007 1 commit
  5. 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
  6. 05 May, 2006 1 commit
  7. 18 Apr, 2006 1 commit
  8. 06 Feb, 2006 1 commit
  9. 29 Dec, 2005 3 commits
    • 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
      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
  10. 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
  11. 06 Aug, 2005 1 commit
  12. 04 Jul, 2005 1 commit
  13. 01 Sep, 2003 1 commit
  14. 28 May, 2003 1 commit
  15. 06 May, 2003 1 commit
  16. 25 Feb, 2003 1 commit
  17. 24 Feb, 2003 1 commit
    • Dave Love's avatar
      (read-envvar-name): Decode names. · 1a90eae6
      Dave Love authored
      (substitute-env-vars): Use eval-when-compile and char class.
      (setenv): Doc fix.  Encode the data (after checking that's
      possible).
      (getenv): Encode the name and decode the result.
      1a90eae6
  18. 04 Feb, 2003 1 commit
  19. 29 Oct, 2001 1 commit
  20. 24 Oct, 2001 1 commit
  21. 05 Oct, 2001 1 commit
  22. 04 Sep, 2001 1 commit
  23. 15 Jul, 2001 1 commit
  24. 15 May, 2000 1 commit
  25. 17 Mar, 1998 1 commit
  26. 14 Jan, 1996 1 commit
  27. 10 Sep, 1995 1 commit
  28. 05 Oct, 1994 1 commit
  29. 02 Oct, 1994 1 commit
    • Richard M. Stallman's avatar
      (setenv-history): New history list. · 99ac138a
      Richard M. Stallman authored
      (setenv): Use setenv-history.
      Place the variable's current value at front of setenv-history
      while reading the new value.
      
      (setenv): Provide history, completion for envvar.
      (read-envvar-name-history): New variable.
      (read-envvar-name): New function.
      99ac138a
  30. 22 Jun, 1994 3 commits
  31. 11 Jun, 1993 1 commit
  32. 28 Mar, 1993 2 commits
  33. 22 Mar, 1993 1 commit
  34. 26 Sep, 1992 2 commits