Do not load Tramp unless `tramp-mode' is non-nil
commitca2d94ba61dee678f85bfc7299d167e7219e6d8f
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Nov 2017 19:08:05 +0000 (5 20:08 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Nov 2017 19:08:05 +0000 (5 20:08 +0100)
tree10dd2860d7fc05945d738c8a2b26eaaa96caca7b
parent709478eaa866e10a4600f8d8829ab8c79200d45e
Do not load Tramp unless `tramp-mode' is non-nil

* lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if
`tramp-mode' is non-nil.
(tramp-unload-file-name-handlers): Unload also
`tramp-autoload-file-name-handler'.

* test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test.
lisp/net/tramp.el
test/lisp/net/tramp-tests.el