Commit 200811d6 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(System Environment): Document `environment' and `initial-environment'.

parent 635618a4
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment