Mercurial > emacs
comparison src/emacs.c @ 83529:0d9e16eab053
Rework environment variable support. (Reported by Kalle Olavi Niemitalo and Noah Friedman.)
* 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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 26 May 2006 17:37:25 +0000 |
parents | 55e22205ba88 |
children | 46b1096093f5 |
comparison
equal
deleted
inserted
replaced
83528:a43b5a268ea1 | 83529:0d9e16eab053 |
---|---|
1516 #endif | 1516 #endif |
1517 | 1517 |
1518 /* egetenv is a pretty low-level facility, which may get called in | 1518 /* egetenv is a pretty low-level facility, which may get called in |
1519 many circumstances; it seems flimsy to put off initializing it | 1519 many circumstances; it seems flimsy to put off initializing it |
1520 until calling init_callproc. */ | 1520 until calling init_callproc. */ |
1521 set_global_environment (); | 1521 set_initial_environment (); |
1522 /* AIX crashes are reported in system versions 3.2.3 and 3.2.4 | 1522 /* AIX crashes are reported in system versions 3.2.3 and 3.2.4 |
1523 if this is not done. Do it after set_global_environment so that we | 1523 if this is not done. Do it after set_global_environment so that we |
1524 don't pollute Vglobal_environment. */ | 1524 don't pollute Vglobal_environment. */ |
1525 /* Setting LANG here will defeat the startup locale processing... */ | 1525 /* Setting LANG here will defeat the startup locale processing... */ |
1526 #ifdef AIX3_2 | 1526 #ifdef AIX3_2 |