Mercurial > emacs
comparison src/callproc.c @ 83430:10f26433fe3f
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 29 Dec 2005 04:57:14 +0000 |
parents | 2afc49c9f0c0 |
children | 33e433ac0b1b |
comparison
equal
deleted
inserted
replaced
83429:ec395f552d45 | 83430:10f26433fe3f |
---|---|
1598 If optional parameter FRAME is non-nil, then it should be a frame. If | 1598 If optional parameter FRAME is non-nil, then it should be a frame. If |
1599 that frame has its own set of environment variables, this function | 1599 that frame has its own set of environment variables, this function |
1600 will look up VARIABLE in there. | 1600 will look up VARIABLE in there. |
1601 | 1601 |
1602 Otherwise, this function searches `process-environment' for VARIABLE. | 1602 Otherwise, this function searches `process-environment' for VARIABLE. |
1603 If it was not found there, then it continues the search in either | 1603 If 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, |
1605 frame, depending on the value of `local-environment-variables'. */) | 1605 depending 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 { |
1609 char *value; | 1609 char *value; |
1610 int valuelen; | 1610 int valuelen; |
1841 The environment which Emacs inherits is placed in this variable when | 1841 The environment which Emacs inherits is placed in this variable when |
1842 Emacs starts. | 1842 Emacs starts. |
1843 | 1843 |
1844 Some frames may have their own local list of environment variables in | 1844 Some frames may have their own local list of environment variables in |
1845 their 'environment parameter, which may override this global list; see | 1845 their '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 |
1847 modify an environment variable on all frames. | 1847 `process-environment' for a way to modify an environment variable on |
1848 all frames. | |
1848 | 1849 |
1849 If multiple entries define the same variable, the first one always | 1850 If multiple entries define the same variable, the first one always |
1850 takes precedence. | 1851 takes precedence. |
1851 | 1852 |
1852 Non-ASCII characters are encoded according to the initial value of | 1853 Non-ASCII characters are encoded according to the initial value of |
1856 DEFVAR_LISP ("process-environment", &Vprocess_environment, | 1857 DEFVAR_LISP ("process-environment", &Vprocess_environment, |
1857 doc: /* List of overridden environment variables for subprocesses to inherit. | 1858 doc: /* List of overridden environment variables for subprocesses to inherit. |
1858 Each element should be a string of the form ENVVARNAME=VALUE. | 1859 Each element should be a string of the form ENVVARNAME=VALUE. |
1859 | 1860 |
1860 Entries in this list take precedence to those in `global-environment' | 1861 Entries in this list take precedence to those in `global-environment' |
1861 or the frame-local environment. (See `local-environment-variables'.) | 1862 or the frame-local environments. (See `local-environment-variables' |
1862 Therefore, let-binding `process-environment' is an easy way to | 1863 and `frame-with-environment'.) Therefore, let-binding |
1863 temporarily change the value of an environment variable, irrespective | 1864 `process-environment' is an easy way to temporarily change the value |
1864 of where it comes from. To use `process-environment' to remove an | 1865 of an environment variable, irrespective of where it comes from. To |
1865 environment variable, include only its name in the list, without | 1866 use `process-environment' to remove an environment variable, include |
1866 "=VALUE". | 1867 only its name in the list, without "=VALUE". |
1867 | 1868 |
1868 This variable is set to nil when Emacs starts. | 1869 This variable is set to nil when Emacs starts. |
1869 | 1870 |
1870 If multiple entries define the same variable, the first one always | 1871 If multiple entries define the same variable, the first one always |
1871 takes precedence. | 1872 takes precedence. |
1892 If set to nil, Emacs uses `global-environment' and ignores the | 1893 If set to nil, Emacs uses `global-environment' and ignores the |
1893 frame-local environment. | 1894 frame-local environment. |
1894 | 1895 |
1895 Otherwise, `local-environment-variables' should be a list of variable | 1896 Otherwise, `local-environment-variables' should be a list of variable |
1896 names (represented by Lisp strings) to look up in the frame's | 1897 names (represented by Lisp strings) to look up in the frame's |
1897 environment. The rest will come from `global-environment'. */); | 1898 environment. The rest will come from `global-environment'. |
1899 | |
1900 The frame-local environment is stored in the 'environment frame | |
1901 parameter. See `frame-with-environment'. */); | |
1898 Vlocal_environment_variables = Qnil; | 1902 Vlocal_environment_variables = Qnil; |
1899 } | 1903 } |
1900 | 1904 |
1901 /* arch-tag: 769b8045-1df7-4d2b-8968-e3fb49017f95 | 1905 /* arch-tag: 769b8045-1df7-4d2b-8968-e3fb49017f95 |
1902 (do not change this comment) */ | 1906 (do not change this comment) */ |