Function: tramp-local-environment-variable-p

tramp-local-environment-variable-p is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-local-environment-variable-p ARG)

Documentation

Return non-nil if ARG exists in default process-environment.

Tramp does not propagate local environment variables in remote processes.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;; This function is used by `tramp-*-handle-make-process' and
;; `tramp-sh-handle-process-file' to filter local environment variables
;; that should not be propagated remotely.  Users can override this
;; function if necessary, for example, to ensure that a specific
;; environment variable is applied to remote processes, whether it
;; exists locally or not.
(defun tramp-local-environment-variable-p (arg)
  "Return non-nil if ARG exists in default `process-environment'.
Tramp does not propagate local environment variables in remote
processes."
  (member arg (default-toplevel-value 'process-environment)))