emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/tramp-nspawn 1c8f42c7bf 08/22: Add feature unload funct


From: ELPA Syncer
Subject: [elpa] externals/tramp-nspawn 1c8f42c7bf 08/22: Add feature unload function.
Date: Sat, 19 Feb 2022 18:58:01 -0500 (EST)

branch: externals/tramp-nspawn
commit 1c8f42c7bfc44b7afa83ed3b73b190a9ec0ced10
Author: Brian Cully <bjc@kublai.com>
Commit: Brian Cully <bjc@kublai.com>

    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 199255e4be..54e6999ebd 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 ""))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]