diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/tramp.el | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 934b5dd9d9f..b044762b70d 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -211,27 +211,35 @@ pair of the form (KEY VALUE). The following KEYs are defined: | |||
| 211 | or the name of telnet or a workalike, or the name of su or a workalike. | 211 | or the name of telnet or a workalike, or the name of su or a workalike. |
| 212 | 212 | ||
| 213 | * `tramp-login-args' | 213 | * `tramp-login-args' |
| 214 | This specifies the list of arguments to pass to the above | 214 | This specifies a list of lists of arguments to pass to the |
| 215 | mentioned program. Please note that this is a list of list | 215 | above mentioned program. You normally want to put each |
| 216 | of arguments, that is, normally you don't want to put \"-a | 216 | argument in an individual string, i.e. |
| 217 | -b\" or \"-f foo\" here. Instead, you want a list (\"-a\" | 217 | (\"-a\" \"-b\") rather than (\"-a -b\"). |
| 218 | \"-b\"), or (\"-f\" \"foo\"). There are some patterns: | ||
| 219 | 218 | ||
| 220 | - \"%h\" in this list is replaced by the host name | 219 | \"%\" followed by a letter are expanded in the arguments as |
| 220 | follows: | ||
| 221 | |||
| 222 | - \"%h\" is replaced by the host name | ||
| 221 | - \"%u\" is replaced by the user name | 223 | - \"%u\" is replaced by the user name |
| 222 | - \"%p\" is replaced by the port number | 224 | - \"%p\" is replaced by the port number |
| 223 | - \"%%\" can be used to obtain a literal percent character. | 225 | - \"%%\" can be used to obtain a literal percent character. |
| 224 | 226 | ||
| 225 | If a list containing \"%h\", \"%u\" or \"%p\" is unchanged | 227 | If a sub-list containing \"%h\", \"%u\" or \"%p\" is |
| 226 | during expansion (i.e. no host, no user or no port | 228 | unchanged after expansion (i.e. no host, no user or no port |
| 227 | specified), this list is not used as argument. By this, | 229 | were specified), that sublist is not used. For e.g. |
| 228 | arguments like (\"-l\" \"%u\") are optional. | 230 | |
| 231 | '((\"-a\" \"-b\") (\"-l\" \"%u\")) | ||
| 232 | |||
| 233 | that means that (\"-l\" \"%u\") is used only if the user was | ||
| 234 | specified, and it is thus effectively optional. | ||
| 235 | |||
| 236 | Other expansions are: | ||
| 229 | 237 | ||
| 230 | - \"%l\" is replaced by the login shell `tramp-remote-shell' | 238 | - \"%l\" is replaced by the login shell `tramp-remote-shell' |
| 231 | and its parameters. | 239 | and its parameters. |
| 232 | - \"%t\" is replaced by the temporary file name produced with | 240 | - \"%t\" is replaced by the temporary file name produced with |
| 233 | `tramp-make-tramp-temp-file'. | 241 | `tramp-make-tramp-temp-file'. |
| 234 | - \"%k\" indicates the keep-date parameter of a program, if exists | 242 | - \"%k\" indicates the keep-date parameter of a program, if exists. |
| 235 | - \"%c\" adds additional `tramp-ssh-controlmaster-options' | 243 | - \"%c\" adds additional `tramp-ssh-controlmaster-options' |
| 236 | options for the first hop. | 244 | options for the first hop. |
| 237 | 245 | ||