> You are asking how to inject an environment variable into the > environment of a program that Emacs will run? The way to do it is to > bind process-environment around the call to call-process or similar, > and add TMP=whatever to the value of process-environment inside the > let form. Example from comint.el: > (let ((process-environment > (nconc > (comint-term-environment) > (list (format "INSIDE_EMACS=%s,comint" emacs-version)) > (when comint-pager > (if (stringp comint-pager) > (list (format "PAGER=%s" comint-pager)) > (error "comint-pager should be a string: %s" comint-pager))) > process-environment)) Thanks I will try this out later! -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.