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'.
This commit is contained in:
Michael Albinus 2015-10-18 13:22:02 +02:00
parent 1d378c0b9b
commit 1c75616af0
2 changed files with 11 additions and 0 deletions

View 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

View 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))