[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hg-histedit, how to pass shell involvement, to the lisp code?
From: |
Uwe Brauer |
Subject: |
Re: hg-histedit, how to pass shell involvement, to the lisp code? |
Date: |
Thu, 10 Oct 2024 10:02:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> 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.
smime.p7s
Description: S/MIME cryptographic signature