Improve Tramp host name completion
* lisp/net/tramp-rclone.el (tramp-default-host-alist): Add empty host. * lisp/net/tramp.el (tramp-parse-auth-sources): Require :port.
This commit is contained in:
parent
49f6243027
commit
7cdf4004c8
2 changed files with 10 additions and 10 deletions
|
@ -50,16 +50,15 @@
|
|||
|
||||
;;;###tramp-autoload
|
||||
(tramp--with-startup
|
||||
(add-to-list
|
||||
'tramp-methods
|
||||
`(,tramp-rclone-method
|
||||
(tramp-mount-args nil)
|
||||
(tramp-copyto-args nil)
|
||||
(tramp-moveto-args nil)
|
||||
(tramp-about-args ("--full")))))
|
||||
(add-to-list 'tramp-methods
|
||||
`(,tramp-rclone-method
|
||||
(tramp-mount-args nil)
|
||||
(tramp-copyto-args nil)
|
||||
(tramp-moveto-args nil)
|
||||
(tramp-about-args ("--full"))))
|
||||
|
||||
(add-to-list 'tramp-default-host-alist `(,tramp-rclone-method nil ""))
|
||||
|
||||
;;;###tramp-autoload
|
||||
(tramp--with-startup
|
||||
(tramp-set-completion-function
|
||||
tramp-rclone-method '((tramp-rclone-parse-device-names ""))))
|
||||
|
||||
|
|
|
@ -2867,7 +2867,8 @@ for all methods. Resulting data are derived from default settings."
|
|||
(and tramp-completion-use-auth-sources
|
||||
(mapcar
|
||||
(lambda (x) `(,(plist-get x :user) ,(plist-get x :host)))
|
||||
(auth-source-search :port method :max most-positive-fixnum))))
|
||||
(auth-source-search
|
||||
:port method :require '(:port) :max most-positive-fixnum))))
|
||||
|
||||
;; Generic function.
|
||||
(defun tramp-parse-group (regexp match-level skip-regexp)
|
||||
|
|
Loading…
Add table
Reference in a new issue