diff options
| author | Shuguang Sun | 2019-06-29 12:18:59 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-06-29 12:18:59 +0200 |
| commit | 67b50770c050c55a26cd13b9568b01a80a449885 (patch) | |
| tree | 51ce33f75a9e83583c51088b5b522f3e0261fd5a | |
| parent | 497c120609e341d7e75a5a2b118a42b239c33489 (diff) | |
| download | emacs-67b50770c050c55a26cd13b9568b01a80a449885.tar.gz emacs-67b50770c050c55a26cd13b9568b01a80a449885.zip | |
Fix recent change in Tramp
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-integration.el: Remove superfluous `progn' in
`with-eval-after-load'.
| -rw-r--r-- | lisp/net/tramp-adb.el | 17 | ||||
| -rw-r--r-- | lisp/net/tramp-archive.el | 13 | ||||
| -rw-r--r-- | lisp/net/tramp-integration.el | 59 |
3 files changed, 42 insertions, 47 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index c8b9e7ae09c..186b67c6e93 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -1299,15 +1299,14 @@ connection if a previous connection has died for some reason." | |||
| 1299 | ;; `connection-local-set-profile-variables' and | 1299 | ;; `connection-local-set-profile-variables' and |
| 1300 | ;; `connection-local-set-profiles' exists since Emacs 26.1. | 1300 | ;; `connection-local-set-profiles' exists since Emacs 26.1. |
| 1301 | (with-eval-after-load 'shell | 1301 | (with-eval-after-load 'shell |
| 1302 | (progn | 1302 | (tramp-compat-funcall |
| 1303 | (tramp-compat-funcall | 1303 | 'connection-local-set-profile-variables |
| 1304 | 'connection-local-set-profile-variables | 1304 | 'tramp-adb-connection-local-default-profile |
| 1305 | 'tramp-adb-connection-local-default-profile | 1305 | tramp-adb-connection-local-default-profile) |
| 1306 | tramp-adb-connection-local-default-profile) | 1306 | (tramp-compat-funcall |
| 1307 | (tramp-compat-funcall | 1307 | 'connection-local-set-profiles |
| 1308 | 'connection-local-set-profiles | 1308 | `(:application tramp :protocol ,tramp-adb-method) |
| 1309 | `(:application tramp :protocol ,tramp-adb-method) | 1309 | 'tramp-adb-connection-local-default-profile)) |
| 1310 | 'tramp-adb-connection-local-default-profile))) | ||
| 1311 | 1310 | ||
| 1312 | (add-hook 'tramp-unload-hook | 1311 | (add-hook 'tramp-unload-hook |
| 1313 | (lambda () | 1312 | (lambda () |
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el index b329d4a1b11..82fd327770b 100644 --- a/lisp/net/tramp-archive.el +++ b/lisp/net/tramp-archive.el | |||
| @@ -373,13 +373,12 @@ pass to the OPERATION." | |||
| 373 | (when url-handler-mode (tramp-register-file-name-handlers)) | 373 | (when url-handler-mode (tramp-register-file-name-handlers)) |
| 374 | 374 | ||
| 375 | (with-eval-after-load 'url-handler | 375 | (with-eval-after-load 'url-handler |
| 376 | (progn | 376 | (add-hook 'url-handler-mode-hook #'tramp-register-file-name-handlers) |
| 377 | (add-hook 'url-handler-mode-hook #'tramp-register-file-name-handlers) | 377 | (add-hook |
| 378 | (add-hook | 378 | 'tramp-archive-unload-hook |
| 379 | 'tramp-archive-unload-hook | 379 | (lambda () |
| 380 | (lambda () | 380 | (remove-hook |
| 381 | (remove-hook | 381 | 'url-handler-mode-hook #'tramp-register-file-name-handlers)))) |
| 382 | 'url-handler-mode-hook #'tramp-register-file-name-handlers))))) | ||
| 383 | 382 | ||
| 384 | 383 | ||
| 385 | ;; File name conversions. | 384 | ;; File name conversions. |
diff --git a/lisp/net/tramp-integration.el b/lisp/net/tramp-integration.el index 5960871ca7a..0c706da1ca1 100644 --- a/lisp/net/tramp-integration.el +++ b/lisp/net/tramp-integration.el | |||
| @@ -124,17 +124,16 @@ been set up by `rfn-eshadow-setup-minibuffer'." | |||
| 124 | #'identity (butlast (tramp-compat-exec-path)) path-separator))) | 124 | #'identity (butlast (tramp-compat-exec-path)) path-separator))) |
| 125 | 125 | ||
| 126 | (with-eval-after-load 'esh-util | 126 | (with-eval-after-load 'esh-util |
| 127 | (progn | 127 | (add-hook 'eshell-mode-hook |
| 128 | (add-hook 'eshell-mode-hook | 128 | #'tramp-eshell-directory-change) |
| 129 | #'tramp-eshell-directory-change) | 129 | (add-hook 'eshell-directory-change-hook |
| 130 | (add-hook 'eshell-directory-change-hook | 130 | #'tramp-eshell-directory-change) |
| 131 | #'tramp-eshell-directory-change) | 131 | (add-hook 'tramp-integration-unload-hook |
| 132 | (add-hook 'tramp-integration-unload-hook | 132 | (lambda () |
| 133 | (lambda () | 133 | (remove-hook 'eshell-mode-hook |
| 134 | (remove-hook 'eshell-mode-hook | 134 | #'tramp-eshell-directory-change) |
| 135 | #'tramp-eshell-directory-change) | 135 | (remove-hook 'eshell-directory-change-hook |
| 136 | (remove-hook 'eshell-directory-change-hook | 136 | #'tramp-eshell-directory-change)))) |
| 137 | #'tramp-eshell-directory-change))))) | ||
| 138 | 137 | ||
| 139 | ;;; Integration of recentf.el: | 138 | ;;; Integration of recentf.el: |
| 140 | 139 | ||
| @@ -159,17 +158,16 @@ NAME must be equal to `tramp-current-connection'." | |||
| 159 | (recentf-cleanup)))) | 158 | (recentf-cleanup)))) |
| 160 | 159 | ||
| 161 | (with-eval-after-load 'recentf | 160 | (with-eval-after-load 'recentf |
| 162 | (progn | 161 | (add-hook 'tramp-cleanup-connection-hook |
| 163 | (add-hook 'tramp-cleanup-connection-hook | 162 | #'tramp-recentf-cleanup) |
| 164 | #'tramp-recentf-cleanup) | 163 | (add-hook 'tramp-cleanup-all-connections-hook |
| 165 | (add-hook 'tramp-cleanup-all-connections-hook | 164 | #'tramp-recentf-cleanup-all) |
| 166 | #'tramp-recentf-cleanup-all) | 165 | (add-hook 'tramp-integration-unload-hook |
| 167 | (add-hook 'tramp-integration-unload-hook | 166 | (lambda () |
| 168 | (lambda () | 167 | (remove-hook 'tramp-cleanup-connection-hook |
| 169 | (remove-hook 'tramp-cleanup-connection-hook | 168 | #'tramp-recentf-cleanup) |
| 170 | #'tramp-recentf-cleanup) | 169 | (remove-hook 'tramp-cleanup-all-connections-hook |
| 171 | (remove-hook 'tramp-cleanup-all-connections-hook | 170 | #'tramp-recentf-cleanup-all)))) |
| 172 | #'tramp-recentf-cleanup-all))))) | ||
| 173 | 171 | ||
| 174 | ;;; Default connection-local variables for Tramp: | 172 | ;;; Default connection-local variables for Tramp: |
| 175 | 173 | ||
| @@ -181,15 +179,14 @@ NAME must be equal to `tramp-current-connection'." | |||
| 181 | ;; `connection-local-set-profile-variables' and | 179 | ;; `connection-local-set-profile-variables' and |
| 182 | ;; `connection-local-set-profiles' exists since Emacs 26.1. | 180 | ;; `connection-local-set-profiles' exists since Emacs 26.1. |
| 183 | (with-eval-after-load 'shell | 181 | (with-eval-after-load 'shell |
| 184 | (progn | 182 | (tramp-compat-funcall |
| 185 | (tramp-compat-funcall | 183 | 'connection-local-set-profile-variables |
| 186 | 'connection-local-set-profile-variables | 184 | 'tramp-connection-local-default-profile |
| 187 | 'tramp-connection-local-default-profile | 185 | tramp-connection-local-default-profile) |
| 188 | tramp-connection-local-default-profile) | 186 | (tramp-compat-funcall |
| 189 | (tramp-compat-funcall | 187 | 'connection-local-set-profiles |
| 190 | 'connection-local-set-profiles | 188 | `(:application tramp) |
| 191 | `(:application tramp) | 189 | 'tramp-connection-local-default-profile)) |
| 192 | 'tramp-connection-local-default-profile))) | ||
| 193 | 190 | ||
| 194 | (add-hook 'tramp-unload-hook | 191 | (add-hook 'tramp-unload-hook |
| 195 | (lambda () (unload-feature 'tramp-integration 'force))) | 192 | (lambda () (unload-feature 'tramp-integration 'force))) |