summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-compat.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2018-10-22 09:05:48 +0200
committerMichael Albinus <michael.albinus@gmx.de>2018-10-22 09:05:48 +0200
commit1d2b386ec4dcd8a5844fae3173ba454a51999a56 (patch)
tree3a6a0954e60ba9cf7e2fb3584703f02dd2c9199f /lisp/net/tramp-compat.el
parent969b561972527b0471f9d1b29e0190e978ad8bc1 (diff)
downloademacs-1d2b386ec4dcd8a5844fae3173ba454a51999a56.tar.gz
Improve Tramp backward compatibility
* lisp/net/tramp-compat.el: (tramp-unload-file-name-handlers): Declare it, for backward compatibility.
Diffstat (limited to 'lisp/net/tramp-compat.el')
-rw-r--r--lisp/net/tramp-compat.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index c3777e6e737..ec8e54509d1 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -29,6 +29,11 @@
;;; Code:
+;; In Emacs 24 and 25, `tramp-unload-file-name-handlers' is not
+;; autoloaded. So we declare it here in order to avoid recursive
+;; load. This will be overwritten in tramp.el.
+(defun tramp-unload-file-name-handlers ())
+
(require 'auth-source)
(require 'advice)
(require 'cl-lib)