summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2022-03-17 15:32:01 +0100
committerMichael Albinus <michael.albinus@gmx.de>2022-03-17 15:32:01 +0100
commit52dd3fcf89c441be64a94eefa01b704c9aba5090 (patch)
tree904c7e5e97d986caaa7a9b90017840fa0903b6ab /lisp
parent693484d36b1326aebd895314570167ca8da87d69 (diff)
downloademacs-52dd3fcf89c441be64a94eefa01b704c9aba5090.tar.gz
emacs-52dd3fcf89c441be64a94eefa01b704c9aba5090.tar.bz2
emacs-52dd3fcf89c441be64a94eefa01b704c9aba5090.zip
Enable Tramp reloading
* lisp/net/tramp.el (tramp-file-name): Add ;;;###tramp-autoload cookie. (Bug#50869) * test/lisp/net/tramp-tests.el (tramp-test47-unload): Do not skip. Test reload.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 49778cbfeee..38bdfab1929 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1421,7 +1421,10 @@ calling HANDLER.")
;; internal data structure. Convenience functions for internal
;; data structure.
-;; The basic structure for remote file names.
+;; The basic structure for remote file names. We must autoload it in
+;; tramp-loaddefs.el, because some functions, which need it, wouldn't
+;; work otherwise when unloading / reloading Tramp. (Bug#50869)
+;;;###tramp-autoload
(cl-defstruct (tramp-file-name (:type list) :named)
method user domain host port localname hop)