From: Uwe Brauer <oub@mat.ucm.es>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-devel@gnu.org
Subject: Re: hg-histedit, how to pass shell involvement, to the lisp code?
Date: Thu, 10 Oct 2024 10:02:23 +0200 [thread overview]
Message-ID: <87a5fc5qsw.fsf@mat.ucm.es> (raw)
In-Reply-To: 86ed4o32b9.fsf@gnu.org
[-- Attachment #1: Type: text/plain, Size: 996 bytes --]
> 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.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5684 bytes --]
prev parent reply other threads:[~2024-10-10 8:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 19:36 hg-histedit, how to pass shell involvement, to the lisp code? Uwe Brauer via Emacs development discussions.
2024-10-10 6:22 ` Eli Zaretskii
2024-10-10 8:02 ` Uwe Brauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a5fc5qsw.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.