diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-24 10:09:17 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-24 10:09:17 -0500 |
commit | 1c8f42c7bfc44b7afa83ed3b73b190a9ec0ced10 (patch) | |
tree | 489dc4e9b73483127a86027cbcbbfa9b4b1d317e | |
parent | 49f23d8ec90a15a507e6c3b0c542f0aba5fb51dc (diff) | |
download | tramp-nspawn-1c8f42c7bfc44b7afa83ed3b73b190a9ec0ced10.tar.gz tramp-nspawn-1c8f42c7bfc44b7afa83ed3b73b190a9ec0ced10.zip |
Add feature unload function.
-rw-r--r-- | nspawn-tramp.el | 7 |
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 "")))) |