Function: tramp-completion-dissect-file-name1
tramp-completion-dissect-file-name1 is a byte-compiled function
defined in tramp.el.gz.
Signature
(tramp-completion-dissect-file-name1 STRUCTURE NAME)
Documentation
Return a tramp-file-name structure for NAME matching STRUCTURE.
The structure consists of remote method, remote user, remote host and localname (filename on remote host).
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-completion-dissect-file-name1 (structure name)
"Return a `tramp-file-name' structure for NAME matching STRUCTURE.
The structure consists of remote method, remote user,
remote host and localname (filename on remote host)."
(save-match-data
(when (string-match (nth 0 structure) name)
(make-tramp-file-name
:method (and (nth 1 structure)
(match-string (nth 1 structure) name))
:user (and (nth 2 structure)
(match-string (nth 2 structure) name))
:host (and (nth 3 structure)
(match-string (nth 3 structure) name))))))