aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-07-29 09:47:53 +0200
committerMichael Albinus2013-07-29 09:47:53 +0200
commit78822e94cba9b0ddf4ace7b4af8b9fa2c6eb533a (patch)
treef0ceb25e5e7f250e0003c7e2626f5a2169632cb6
parentdfc7be3975a43902120b709090b66e3aa1c6c0a4 (diff)
downloademacs-78822e94cba9b0ddf4ace7b4af8b9fa2c6eb533a.tar.gz
emacs-78822e94cba9b0ddf4ace7b4af8b9fa2c6eb533a.zip
* net/tramp.el (tramp-use-ssh-controlmaster-options): New customer option.
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-maybe-open-connection): Use it.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/tramp-sh.el8
-rw-r--r--lisp/net/tramp.el8
3 files changed, 22 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 677e5e5a329..6ecc18cdcda 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12013-07-29 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-use-ssh-controlmaster-options): New customer
4 option.
5
6 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
7 (tramp-maybe-open-connection): Use it.
8
12013-07-28 Juanma Barranquero <lekktu@gmail.com> 92013-07-28 Juanma Barranquero <lekktu@gmail.com>
2 10
3 * desktop.el (desktop--make-frame): Include `minibuffer' in the 11 * desktop.el (desktop--make-frame): Include `minibuffer' in the
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index c92eacd4473..441849fd2af 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2248,7 +2248,10 @@ The method used must be an out-of-band method."
2248 spec (format-spec-make 2248 spec (format-spec-make
2249 ?t (tramp-get-connection-property 2249 ?t (tramp-get-connection-property
2250 (tramp-get-connection-process v) "temp-file" "")) 2250 (tramp-get-connection-process v) "temp-file" ""))
2251 options (format-spec tramp-ssh-controlmaster-options spec) 2251 options (format-spec
2252 (if tramp-use-ssh-controlmaster-options
2253 tramp-ssh-controlmaster-options "")
2254 spec)
2252 spec (format-spec-make 2255 spec (format-spec-make
2253 ?h host ?u user ?p port ?c options 2256 ?h host ?u user ?p port ?c options
2254 ?k (if keep-date " " "")) 2257 ?k (if keep-date " " ""))
@@ -4416,7 +4419,8 @@ connection if a previous connection has died for some reason."
4416 (let* ((target-alist (tramp-compute-multi-hops vec)) 4419 (let* ((target-alist (tramp-compute-multi-hops vec))
4417 ;; We will apply `tramp-ssh-controlmaster-options' 4420 ;; We will apply `tramp-ssh-controlmaster-options'
4418 ;; only for the first hop. 4421 ;; only for the first hop.
4419 (options tramp-ssh-controlmaster-options) 4422 (options (if tramp-use-ssh-controlmaster-options
4423 tramp-ssh-controlmaster-options ""))
4420 (process-connection-type tramp-process-connection-type) 4424 (process-connection-type tramp-process-connection-type)
4421 (process-adaptive-read-buffering nil) 4425 (process-adaptive-read-buffering nil)
4422 (coding-system-for-read nil) 4426 (coding-system-for-read nil)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index db6a1e381a6..48e13004c36 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -305,6 +305,14 @@ useful only in combination with `tramp-default-proxies-alist'.")
305 "Call ssh to detect whether it supports the Control* arguments. 305 "Call ssh to detect whether it supports the Control* arguments.
306Return a string to be used in `tramp-methods'.") 306Return a string to be used in `tramp-methods'.")
307 307
308;;;###tramp-autoload
309(defcustom tramp-use-ssh-controlmaster-options
310 (not (zerop (length tramp-ssh-controlmaster-options)))
311 "Whether to use `tramp-ssh-controlmaster-options'."
312 :group 'tramp
313 :version "24.4"
314 :type 'boolean)
315
308(defcustom tramp-default-method 316(defcustom tramp-default-method
309 ;; An external copy method seems to be preferred, because it performs 317 ;; An external copy method seems to be preferred, because it performs
310 ;; much better for large files, and it hasn't too serious delays 318 ;; much better for large files, and it hasn't too serious delays