tramp-completion-function-alist is intended to
customize which files are taken into account for user and host name
completion (see File name completion). For every method, it keeps
a set of configuration files, accompanied by a Lisp function able to
parse that file. Entries in
have the form (method pair1 pair2 ...).
Each pair is composed of (function file). function is responsible to extract user names and host names from file for completion. There are two functions which access this variable:
This function returns the list of completion functions for method.
Example:(tramp-get-completion-function "rsh") ⇒ ((tramp-parse-rhosts "/etc/hosts.equiv") (tramp-parse-rhosts "~/.rhosts"))
This function sets function-list as list of completion functions for method.
Example:(tramp-set-completion-function "ssh" '((tramp-parse-sconfig "/etc/ssh_config") (tramp-parse-sconfig "~/.ssh/config"))) ⇒ ((tramp-parse-sconfig "/etc/ssh_config") (tramp-parse-sconfig "~/.ssh/config"))
The following predefined functions parsing configuration files exist:
Hostentries in ~/.ssh/config style files.
If you want to keep your own data in a file, with your own structure, you might provide such a function as well. This function must meet the following conventions: