Fix Bug#30904

* lisp/net/tramp.el (tramp-dissect-file-name): Adapt docstring.  (Bug#30904)
This commit is contained in:
Michael Albinus 2018-03-22 09:37:48 +01:00
parent cae9e0fa03
commit 0a53c71fe2

View file

@ -1339,11 +1339,13 @@ This is HOST, if non-nil. Otherwise, it is `tramp-default-host'."
tramp-default-host)) tramp-default-host))
(defun tramp-dissect-file-name (name &optional nodefault) (defun tramp-dissect-file-name (name &optional nodefault)
"Return a `tramp-file-name' structure. "Return a `tramp-file-name' structure of NAME, a remote file name.
The structure consists of remote method, remote user, remote host, The structure consists of method, user, domain, host, port,
localname (file name on remote host) and hop. If NODEFAULT is localname (file name on remote host), and hop.
non-nil, the file name parts are not expanded to their default
values." Unless NODEFAULT is non-nil, method, user and host are expanded
to their default values. For the other file name parts, no
default values are used."
(save-match-data (save-match-data
(unless (tramp-tramp-file-p name) (unless (tramp-tramp-file-p name)
(tramp-compat-user-error nil "Not a Tramp file name: \"%s\"" name)) (tramp-compat-user-error nil "Not a Tramp file name: \"%s\"" name))