emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 01/01: * tramp.texi (Remote processes): Let-bind en


From: Michael Albinus
Subject: [Emacs-diffs] master 01/01: * tramp.texi (Remote processes): Let-bind environment variables to `process-environment' when running `process-file' or `start-file-process'.
Date: Sun, 23 Nov 2014 11:34:18 +0000

branch: master
commit 600f3d0528bf9acfea89985755d94e05a78df341
Author: Michael Albinus <address@hidden>
Date:   Sun Nov 23 12:33:45 2014 +0100

    * tramp.texi (Remote processes): Let-bind environment variables to
    `process-environment' when running `process-file' or `start-file-process'.
---
 doc/misc/ChangeLog  |    6 ++++++
 doc/misc/tramp.texi |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 0e9300a..e9029d5 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-23  Michael Albinus  <address@hidden>
+
+       * tramp.texi (Remote processes): Let-bind environment variables to
+       `process-environment' when running `process-file' or
+       `start-file-process'.
+
 2014-11-19  Ivan Shmakov  <address@hidden>
 
        * eww.texi (Basics): Document `eww-history-limit'.
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index a245de8..8eb25c6 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2711,6 +2711,21 @@ following code in your @file{.emacs}:
   (setq tramp-remote-process-environment process-environment))
 @end lisp
 
+When running @code{process-file} or @code{start-file-process} on a
+remote @code{default-directory}, the default settings in
address@hidden are not used as it is the case for local
+processes.  However, if you need environment variables other than set
+in @code{tramp-remote-process-environment}, you can let-bind them to
address@hidden Only those variables will be set then:
+
address@hidden
+(let ((process-environment (cons "HGPLAIN=1" process-environment)))
+  (process-file @dots{}))
address@hidden lisp
+
+This works only for environment variables which are not set already in
address@hidden
+
 If you use other @value{emacsname} packages which do not run
 out-of-the-box on a remote host, please let us know.  We will try to
 integrate them as well.  @xref{Bug Reports}.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]