Commit 93b823b6 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/net/tramp.el (tramp-file-name-handler): Use autoload-do-load

parent 0ab24743
......@@ -2317,10 +2317,14 @@ Falls back to normal file name handler if no Tramp file name handler exists."
;; in recursive loading. Therefore, we load
;; the Tramp packages locally.
(when (autoloadp sf)
;; FIXME: Not clear why we need these bindings here.
;; The explanation above is not convincing and
;; the bug#9114 for which it was added doesn't
;; clarify the core of the problem.
(let ((default-directory
(load (cadr sf) 'noerror 'nomessage)))
(autoload-do-load sf foreign)))
;; (tramp-message
;; v 4 "Running `%s'..." (cons operation args))
;; If `non-essential' is non-nil, Tramp shall
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment