From 1c8f42c7bfc44b7afa83ed3b73b190a9ec0ced10 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Wed, 24 Feb 2021 10:09:17 -0500 Subject: Add feature unload function. --- nspawn-tramp.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 "")))) -- cgit v1.2.3