aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-01-17 15:35:55 +0000
committerEli Zaretskii2009-01-17 15:35:55 +0000
commit200811d63a98220af25d4c2ddfa50e3f81edfd29 (patch)
treef272b54b2a4300e7c971f7ee35f794d6b72b33db
parent635618a409f363ccec6b42a3ad59fcb46154863f (diff)
downloademacs-200811d63a98220af25d4c2ddfa50e3f81edfd29.tar.gz
emacs-200811d63a98220af25d4c2ddfa50e3f81edfd29.zip
(System Environment): Document `environment' and `initial-environment'.
-rw-r--r--doc/lispref/os.texi21
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.
716AT&T System V. 716AT&T System V.
717 717
718@item windows-nt 718@item windows-nt
719Microsoft windows NT. The same executable supports Windows 9X, but the 719Microsoft Windows NT and later. The same executable supports Windows
720value of @code{system-type} is @code{windows-nt} in either case. 7209X, but the value of @code{system-type} is @code{windows-nt} in either
721case.
721 722
722@end table 723@end table
723 724
@@ -822,6 +823,22 @@ specify the same environment variable, the first of these elements
822specifies the variable, and the other ``duplicates'' are ignored. 823specifies the variable, and the other ``duplicates'' are ignored.
823@end defvar 824@end defvar
824 825
826@defun environment &optional frame
827This is a convenience function that returns the value of
828@code{process-environment} after removing unset and duplicate
829variables from it. The optional argument @var{frame}, which should be
830a frame, means return the list of environment variables in effect for
831that frame. The value this function returns is a copy, so changing it
832will have no effect on the environment variables passed to
833subprocesses.
834@end defun
835
836@defvar initial-environment
837This variable holds the list of environment variables Emacs inherited
838from 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
826This variable holds a string which says which character separates 843This variable holds a string which says which character separates
827directories in a search path (as found in an environment variable). Its 844directories in a search path (as found in an environment variable). Its