fix compile error
This commit is contained in:
+6
-7
@@ -64,21 +64,20 @@
|
|||||||
(names (split-string raw-list "\n" 'omit)))
|
(names (split-string raw-list "\n" 'omit)))
|
||||||
(mapcar (lambda (name) (list nil name)) names))))
|
(mapcar (lambda (name) (list nil name)) names))))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun incus-tramp-enable-method ()
|
(defun incus-tramp-enable-method ()
|
||||||
(with-eval-after-load 'tramp
|
(with-eval-after-load 'tramp
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
`(,incus-tramp-method
|
(incus-tramp-method
|
||||||
(tramp-login-program ,incus-tramp-incus-program)
|
(tramp-login-program incus-tramp-incus-program)
|
||||||
(tramp-login-args (("exec") ("%h") (,(format "--env TERM=%s" tramp-terminal-type)) ("--") ("%l")))
|
(tramp-login-args (("exec") ("%h") ((format "--env TERM=%s" tramp-terminal-type)) ("--") ("%l")))
|
||||||
(tramp-direct-async (,tramp-default-remote-shell "-c"))
|
(tramp-direct-async (tramp-default-remote-shell "-c"))
|
||||||
(tramp-remote-shell ,tramp-default-remote-shell)
|
(tramp-remote-shell tramp-default-remote-shell)
|
||||||
(tramp-remote-shell-login ("-l"))
|
(tramp-remote-shell-login ("-l"))
|
||||||
(tramp-remote-shell-args ("-i" "-c"))
|
(tramp-remote-shell-args ("-i" "-c"))
|
||||||
(tramp-completion-use-cache nil)
|
(tramp-completion-use-cache nil)
|
||||||
(tramp-connection-timeout 60)))
|
(tramp-connection-timeout 60)))
|
||||||
(tramp-set-completion-function incus-tramp-method
|
(tramp-set-completion-function incus-tramp-method
|
||||||
`((tramp-incus-completion-function ,incus-tramp-method)))
|
((tramp-incus-completion-function incus-tramp-method)))
|
||||||
(add-to-list 'tramp-completion-multi-hop-methods incus-tramp-method)))
|
(add-to-list 'tramp-completion-multi-hop-methods incus-tramp-method)))
|
||||||
|
|
||||||
(provide 'incus-tramp)
|
(provide 'incus-tramp)
|
||||||
|
|||||||
Reference in New Issue
Block a user