Thierry Volpiatto <[email protected]> writes: >> You only need to wrap around `file-name-all-completions' call. > I don't use this.
"or whatever you apply to get completion candidates" :-) > I use `tramp-dissect-file-name' since some years now with no problems: > (this is now called with non-essential let-bound to t) > > (defun helm-create-tramp-name (fname) > "Build filename for `helm-pattern' like /su:: or /sudo::." > (apply #'tramp-make-tramp-file-name > (loop with v = (tramp-dissect-file-name fname) > for i across v collect i))) > > So what should I use instead ? In your special case (since you don't use `file-name-all-completions') I cannot tell what to use else. I just wanted to point out, that there's no guarantee that `tramp-dissect-file-name' will always do it the same way. Honestly, I even don't understand what `helm-create-tramp-name' is good for ... If you only want to expand default values of a Tramp file name, then you could do like this (using "/su::" as example): (concat (file-remote-p "/su::") (file-remote-p "/su::" 'localname)) Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
