+2013-07-29 Michael Albinus <michael.albinus@gmx.de>
+
+ * 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.
+
2013-07-28 Juanma Barranquero <lekktu@gmail.com>
* desktop.el (desktop--make-frame): Include `minibuffer' in the
spec (format-spec-make
?t (tramp-get-connection-property
(tramp-get-connection-process v) "temp-file" ""))
- options (format-spec tramp-ssh-controlmaster-options spec)
+ options (format-spec
+ (if tramp-use-ssh-controlmaster-options
+ tramp-ssh-controlmaster-options "")
+ spec)
spec (format-spec-make
?h host ?u user ?p port ?c options
?k (if keep-date " " ""))
(let* ((target-alist (tramp-compute-multi-hops vec))
;; We will apply `tramp-ssh-controlmaster-options'
;; only for the first hop.
- (options tramp-ssh-controlmaster-options)
+ (options (if tramp-use-ssh-controlmaster-options
+ tramp-ssh-controlmaster-options ""))
(process-connection-type tramp-process-connection-type)
(process-adaptive-read-buffering nil)
(coding-system-for-read nil)
"Call ssh to detect whether it supports the Control* arguments.
Return a string to be used in `tramp-methods'.")
+;;;###tramp-autoload
+(defcustom tramp-use-ssh-controlmaster-options
+ (not (zerop (length tramp-ssh-controlmaster-options)))
+ "Whether to use `tramp-ssh-controlmaster-options'."
+ :group 'tramp
+ :version "24.4"
+ :type 'boolean)
+
(defcustom tramp-default-method
;; An external copy method seems to be preferred, because it performs
;; much better for large files, and it hasn't too serious delays