Variable: process-environment

process-environment is a variable defined in callproc.c.

Value

("TEXINPUTS=.:/root/.emacs.d/elpa/auctex-14.1.2/latex:" "LC_ALL"
 "HOSTNAME=30e4eb2368b4" "HOME=/root"
 "ELISP_DOC_OUTPUT_DIR=/workspace/output/"
 "NO_PROXY=localhost,cn,baidu.com,gitee.com"
 "HTTPS_PROXY=http://127.0.0.1:28127"
 "HTTP_PROXY=http://127.0.0.1:28127"
 "http_proxy=http://127.0.0.1:28127"
 "ELISP_DOC_CACHE_DIR=/workspace/cache/"
 "no_proxy=localhost,cn,baidu.com,gitee.com"
 "https_proxy=http://127.0.0.1:28127" "container=podman"
 "PATH=/nix/store/emacs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 "EMACSSRC=/workspace/src/")

Documentation

List of overridden environment variables for subprocesses to inherit.

Each element should be a string of the form ENVVARNAME=VALUE.

Entries in this list take precedence to those in the frame-local environments. Therefore, let-binding process-environment is an easy way to temporarily change the value of an environment variable, irrespective of where it comes from. To use process-environment to remove an environment variable, include only its name in the list, without "=VALUE".

This variable is set to nil when Emacs starts.

If multiple entries define the same variable, the first one always takes precedence.

Non-ASCII characters are encoded according to the initial value of locale-coding-system, i.e. the elements must normally be decoded for use.

See setenv and getenv.

View in manual

Probably introduced at or before Emacs version 18.

Source Code

// Defined in /usr/src/emacs/src/callproc.c
  DEFVAR_LISP ("process-environment", Vprocess_environment,
	       doc: /* List of overridden environment variables for subprocesses to inherit.
Each element should be a string of the form ENVVARNAME=VALUE.

Entries in this list take precedence to those in the frame-local
environments.  Therefore, let-binding `process-environment' is an easy
way to temporarily change the value of an environment variable,
irrespective of where it comes from.  To use `process-environment' to
remove an environment variable, include only its name in the list,
without "=VALUE".

This variable is set to nil when Emacs starts.

If multiple entries define the same variable, the first one always
takes precedence.

Non-ASCII characters are encoded according to the initial value of
`locale-coding-system', i.e. the elements must normally be decoded for
use.

See `setenv' and `getenv'.  */);