aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-01-30 10:16:16 +0100
committerMichael Albinus2013-01-30 10:16:16 +0100
commit8bc8712eddbac53649ce3b5b0d1ce5852bca394f (patch)
tree53acbd4de5b783586471c80ec50e4cfbc791f7ac
parent3f82a88a05e227145b0470991050698085d19fbe (diff)
downloademacs-8bc8712eddbac53649ce3b5b0d1ce5852bca394f.tar.gz
emacs-8bc8712eddbac53649ce3b5b0d1ce5852bca394f.zip
* net/tramp.el (tramp-process-connection-type): Fix docstring.
(tramp-completion-reread-directory-timeout): Fix type. (tramp-connection-min-time-diff): New defcustom. * net/tramp-sh.el (tramp-maybe-open-connection): Use it.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/tramp-sh.el2
-rw-r--r--lisp/net/tramp.el18
3 files changed, 25 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4a0fe6782e..348df715c70 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12013-01-30 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-process-connection-type): Fix docstring.
4 (tramp-completion-reread-directory-timeout): Fix type.
5 (tramp-connection-min-time-diff): New defcustom.
6
7 * net/tramp-sh.el (tramp-maybe-open-connection): Use it.
8
12013-01-30 Glenn Morris <rgm@gnu.org> 92013-01-30 Glenn Morris <rgm@gnu.org>
2 10
3 * imenu.el (imenu-default-create-index-function): 11 * imenu.el (imenu-default-create-index-function):
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 63e966b91b2..a06d64d400a 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4357,7 +4357,7 @@ connection if a previous connection has died for some reason."
4357 (car tramp-current-connection))) 4357 (car tramp-current-connection)))
4358 (> (tramp-time-diff 4358 (> (tramp-time-diff
4359 (current-time) (cdr tramp-current-connection)) 4359 (current-time) (cdr tramp-current-connection))
4360 5)) 4360 (or tramp-connection-min-time-diff 0)))
4361 (throw 'suppress 'suppress)) 4361 (throw 'suppress 'suppress))
4362 4362
4363 ;; If too much time has passed since last command was sent, look 4363 ;; If too much time has passed since last command was sent, look
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 045304cbc4f..ea3b5d56a38 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1018,11 +1018,25 @@ this variable to be set as well."
1018;; for an override of the system default. 1018;; for an override of the system default.
1019(defcustom tramp-process-connection-type t 1019(defcustom tramp-process-connection-type t
1020 "Overrides `process-connection-type' for connections from Tramp. 1020 "Overrides `process-connection-type' for connections from Tramp.
1021Tramp binds process-connection-type to the value given here before 1021Tramp binds `process-connection-type' to the value given here before
1022opening a connection to a remote host." 1022opening a connection to a remote host."
1023 :group 'tramp 1023 :group 'tramp
1024 :type '(choice (const nil) (const t) (const pty))) 1024 :type '(choice (const nil) (const t) (const pty)))
1025 1025
1026(defcustom tramp-connection-min-time-diff 5
1027 "Defines seconds between two consecutive connection attempts.
1028This is necessary as self defense mechanism, in order to avoid
1029yo-yo connection attempts when the remote host is unavailable.
1030
1031A value of 0 or `nil' suppresses this check. This might be
1032necessary, when several out-of-order copy operations are
1033performed, or when several asynchronous processes will be started
1034in a short time frame. In those cases it is recommended to
1035let-bind this variable."
1036 :group 'tramp
1037 :version "24.4"
1038 :type '(choice (const nil) integer))
1039
1026(defcustom tramp-completion-reread-directory-timeout 10 1040(defcustom tramp-completion-reread-directory-timeout 10
1027 "Defines seconds since last remote command before rereading a directory. 1041 "Defines seconds since last remote command before rereading a directory.
1028A remote directory might have changed its contents. In order to 1042A remote directory might have changed its contents. In order to
@@ -1033,7 +1047,7 @@ have been gone since last remote command execution. A value of `t'
1033would require an immediate reread during filename completion, `nil' 1047would require an immediate reread during filename completion, `nil'
1034means to use always cached values for the directory contents." 1048means to use always cached values for the directory contents."
1035 :group 'tramp 1049 :group 'tramp
1036 :type '(choice (const nil) integer)) 1050 :type '(choice (const nil) (const t) integer))
1037 1051
1038;;; Internal Variables: 1052;;; Internal Variables:
1039 1053