aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2005-12-29 04:57:14 +0000
committerKaroly Lorentey2005-12-29 04:57:14 +0000
commit17ccbd91f620a84e7524b99b74077b4ddb736283 (patch)
treec74a9173a86d8dfb3f227deca1c9fcdc1d867b5d /src
parent01999e9d53e4e8d12314b16ce7d0e3d7785bfbe3 (diff)
downloademacs-17ccbd91f620a84e7524b99b74077b4ddb736283.tar.gz
emacs-17ccbd91f620a84e7524b99b74077b4ddb736283.zip
Update environment-related doc strings.
* 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
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 715178f8fb2..3f7ce3ad5a5 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1600,9 +1600,9 @@ that frame has its own set of environment variables, this function
1600will look up VARIABLE in there. 1600will look up VARIABLE in there.
1601 1601
1602Otherwise, this function searches `process-environment' for VARIABLE. 1602Otherwise, this function searches `process-environment' for VARIABLE.
1603If it was not found there, then it continues the search in either 1603If it is not found there, then it continues the search in either
1604`global-environment' or the local environment list of the current 1604`global-environment' or the environment list of the selected frame,
1605frame, depending on the value of `local-environment-variables'. */) 1605depending on the value of `local-environment-variables'. */)
1606 (variable, frame) 1606 (variable, frame)
1607 Lisp_Object variable, frame; 1607 Lisp_Object variable, frame;
1608{ 1608{
@@ -1843,8 +1843,9 @@ Emacs starts.
1843 1843
1844Some frames may have their own local list of environment variables in 1844Some frames may have their own local list of environment variables in
1845their 'environment parameter, which may override this global list; see 1845their 'environment parameter, which may override this global list; see
1846`local-environment-variables'. See `process-environment' for a way to 1846`local-environment-variables' and `frame-with-environment'. See
1847modify an environment variable on all frames. 1847`process-environment' for a way to modify an environment variable on
1848all frames.
1848 1849
1849If multiple entries define the same variable, the first one always 1850If multiple entries define the same variable, the first one always
1850takes precedence. 1851takes precedence.
@@ -1858,12 +1859,12 @@ See `setenv' and `getenv'. */);
1858Each element should be a string of the form ENVVARNAME=VALUE. 1859Each element should be a string of the form ENVVARNAME=VALUE.
1859 1860
1860Entries in this list take precedence to those in `global-environment' 1861Entries in this list take precedence to those in `global-environment'
1861or the frame-local environment. (See `local-environment-variables'.) 1862or the frame-local environments. (See `local-environment-variables'
1862Therefore, let-binding `process-environment' is an easy way to 1863and `frame-with-environment'.) Therefore, let-binding
1863temporarily change the value of an environment variable, irrespective 1864`process-environment' is an easy way to temporarily change the value
1864of where it comes from. To use `process-environment' to remove an 1865of an environment variable, irrespective of where it comes from. To
1865environment variable, include only its name in the list, without 1866use `process-environment' to remove an environment variable, include
1866"=VALUE". 1867only its name in the list, without "=VALUE".
1867 1868
1868This variable is set to nil when Emacs starts. 1869This variable is set to nil when Emacs starts.
1869 1870
@@ -1894,7 +1895,10 @@ frame-local environment.
1894 1895
1895Otherwise, `local-environment-variables' should be a list of variable 1896Otherwise, `local-environment-variables' should be a list of variable
1896names (represented by Lisp strings) to look up in the frame's 1897names (represented by Lisp strings) to look up in the frame's
1897environment. The rest will come from `global-environment'. */); 1898environment. The rest will come from `global-environment'.
1899
1900The frame-local environment is stored in the 'environment frame
1901parameter. See `frame-with-environment'. */);
1898 Vlocal_environment_variables = Qnil; 1902 Vlocal_environment_variables = Qnil;
1899} 1903}
1900 1904