]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix loading problem in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Apr 2021 18:56:07 +0000 (20:56 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Apr 2021 18:56:07 +0000 (20:56 +0200)
* lisp/net/tramp.el (tramp-autoload-file-name-handler): Load also
tramp-compat.el.

lisp/net/tramp.el

index dc34b8f024d2b453af91a85c8bad47364d9046ea..88af9afd98ad7b390ab7a530d587e90efe7594ec 100644 (file)
@@ -2564,8 +2564,11 @@ Falls back to normal file name handler if no Tramp file name handler exists."
   (tramp-unload-file-name-handlers)
   (when tramp-mode
     ;; We cannot use `tramp-compat-temporary-file-directory' here due
-    ;; to autoload.
+    ;; to autoload.  When installing Tramp's GNU ELPA package, there
+    ;; might be an older, incompatible version active.  We try to
+    ;; overload this.
     (let ((default-directory temporary-file-directory))
+      (load "tramp-compat" 'noerror 'nomessage)
       (load "tramp" 'noerror 'nomessage)))
   (apply operation args)))