]> code.delx.au - gnu-emacs/commitdiff
Some minor Tramp changes
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 18 Oct 2015 11:22:02 +0000 (13:22 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 18 Oct 2015 11:22:02 +0000 (13:22 +0200)
* 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
lisp/net/tramp.el

index 8658f6f81a7b80c39b68ca26bd5e13fcff35a3ab..8673b00b23d5fa235fdc55b2ea43d6efb13cdef1 100644 (file)
@@ -428,6 +428,14 @@ Or follow the example session below:
 ] @strong{git clone git://git.savannah.gnu.org/tramp.git}
 @end example
 
+@noindent
+If you reside behind a firewall, you could use
+
+@example
+] @strong{git config --global http.proxy http://user:pwd@@proxy.server.com:8080}
+] @strong{git clone http://git.savannah.gnu.org/r/tramp.git}
+@end example
+
 @noindent
 Tramp developers use instead
 
index 15af0b548aef17eda88bc07058637bdda89f8dcf..75fa9b6d4d0780e4230b149478ada3b9ab73d727 100644 (file)
@@ -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))