[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 1c75616 1/2: Some minor Tramp changes
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 1c75616 1/2: Some minor Tramp changes |
Date: |
Sun, 18 Oct 2015 11:24:11 +0000 |
branch: master
commit 1c75616af01286eb7df1ae646c77071255bb25f7
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Some minor Tramp changes
* doc/misc/tramp.texi (Obtaining Tramp): Add http git cloning.
* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
Expand `tramp-auto-save-directory'.
---
doc/misc/tramp.texi | 8 ++++++++
lisp/net/tramp.el | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 8658f6f..8673b00 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -429,6 +429,14 @@ Or follow the example session below:
@end example
@noindent
+If you reside behind a firewall, you could use
+
address@hidden
+] @strong{git config --global http.proxy
http://user:pwd@@proxy.server.com:8080}
+] @strong{git clone http://git.savannah.gnu.org/r/tramp.git}
address@hidden example
+
address@hidden
Tramp developers use instead
@example
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 15af0b5..75fa9b6 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4048,6 +4048,9 @@ Return the local name of the temporary file."
"Like `make-auto-save-file-name' for Tramp files.
Returns a file name in `tramp-auto-save-directory' for autosaving
this file, if that variable is non-nil."
+ (when (stringp tramp-auto-save-directory)
+ (setq tramp-auto-save-directory
+ (expand-file-name tramp-auto-save-directory)))
;; Create directory.
(unless (or (null tramp-auto-save-directory)
(file-exists-p tramp-auto-save-directory))