]> git.eshelyaron.com Git - emacs.git/commitdiff
(System Environment): Document `environment' and `initial-environment'.
authorEli Zaretskii <eliz@gnu.org>
Sat, 17 Jan 2009 15:35:55 +0000 (15:35 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 17 Jan 2009 15:35:55 +0000 (15:35 +0000)
doc/lispref/os.texi

index 8f1a5706cdb0376717ab187dd3c003673289ab92..e0ffbd16c2ecde638bd826fa9e21c301b4c54e73 100644 (file)
@@ -716,8 +716,9 @@ MS-Windows.
 AT&T System V.
 
 @item windows-nt
-Microsoft windows NT.  The same executable supports Windows 9X, but the
-value of @code{system-type} is @code{windows-nt} in either case.
+Microsoft Windows NT and later.  The same executable supports Windows
+9X, but the value of @code{system-type} is @code{windows-nt} in either
+case.
 
 @end table
 
@@ -822,6 +823,22 @@ specify the same environment variable, the first of these elements
 specifies the variable, and the other ``duplicates'' are ignored.
 @end defvar
 
+@defun environment &optional frame
+This is a convenience function that returns the value of
+@code{process-environment} after removing unset and duplicate
+variables from it.  The optional argument @var{frame}, which should be
+a frame, means return the list of environment variables in effect for
+that frame.  The value this function returns is a copy, so changing it
+will have no effect on the environment variables passed to
+subprocesses.
+@end defun
+
+@defvar initial-environment
+This variable holds the list of environment variables Emacs inherited
+from its parent process.  It is computed during startup, see
+@ref{Startup Summary}.
+@end defvar
+
 @defvar path-separator
 This variable holds a string which says which character separates
 directories in a search path (as found in an environment variable).  Its