aboutsummaryrefslogtreecommitdiffstats
path: root/nspawn-tramp.el
diff options
context:
space:
mode:
Diffstat (limited to 'nspawn-tramp.el')
-rw-r--r--nspawn-tramp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/nspawn-tramp.el b/nspawn-tramp.el
index 199255e..54e6999 100644
--- a/nspawn-tramp.el
+++ b/nspawn-tramp.el
@@ -104,10 +104,15 @@ see its function help for a description of the format."
"Remove TRAMP method handler for nspawn conainers."
(setf (alist-get nspawn-tramp-method tramp-methods nil t 'string=) nil))
+(defun nspawn-tramp-unload-function ()
+ "Remove TRAMP method handler and completion functions."
+ (tramp-set-completion-function nspawn-tramp-method nil)
+ (nspawn-tramp--remove-method)
+ nil)
+
;;;###autoload
(defun nspawn-tramp-setup ()
"Initialize systemd-nspawn support for TRAMP."
- (nspawn-tramp--remove-method)
(nspawn-tramp--add-method)
(tramp-set-completion-function nspawn-tramp-method
'((nspawn-tramp--completion-function ""))))