diff options
| author | Michael Albinus | 2013-07-29 09:47:53 +0200 |
|---|---|---|
| committer | Michael Albinus | 2013-07-29 09:47:53 +0200 |
| commit | 78822e94cba9b0ddf4ace7b4af8b9fa2c6eb533a (patch) | |
| tree | f0ceb25e5e7f250e0003c7e2626f5a2169632cb6 | |
| parent | dfc7be3975a43902120b709090b66e3aa1c6c0a4 (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 8 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 8 |
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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-07-28 Juanma Barranquero <lekktu@gmail.com> | 9 | 2013-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. |
| 306 | Return a string to be used in `tramp-methods'.") | 306 | Return 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 |