From 1c75616af01286eb7df1ae646c77071255bb25f7 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 18 Oct 2015 13:22:02 +0200 Subject: [PATCH] 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(+) diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 8658f6f81a7..8673b00b23d 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -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 diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 15af0b548ae..75fa9b6d4d0 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)) -- 2.39.2