diff options
| author | Eli Zaretskii | 2009-01-17 15:35:55 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-01-17 15:35:55 +0000 |
| commit | 200811d63a98220af25d4c2ddfa50e3f81edfd29 (patch) | |
| tree | f272b54b2a4300e7c971f7ee35f794d6b72b33db /doc | |
| parent | 635618a409f363ccec6b42a3ad59fcb46154863f (diff) | |
| download | emacs-200811d63a98220af25d4c2ddfa50e3f81edfd29.tar.gz emacs-200811d63a98220af25d4c2ddfa50e3f81edfd29.zip | |
(System Environment): Document `environment' and `initial-environment'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/os.texi | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 8f1a5706cdb..e0ffbd16c2e 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -716,8 +716,9 @@ MS-Windows. | |||
| 716 | AT&T System V. | 716 | AT&T System V. |
| 717 | 717 | ||
| 718 | @item windows-nt | 718 | @item windows-nt |
| 719 | Microsoft windows NT. The same executable supports Windows 9X, but the | 719 | Microsoft Windows NT and later. The same executable supports Windows |
| 720 | value of @code{system-type} is @code{windows-nt} in either case. | 720 | 9X, but the value of @code{system-type} is @code{windows-nt} in either |
| 721 | case. | ||
| 721 | 722 | ||
| 722 | @end table | 723 | @end table |
| 723 | 724 | ||
| @@ -822,6 +823,22 @@ specify the same environment variable, the first of these elements | |||
| 822 | specifies the variable, and the other ``duplicates'' are ignored. | 823 | specifies the variable, and the other ``duplicates'' are ignored. |
| 823 | @end defvar | 824 | @end defvar |
| 824 | 825 | ||
| 826 | @defun environment &optional frame | ||
| 827 | This is a convenience function that returns the value of | ||
| 828 | @code{process-environment} after removing unset and duplicate | ||
| 829 | variables from it. The optional argument @var{frame}, which should be | ||
| 830 | a frame, means return the list of environment variables in effect for | ||
| 831 | that frame. The value this function returns is a copy, so changing it | ||
| 832 | will have no effect on the environment variables passed to | ||
| 833 | subprocesses. | ||
| 834 | @end defun | ||
| 835 | |||
| 836 | @defvar initial-environment | ||
| 837 | This variable holds the list of environment variables Emacs inherited | ||
| 838 | from its parent process. It is computed during startup, see | ||
| 839 | @ref{Startup Summary}. | ||
| 840 | @end defvar | ||
| 841 | |||
| 825 | @defvar path-separator | 842 | @defvar path-separator |
| 826 | This variable holds a string which says which character separates | 843 | This variable holds a string which says which character separates |
| 827 | directories in a search path (as found in an environment variable). Its | 844 | directories in a search path (as found in an environment variable). Its |