From 200811d63a98220af25d4c2ddfa50e3f81edfd29 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 17 Jan 2009 15:35:55 +0000 Subject: [PATCH] (System Environment): Document `environment' and `initial-environment'. --- doc/lispref/os.texi | 21 +++++++++++++++++++-- 1 file 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. 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 -- 2.39.2