aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-06-25 16:09:48 -0400
committerStefan Monnier2019-06-25 16:09:48 -0400
commit93b823b6e4bb8d4d414a9b6a9d3d45d63cb32f70 (patch)
tree486b0fa4ee15ede9fed437e720f46f80aeccc2a4
parent0ab24743f1702aa52bb0bcb18798c698cc792da3 (diff)
downloademacs-93b823b6e4bb8d4d414a9b6a9d3d45d63cb32f70.tar.gz
emacs-93b823b6e4bb8d4d414a9b6a9d3d45d63cb32f70.zip
* lisp/net/tramp.el (tramp-file-name-handler): Use autoload-do-load
-rw-r--r--lisp/net/tramp.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 0a5ccb6f1c6..4c9b67b13b4 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2317,10 +2317,14 @@ Falls back to normal file name handler if no Tramp file name handler exists."
2317 ;; in recursive loading. Therefore, we load 2317 ;; in recursive loading. Therefore, we load
2318 ;; the Tramp packages locally. 2318 ;; the Tramp packages locally.
2319 (when (autoloadp sf) 2319 (when (autoloadp sf)
2320 ;; FIXME: Not clear why we need these bindings here.
2321 ;; The explanation above is not convincing and
2322 ;; the bug#9114 for which it was added doesn't
2323 ;; clarify the core of the problem.
2320 (let ((default-directory 2324 (let ((default-directory
2321 (tramp-compat-temporary-file-directory)) 2325 (tramp-compat-temporary-file-directory))
2322 file-name-handler-alist) 2326 file-name-handler-alist)
2323 (load (cadr sf) 'noerror 'nomessage))) 2327 (autoload-do-load sf foreign)))
2324 ;; (tramp-message 2328 ;; (tramp-message
2325 ;; v 4 "Running `%s'..." (cons operation args)) 2329 ;; v 4 "Running `%s'..." (cons operation args))
2326 ;; If `non-essential' is non-nil, Tramp shall 2330 ;; If `non-essential' is non-nil, Tramp shall