diff options
| author | Michael Albinus | 2019-05-24 15:36:02 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-05-24 15:36:02 +0200 |
| commit | adab8bd35be440900ac6e4a250665bca2f9c7d51 (patch) | |
| tree | 19cf4685186bb9a8c03fe6a22b789d45268f14db | |
| parent | 8cdb9d9d24be0894ec3adc79f7f4af61e131850e (diff) | |
| download | emacs-adab8bd35be440900ac6e4a250665bca2f9c7d51.tar.gz emacs-adab8bd35be440900ac6e4a250665bca2f9c7d51.zip | |
Fix Bug#35769
* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
* lisp/net/tramp-integration.el (tramp-connection-local-default-profile):
Do not set it on w32 systems. (Bug#35769)
| -rw-r--r-- | lisp/net/tramp-adb.el | 7 | ||||
| -rw-r--r-- | lisp/net/tramp-integration.el | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 008a5cedd8b..9a214c369a6 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -1294,8 +1294,11 @@ connection if a previous connection has died for some reason." | |||
| 1294 | 1294 | ||
| 1295 | ;; Default settings for connection-local variables. | 1295 | ;; Default settings for connection-local variables. |
| 1296 | (defconst tramp-adb-connection-local-default-profile | 1296 | (defconst tramp-adb-connection-local-default-profile |
| 1297 | '((shell-file-name . "/system/bin/sh") | 1297 | ;; `w32-shell-name' is derived from `shell-file-name'. Don't let it |
| 1298 | (shell-command-switch . "-c")) | 1298 | ;; be confused. |
| 1299 | (unless (eq system-type 'windows-nt) | ||
| 1300 | '((shell-file-name . "/system/bin/sh") | ||
| 1301 | (shell-command-switch . "-c"))) | ||
| 1299 | "Default connection-local variables for remote adb connections.") | 1302 | "Default connection-local variables for remote adb connections.") |
| 1300 | 1303 | ||
| 1301 | ;; `connection-local-set-profile-variables' and | 1304 | ;; `connection-local-set-profile-variables' and |
diff --git a/lisp/net/tramp-integration.el b/lisp/net/tramp-integration.el index 35d2eb38e60..6e3b0279ec8 100644 --- a/lisp/net/tramp-integration.el +++ b/lisp/net/tramp-integration.el | |||
| @@ -174,8 +174,11 @@ NAME must be equal to `tramp-current-connection'." | |||
| 174 | ;;; Default connection-local variables for Tramp: | 174 | ;;; Default connection-local variables for Tramp: |
| 175 | 175 | ||
| 176 | (defconst tramp-connection-local-default-profile | 176 | (defconst tramp-connection-local-default-profile |
| 177 | '((shell-file-name . "/bin/sh") | 177 | ;; `w32-shell-name' is derived from `shell-file-name'. Don't let it |
| 178 | (shell-command-switch . "-c")) | 178 | ;; be confused. |
| 179 | (unless (eq system-type 'windows-nt) | ||
| 180 | '((shell-file-name . "/bin/sh") | ||
| 181 | (shell-command-switch . "-c"))) | ||
| 179 | "Default connection-local variables for remote connections.") | 182 | "Default connection-local variables for remote connections.") |
| 180 | 183 | ||
| 181 | ;; `connection-local-set-profile-variables' and | 184 | ;; `connection-local-set-profile-variables' and |