Mercurial > emacs
changeset 101250:6a02f16cdead
(System Environment): Document `environment' and `initial-environment'.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 17 Jan 2009 15:35:55 +0000 |
parents | 8889e525475d |
children | 03e8c210e9a0 |
files | doc/lispref/os.texi |
diffstat | 1 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/lispref/os.texi Sat Jan 17 14:59:47 2009 +0000 +++ b/doc/lispref/os.texi Sat Jan 17 15:35:55 2009 +0000 @@ -716,8 +716,9 @@ 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 @@ 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