From 1ee62ac5bd943f7f2803e66d63ccf78113d31fa0 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 27 Apr 2021 20:56:07 +0200 Subject: [PATCH] Fix loading problem in Tramp * lisp/net/tramp.el (tramp-autoload-file-name-handler): Load also tramp-compat.el. --- lisp/net/tramp.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index dc34b8f024d..88af9afd98a 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -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))) -- 2.39.5