From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org, dpittman@fb.com
Subject: Environment variables for remote processes (was: bug#18940: 24.4; vc-hg does not disable pager, leading to hangs (at least with tramp))
Date: Mon, 17 Nov 2014 19:48:02 +0100 [thread overview]
Message-ID: <87h9xxvf31.fsf_-_@gmx.de> (raw)
In-Reply-To: <jwv4mtyua90.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Sun, 16 Nov 2014 16:08:47 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Maybe I'm missing something, but what's wrong with let-binding
>> process-environment?
>
> Nothing wrong with it. The problem is that Tramp ignores those
> let-bindings because it fails to propagate this environment to its
> remote sub-processed.
The problem is, that not all settings of process-environment might be
desired on remote hosts. process-environment keeps *local* variables.
Furthermore, some remote settings might be requested which are not in
process-environment by default. A user shall not be responsible for
those settings; that's why there is tramp-remote-process-environment.
But this is also not satisfactory, because there might be even different
settings required for different hosts.
> `tramp-sh-handle-process-file' really needs to compare
> process-environment with (default-toplevel-value 'process-environment)
> to infer the env-vars that have been added via let-binding and then
> propagate those to the remote sub-process.
tramp-sh-handle-process-file does not start a new process, it reuses the
existing one. The propagation to the remote sub-process must ensure,
that those settings are not permanent. Via a subshell, or alike.
It's not that easy as it looks at first glance. That's why I would like
a kind of design, before starting to implement.
> Stefan
Best regards, Michael.
next prev parent reply other threads:[~2014-11-17 18:48 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-03 21:47 bug#18940: 24.4; vc-hg does not disable pager, leading to hangs (at least with tramp) Daniel Pittman
[not found] ` <handler.18940.B.141505143415260.ack@debbugs.gnu.org>
2014-11-03 22:13 ` bug#18940: Acknowledgement (24.4; vc-hg does not disable pager, leading to hangs (at least with tramp) ) Daniel Pittman
2014-11-09 10:24 ` bug#18940: 24.4; vc-hg does not disable pager, leading to hangs (at least with tramp) Michael Albinus
2014-11-13 15:36 ` Michael Albinus
2014-11-13 18:10 ` Stefan Monnier
2014-11-13 21:37 ` Michael Albinus
2014-11-14 1:49 ` Stefan Monnier
2014-11-16 10:55 ` Michael Albinus
2014-11-16 15:29 ` Eli Zaretskii
2014-11-16 18:38 ` Michael Albinus
2014-11-16 21:08 ` Stefan Monnier
2014-11-17 18:48 ` Michael Albinus [this message]
2014-11-18 2:15 ` Environment variables for remote processes Stefan Monnier
2014-11-18 19:14 ` Michael Albinus
2014-11-18 21:24 ` Stefan Monnier
2014-11-18 21:45 ` Michael Albinus
2014-11-19 3:16 ` Stefan Monnier
2014-11-19 15:12 ` andres.ramirez
2014-11-23 10:22 ` Michael Albinus
2014-11-19 18:18 ` Michael Albinus
2014-11-19 18:31 ` Michael Albinus
2014-11-20 4:29 ` Stefan Monnier
2014-11-20 15:52 ` Michael Albinus
2014-11-21 2:46 ` Stefan Monnier
2014-11-22 11:43 ` Michael Albinus
2014-11-22 16:33 ` Stefan Monnier
2014-11-22 16:49 ` Michael Albinus
2014-11-15 2:24 ` bug#18940: Enabling hg extensions Jordi Gutiérrez Hermoso
2014-11-15 16:00 ` Michael Albinus
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=87h9xxvf31.fsf_-_@gmx.de \
--to=michael.albinus@gmx.de \
--cc=dpittman@fb.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.