diff options
| -rw-r--r-- | lisp/net/tramp-cache.el | 19 | ||||
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 26 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 4 |
4 files changed, 32 insertions, 20 deletions
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el index 1998042d699..94eeb83ba34 100644 --- a/lisp/net/tramp-cache.el +++ b/lisp/net/tramp-cache.el | |||
| @@ -411,15 +411,16 @@ used to cache connection properties of the local machine." | |||
| 411 | ;;;###tramp-autoload | 411 | ;;;###tramp-autoload |
| 412 | (defun tramp-list-connections () | 412 | (defun tramp-list-connections () |
| 413 | "Return all known `tramp-file-name' structs according to `tramp-cache'." | 413 | "Return all known `tramp-file-name' structs according to `tramp-cache'." |
| 414 | (let (result tramp-verbose) | 414 | (let ((tramp-verbose 0) |
| 415 | (maphash | 415 | result) |
| 416 | (lambda (key _value) | 416 | (maphash |
| 417 | (when (and (tramp-file-name-p key) | 417 | (lambda (key _value) |
| 418 | (null (tramp-file-name-localname key)) | 418 | (when (and (tramp-file-name-p key) |
| 419 | (tramp-connection-property-p key "process-buffer")) | 419 | (null (tramp-file-name-localname key)) |
| 420 | (push key result))) | 420 | (tramp-connection-property-p key "process-buffer")) |
| 421 | tramp-cache-data) | 421 | (push key result))) |
| 422 | result)) | 422 | tramp-cache-data) |
| 423 | result)) | ||
| 423 | 424 | ||
| 424 | (defun tramp-dump-connection-properties () | 425 | (defun tramp-dump-connection-properties () |
| 425 | "Write persistent connection properties into file `tramp-persistency-file-name'." | 426 | "Write persistent connection properties into file `tramp-persistency-file-name'." |
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 6e116731b7a..0d800cb42b3 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -2466,7 +2466,8 @@ This uses \"avahi-browse\" in case D-Bus is not enabled in Avahi." | |||
| 2466 | 2466 | ||
| 2467 | (when tramp-gvfs-enabled | 2467 | (when tramp-gvfs-enabled |
| 2468 | ;; Suppress D-Bus error messages and Tramp traces. | 2468 | ;; Suppress D-Bus error messages and Tramp traces. |
| 2469 | (let (tramp-gvfs-dbus-event-vector tramp-verbose fun) | 2469 | (let ((tramp-verbose 0) |
| 2470 | tramp-gvfs-dbus-event-vector fun) | ||
| 2470 | ;; Add completion functions for services announced by DNS-SD. | 2471 | ;; Add completion functions for services announced by DNS-SD. |
| 2471 | ;; See <http://www.dns-sd.org/ServiceTypes.html> for valid service types. | 2472 | ;; See <http://www.dns-sd.org/ServiceTypes.html> for valid service types. |
| 2472 | (zeroconf-init tramp-gvfs-zeroconf-domain) | 2473 | (zeroconf-init tramp-gvfs-zeroconf-domain) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 2e8793056ab..5a3abc31ea6 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -491,8 +491,8 @@ The string is used in `tramp-methods'.") | |||
| 491 | For every remote host, this variable will be set buffer local, | 491 | For every remote host, this variable will be set buffer local, |
| 492 | keeping the list of existing directories on that host. | 492 | keeping the list of existing directories on that host. |
| 493 | 493 | ||
| 494 | You can use `~' in this list, but when searching for a shell which groks | 494 | You can use \"~\" in this list, but when searching for a shell which groks |
| 495 | tilde expansion, all directory names starting with `~' will be ignored. | 495 | tilde expansion, all directory names starting with \"~\" will be ignored. |
| 496 | 496 | ||
| 497 | `Default Directories' represent the list of directories given by | 497 | `Default Directories' represent the list of directories given by |
| 498 | the command \"getconf PATH\". It is recommended to use this | 498 | the command \"getconf PATH\". It is recommended to use this |
| @@ -3953,7 +3953,7 @@ hosts, or files, disagree." | |||
| 3953 | First arg VEC specifies the connection, PROGNAME is the program | 3953 | First arg VEC specifies the connection, PROGNAME is the program |
| 3954 | to search for, and DIRLIST gives the list of directories to | 3954 | to search for, and DIRLIST gives the list of directories to |
| 3955 | search. If IGNORE-TILDE is non-nil, directory names starting | 3955 | search. If IGNORE-TILDE is non-nil, directory names starting |
| 3956 | with `~' will be ignored. If IGNORE-PATH is non-nil, searches | 3956 | with \"~\" will be ignored. If IGNORE-PATH is non-nil, searches |
| 3957 | only in DIRLIST. | 3957 | only in DIRLIST. |
| 3958 | 3958 | ||
| 3959 | Returns the absolute file name of PROGNAME, if found, and nil otherwise. | 3959 | Returns the absolute file name of PROGNAME, if found, and nil otherwise. |
| @@ -4103,18 +4103,26 @@ file exists and nonzero exit status otherwise." | |||
| 4103 | (with-tramp-progress-reporter | 4103 | (with-tramp-progress-reporter |
| 4104 | vec 5 (format-message "Opening remote shell `%s'" shell) | 4104 | vec 5 (format-message "Opening remote shell `%s'" shell) |
| 4105 | ;; Find arguments for this shell. | 4105 | ;; Find arguments for this shell. |
| 4106 | (let ((extra-args (tramp-get-sh-extra-args shell))) | 4106 | (let ((extra-args (tramp-get-sh-extra-args shell)) |
| 4107 | (p (tramp-get-connection-process vec))) | ||
| 4107 | ;; The readline library can disturb Tramp. For example, the | 4108 | ;; The readline library can disturb Tramp. For example, the |
| 4108 | ;; very recent version of libedit, the *BSD implementation of | 4109 | ;; very recent version of libedit, the *BSD implementation of |
| 4109 | ;; readline, confuses Tramp. So we disable line editing. Since | 4110 | ;; readline, confuses Tramp. So we disable line editing. Since |
| 4110 | ;; $EDITRC is not supported on all target systems, we must move | 4111 | ;; $EDITRC is not supported on all target systems, we must move |
| 4111 | ;; ~/.editrc temporarily somewhere else. For bash and zsh we | 4112 | ;; ~/.editrc temporarily somewhere else. For bash and zsh we |
| 4112 | ;; have disabled this already during shell invocation, see | 4113 | ;; have disabled this already during shell invocation, see |
| 4113 | ;; `tramp-sh-extra-args'. Bug#39399. | 4114 | ;; `tramp-sh-extra-args' (Bug#39399). |
| 4115 | ;; The shell prompt might not be set yet, so we must read any | ||
| 4116 | ;; prompt via `tramp-barf-if-no-shell-prompt'. | ||
| 4114 | (unless extra-args | 4117 | (unless extra-args |
| 4115 | (tramp-send-command vec "rm -f ~/.editrc.tramp" t) | 4118 | (tramp-send-command vec "rm -f ~/.editrc.tramp" t t) |
| 4116 | (tramp-send-command vec "mv -f ~/.editrc ~/.editrc.tramp" t) | 4119 | (tramp-barf-if-no-shell-prompt p 10 "Couldn't find remote shell prompt") |
| 4117 | (tramp-send-command vec "echo 'edit off' >~/.editrc" t)) | 4120 | (tramp-send-command |
| 4121 | vec "test -e ~/.editrc && mv -f ~/.editrc ~/.editrc.tramp" t t) | ||
| 4122 | (tramp-barf-if-no-shell-prompt p 10 "Couldn't find remote shell prompt") | ||
| 4123 | (tramp-send-command vec "echo 'edit off' >~/.editrc" t t) | ||
| 4124 | (tramp-barf-if-no-shell-prompt | ||
| 4125 | p 10 "Couldn't find remote shell prompt")) | ||
| 4118 | ;; It is useful to set the prompt in the following command | 4126 | ;; It is useful to set the prompt in the following command |
| 4119 | ;; because some people have a setting for $PS1 which /bin/sh | 4127 | ;; because some people have a setting for $PS1 which /bin/sh |
| 4120 | ;; doesn't know about and thus /bin/sh will display a strange | 4128 | ;; doesn't know about and thus /bin/sh will display a strange |
| @@ -4150,7 +4158,9 @@ file exists and nonzero exit status otherwise." | |||
| 4150 | (tramp-shell-quote-argument tramp-end-of-output) | 4158 | (tramp-shell-quote-argument tramp-end-of-output) |
| 4151 | shell (or extra-args "")) | 4159 | shell (or extra-args "")) |
| 4152 | t) | 4160 | t) |
| 4161 | ;; Reset ~/.editrc. | ||
| 4153 | (unless extra-args | 4162 | (unless extra-args |
| 4163 | (tramp-send-command vec "rm -f ~/.editrc" t) | ||
| 4154 | (tramp-send-command | 4164 | (tramp-send-command |
| 4155 | vec "test -e ~/.editrc.tramp && mv -f ~/.editrc.tramp ~/.editrc" t)) | 4165 | vec "test -e ~/.editrc.tramp && mv -f ~/.editrc.tramp ~/.editrc" t)) |
| 4156 | ;; Check proper HISTFILE setting. We give up when not working. | 4166 | ;; Check proper HISTFILE setting. We give up when not working. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index a38b3c6e51c..19d36c3a97b 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2555,7 +2555,7 @@ Add operations defined in `HANDLER-alist' to `tramp-file-name-handler'." | |||
| 2555 | "Check, whether it is possible to connect the remote host w/o side-effects. | 2555 | "Check, whether it is possible to connect the remote host w/o side-effects. |
| 2556 | This is true, if either the remote host is already connected, or if we are | 2556 | This is true, if either the remote host is already connected, or if we are |
| 2557 | not in completion mode." | 2557 | not in completion mode." |
| 2558 | (let (tramp-verbose | 2558 | (let ((tramp-verbose 0) |
| 2559 | (vec | 2559 | (vec |
| 2560 | (cond | 2560 | (cond |
| 2561 | ((tramp-file-name-p vec-or-filename) vec-or-filename) | 2561 | ((tramp-file-name-p vec-or-filename) vec-or-filename) |
| @@ -3431,7 +3431,7 @@ User is always nil." | |||
| 3431 | (with-tramp-progress-reporter v 0 (format "Opening directory %s" filename) | 3431 | (with-tramp-progress-reporter v 0 (format "Opening directory %s" filename) |
| 3432 | (let (ls-lisp-use-insert-directory-program start) | 3432 | (let (ls-lisp-use-insert-directory-program start) |
| 3433 | ;; Silence byte compiler. | 3433 | ;; Silence byte compiler. |
| 3434 | ls-lisp-use-insert-directory-program | 3434 | (ignore ls-lisp-use-insert-directory-program) |
| 3435 | (tramp-run-real-handler | 3435 | (tramp-run-real-handler |
| 3436 | #'insert-directory | 3436 | #'insert-directory |
| 3437 | (list filename switches wildcard full-directory-p)) | 3437 | (list filename switches wildcard full-directory-p)) |