1 ;;; DO NOT MODIFY THIS FILE
2 (if (featurep 'tramp-loaddefs) (error "Feature tramp-loaddefs already loaded"))
4 ;;;### (autoloads (tramp-shell-quote-argument tramp-time-diff tramp-clear-passwd tramp-read-passwd tramp-make-tramp-temp-file tramp-local-host-p tramp-check-cached-permissions tramp-get-local-gid tramp-get-local-uid tramp-file-mode-from-int tramp-mode-string-to-int tramp-parse-putty tramp-parse-netrc tramp-parse-passwd tramp-parse-hosts tramp-parse-sknownhosts tramp-parse-shostkeys tramp-parse-sconfig tramp-parse-shosts tramp-parse-rhosts tramp-completion-mode-p tramp-set-completion-function tramp-tramp-file-p tramp-default-host-alist tramp-default-user-alist tramp-default-method-alist) "tramp" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp")
6 (defvar tramp-methods nil "\
7 Alist of methods for remote files.
8 This is a list of entries of the form (NAME PARAM1 PARAM2 ...).
9 Each NAME stands for a remote access method. Each PARAM is a
10 pair of the form (KEY VALUE). The following KEYs are defined:
11 * `tramp-remote-shell'
12 This specifies the shell to use on the remote host. This
13 MUST be a Bourne-like shell. It is normally not necessary to
14 set this to any value other than \"/bin/sh\": Tramp wants to
15 use a shell which groks tilde expansion, but it can search
16 for it. Also note that \"/bin/sh\" exists on all Unixen,
17 this might not be true for the value that you decide to use.
19 * `tramp-remote-shell-login'
20 This specifies the arguments to let `tramp-remote-shell' run
21 as a login shell. It defaults to (\"-l\"), but some shells,
22 like ksh, require another argument. See
23 `tramp-connection-properties' for a way to overwrite the
25 * `tramp-remote-shell-args'
26 For implementation of `shell-command', this specifies the
27 arguments to let `tramp-remote-shell' run a single command.
28 * `tramp-login-program'
29 This specifies the name of the program to use for logging in to the
30 remote host. This may be the name of rsh or a workalike program,
31 or the name of telnet or a workalike, or the name of su or a workalike.
33 This specifies the list of arguments to pass to the above
34 mentioned program. Please note that this is a list of list of arguments,
35 that is, normally you don't want to put \"-a -b\" or \"-f foo\"
36 here. Instead, you want a list (\"-a\" \"-b\"), or (\"-f\" \"foo\").
37 There are some patterns: \"%h\" in this list is replaced by the host
38 name, \"%u\" is replaced by the user name, \"%p\" is replaced by the
39 port number, and \"%%\" can be used to obtain a literal percent character.
40 If a list containing \"%h\", \"%u\" or \"%p\" is unchanged during
41 expansion (i.e. no host or no user specified), this list is not used as
42 argument. By this, arguments like (\"-l\" \"%u\") are optional.
43 \"%t\" is replaced by the temporary file name produced with
44 `tramp-make-tramp-temp-file'. \"%k\" indicates the keep-date
45 parameter of a program, if exists. \"%c\" adds additional
46 `tramp-ssh-controlmaster-options' options for the first hop.
48 A list of environment variables and their values, which will
49 be set when calling `tramp-login-program'.
51 When an asynchronous process is started, we know already that
52 the connection works. Therefore, we can pass additional
53 parameters to suppress diagnostic messages, in order not to
54 tamper the process output.
55 * `tramp-copy-program'
56 This specifies the name of the program to use for remotely copying
57 the file; this might be the absolute filename of scp or the name of
58 a workalike program. It is always applied on the local host.
60 This specifies the list of parameters to pass to the above mentioned
61 program, the hints for `tramp-login-args' also apply here.
63 A list of environment variables and their values, which will
64 be set when calling `tramp-copy-program'.
65 * `tramp-remote-copy-program'
66 The listener program to be applied on remote side, if needed.
67 * `tramp-remote-copy-args'
68 The list of parameters to pass to the listener program, the hints
69 for `tramp-login-args' also apply here. Additionally, \"%r\" could
70 be used here and in `tramp-copy-args'. It denotes a randomly
71 chosen port for the remote listener.
72 * `tramp-copy-keep-date'
73 This specifies whether the copying program when the preserves the
74 timestamp of the original file.
75 * `tramp-copy-keep-tmpfile'
76 This specifies whether a temporary local file shall be kept
77 for optimization reasons (useful for \"rsync\" methods).
78 * `tramp-copy-recursive'
79 Whether the operation copies directories recursively.
80 * `tramp-default-port'
81 The default port of a method is needed in case of gateway connections.
82 Additionally, it is used as indication which method is prepared for
85 As the attribute name says, additional arguments are specified here
86 when a method is applied via a gateway.
88 A directory on the remote host for temporary files. If not
89 specified, \"/tmp\" is taken as default.
90 * `tramp-connection-timeout'
91 This is the maximum time to be spent for establishing a connection.
92 In general, the global default value shall be used, but for
93 some methods, like \"su\" or \"sudo\", a shorter timeout
96 What does all this mean? Well, you should specify `tramp-login-program'
97 for all methods; this program is used to log in to the remote site. Then,
98 there are two ways to actually transfer the files between the local and the
99 remote side. One way is using an additional scp-like program. If you want
100 to do this, set `tramp-copy-program' in the method.
102 Another possibility for file transfer is inline transfer, i.e. the
103 file is passed through the same buffer used by `tramp-login-program'. In
104 this case, the file contents need to be protected since the
105 `tramp-login-program' might use escape codes or the connection might not
106 be eight-bit clean. Therefore, file contents are encoded for transit.
107 See the variables `tramp-local-coding-commands' and
108 `tramp-remote-coding-commands' for details.
110 So, to summarize: if the method is an out-of-band method, then you
111 must specify `tramp-copy-program' and `tramp-copy-args'. If it is an
112 inline method, then these two parameters should be nil. Methods which
113 are fit for gateways must have `tramp-default-port' at least.
117 When using `su' or `sudo' the phrase \"open connection to a remote
118 host\" sounds strange, but it is used nevertheless, for consistency.
119 No connection is opened to a remote host, but `su' or `sudo' is
120 started on the local host. You should specify a remote host
121 `localhost' or the name of the local host. Another host name is
122 useful only in combination with `tramp-default-proxies-alist'.")
124 (defvar tramp-default-method-alist nil "\
125 Default method to use for specific host/user pairs.
126 This is an alist of items (HOST USER METHOD). The first matching item
127 specifies the method to use for a file name which does not specify a
128 method. HOST and USER are regular expressions or nil, which is
129 interpreted as a regular expression which always matches. If no entry
130 matches, the variable `tramp-default-method' takes effect.
132 If the file name does not specify the user, lookup is done using the
133 empty string for the user name.
135 See `tramp-methods' for a list of possibilities for METHOD.")
137 (defvar tramp-default-user-alist nil "\
138 Default user to use for specific method/host pairs.
139 This is an alist of items (METHOD HOST USER). The first matching item
140 specifies the user to use for a file name which does not specify a
141 user. METHOD and USER are regular expressions or nil, which is
142 interpreted as a regular expression which always matches. If no entry
143 matches, the variable `tramp-default-user' takes effect.
145 If the file name does not specify the method, lookup is done using the
146 empty string for the method name.")
148 (defvar tramp-default-host-alist nil "\
149 Default host to use for specific method/user pairs.
150 This is an alist of items (METHOD USER HOST). The first matching item
151 specifies the host to use for a file name which does not specify a
152 host. METHOD and HOST are regular expressions or nil, which is
153 interpreted as a regular expression which always matches. If no entry
154 matches, the variable `tramp-default-host' takes effect.
156 If the file name does not specify the method, lookup is done using the
157 empty string for the method name.")
159 (defconst tramp-local-host-regexp (concat "\\`" (regexp-opt (list "localhost" "localhost6" (system-name) "127.0.0.1" "::1") t) "\\'") "\
160 Host names which are regarded as local host.")
162 (defconst tramp-prefix-domain-format "%" "\
163 String matching delimiter between user and domain names.")
165 (defconst tramp-prefix-domain-regexp (regexp-quote tramp-prefix-domain-format) "\
166 Regexp matching delimiter between user and domain names.
167 Derived from `tramp-prefix-domain-format'.")
169 (defvar tramp-foreign-file-name-handler-alist nil "\
170 Alist of elements (FUNCTION . HANDLER) for foreign methods handled specially.
171 If (FUNCTION FILENAME) returns non-nil, then all I/O on that file is done by
174 (autoload 'tramp-tramp-file-p "tramp" "\
175 Return t if NAME is a string with Tramp file name syntax.
180 (autoload 'tramp-set-completion-function "tramp" "\
181 Sets the list of completion functions for METHOD.
182 FUNCTION-LIST is a list of entries of the form (FUNCTION FILE).
183 The FUNCTION is intended to parse FILE according its syntax.
184 It might be a predefined FUNCTION, or a user defined FUNCTION.
185 For the list of predefined FUNCTIONs see `tramp-completion-function-alist'.
189 (tramp-set-completion-function
191 \\='((tramp-parse-sconfig \"/etc/ssh_config\")
192 (tramp-parse-sconfig \"~/.ssh/config\")))
194 arguments: (METHOD FUNCTION-LIST)
197 (autoload 'tramp-completion-mode-p "tramp" "\
198 Check, whether method / user name / host name completion is active.
203 (autoload 'tramp-parse-rhosts "tramp" "\
204 Return a list of (user host) tuples allowed to access.
205 Either user or host may be nil.
207 arguments: (FILENAME)
210 (autoload 'tramp-parse-shosts "tramp" "\
211 Return a list of (user host) tuples allowed to access.
214 arguments: (FILENAME)
217 (autoload 'tramp-parse-sconfig "tramp" "\
218 Return a list of (user host) tuples allowed to access.
221 arguments: (FILENAME)
224 (autoload 'tramp-parse-shostkeys "tramp" "\
225 Return a list of (user host) tuples allowed to access.
231 (autoload 'tramp-parse-sknownhosts "tramp" "\
232 Return a list of (user host) tuples allowed to access.
238 (autoload 'tramp-parse-hosts "tramp" "\
239 Return a list of (user host) tuples allowed to access.
242 arguments: (FILENAME)
245 (autoload 'tramp-parse-passwd "tramp" "\
246 Return a list of (user host) tuples allowed to access.
247 Host is always \"localhost\".
249 arguments: (FILENAME)
252 (autoload 'tramp-parse-netrc "tramp" "\
253 Return a list of (user host) tuples allowed to access.
256 arguments: (FILENAME)
259 (autoload 'tramp-parse-putty "tramp" "\
260 Return a list of (user host) tuples allowed to access.
263 arguments: (REGISTRY-OR-DIRNAME)
266 (autoload 'tramp-mode-string-to-int "tramp" "\
267 Converts a ten-letter `drwxrwxrwx'-style mode string into mode bits.
269 arguments: (MODE-STRING)
272 (autoload 'tramp-file-mode-from-int "tramp" "\
273 Turn an integer representing a file mode into an ls(1)-like string.
278 (autoload 'tramp-get-local-uid "tramp" "\
281 arguments: (ID-FORMAT)
284 (autoload 'tramp-get-local-gid "tramp" "\
287 arguments: (ID-FORMAT)
290 (autoload 'tramp-check-cached-permissions "tramp" "\
291 Check `file-attributes' caches for VEC.
292 Return t if according to the cache access type ACCESS is known to
295 arguments: (VEC ACCESS)
298 (autoload 'tramp-local-host-p "tramp" "\
299 Return t if this points to the local host, nil otherwise.
304 (autoload 'tramp-make-tramp-temp-file "tramp" "\
305 Create a temporary file on the remote host identified by VEC.
306 Return the local name of the temporary file.
311 (autoload 'tramp-read-passwd "tramp" "\
312 Read a password from user (compat function).
313 Consults the auth-source package.
314 Invokes `password-read' if available, `read-passwd' else.
316 arguments: (PROC &optional PROMPT)
319 (autoload 'tramp-clear-passwd "tramp" "\
320 Clear password cache for connection related to VEC.
325 (autoload 'tramp-time-diff "tramp" "\
326 Return the difference between the two times, in seconds.
327 T1 and T2 are time values (as returned by `current-time' for example).
332 (autoload 'tramp-shell-quote-argument "tramp" "\
333 Similar to `shell-quote-argument', but groks newlines.
334 Only works for Bourne-like shells.
341 ;;;### (autoloads (tramp-adb-parse-device-names tramp-adb-file-name-handler tramp-adb-prompt tramp-adb-connect-if-not-connected tramp-adb-program) "tramp-adb" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-adb")
343 (defvar tramp-adb-program "adb" "\
344 Name of the Android Debug Bridge program.")
346 (defvar tramp-adb-connect-if-not-connected nil "\
347 Try to run `adb connect' if provided device is not connected currently.
348 It is used for TCP/IP devices.")
350 (defconst tramp-adb-method "adb" "\
351 *When this method name is used, forward all calls to Android Debug Bridge.")
353 (defvar tramp-adb-prompt "^\\(?:[[:digit:]]*|?\\)?\\(?:[[:alnum:]
\e;[]*@[[:alnum:]]*[^#\\$]*\\)?[#\\$][[:space:]]" "\
354 Regexp used as prompt in almquist shell.")
356 (add-to-list 'tramp-methods (backquote ((\, tramp-adb-method) (tramp-tmpdir "/data/local/tmp") (tramp-default-port 5555))))
358 (add-to-list 'tramp-default-host-alist (backquote ((\, tramp-adb-method) nil "")))
360 (eval-after-load 'tramp '(tramp-set-completion-function tramp-adb-method '((tramp-adb-parse-device-names ""))))
362 (add-to-list 'tramp-foreign-file-name-handler-alist (cons 'tramp-adb-file-name-p 'tramp-adb-file-name-handler))
364 (defsubst tramp-adb-file-name-p (filename) "\
365 Check if it's a filename for ADB." (let ((v (tramp-dissect-file-name filename))) (string= (tramp-file-name-method v) tramp-adb-method)))
367 (autoload 'tramp-adb-file-name-handler "tramp-adb" "\
368 Invoke the ADB handler for OPERATION.
369 First arg specifies the OPERATION, second arg is a list of arguments to
370 pass to the OPERATION.
372 arguments: (OPERATION &rest ARGS)
375 (autoload 'tramp-adb-parse-device-names "tramp-adb" "\
376 Return a list of (nil host) tuples allowed to access.
383 ;;;### (autoloads (tramp-parse-connection-properties tramp-list-connections tramp-cache-print tramp-flush-connection-property tramp-connection-property-p tramp-set-connection-property tramp-get-connection-property tramp-flush-directory-property tramp-flush-file-property tramp-set-file-property tramp-get-file-property tramp-connection-properties) "tramp-cache" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-cache")
385 (defvar tramp-cache-data (make-hash-table :test 'equal) "\
386 Hash table for remote files properties.")
388 (defvar tramp-connection-properties nil "\
389 List of static connection properties.
390 Every entry has the form (REGEXP PROPERTY VALUE). The regexp
391 matches remote file names. It can be nil. PROPERTY is a string,
392 and VALUE the corresponding value. They are used, if there is no
393 matching entry for PROPERTY in `tramp-cache-data'. For more
394 details see the info pages.")
396 (autoload 'tramp-get-file-property "tramp-cache" "\
397 Get the PROPERTY of FILE from the cache context of KEY.
398 Returns DEFAULT if not set.
400 arguments: (KEY FILE PROPERTY DEFAULT)
403 (autoload 'tramp-set-file-property "tramp-cache" "\
404 Set the PROPERTY of FILE to VALUE, in the cache context of KEY.
407 arguments: (KEY FILE PROPERTY VALUE)
410 (autoload 'tramp-flush-file-property "tramp-cache" "\
411 Remove all properties of FILE in the cache context of KEY.
413 arguments: (KEY FILE)
416 (autoload 'tramp-flush-directory-property "tramp-cache" "\
417 Remove all properties of DIRECTORY in the cache context of KEY.
418 Remove also properties of all files in subdirectories.
420 arguments: (KEY DIRECTORY)
423 (autoload 'tramp-get-connection-property "tramp-cache" "\
424 Get the named PROPERTY for the connection.
425 KEY identifies the connection, it is either a process or a vector.
426 If the value is not set for the connection, returns DEFAULT.
428 arguments: (KEY PROPERTY DEFAULT)
431 (autoload 'tramp-set-connection-property "tramp-cache" "\
432 Set the named PROPERTY of a connection to VALUE.
433 KEY identifies the connection, it is either a process or a vector.
434 PROPERTY is set persistent when KEY is a vector.
436 arguments: (KEY PROPERTY VALUE)
439 (autoload 'tramp-connection-property-p "tramp-cache" "\
440 Check whether named PROPERTY of a connection is defined.
441 KEY identifies the connection, it is either a process or a vector.
443 arguments: (KEY PROPERTY)
446 (autoload 'tramp-flush-connection-property "tramp-cache" "\
447 Remove all properties identified by KEY.
448 KEY identifies the connection, it is either a process or a vector.
453 (autoload 'tramp-cache-print "tramp-cache" "\
454 Print hash table TABLE.
459 (autoload 'tramp-list-connections "tramp-cache" "\
460 Return a list of all known connection vectors according to `tramp-cache'.
465 (autoload 'tramp-parse-connection-properties "tramp-cache" "\
466 Return a list of (user host) tuples allowed to access for METHOD.
467 This function is added always in `tramp-get-completion-function'
468 for all methods. Resulting data are derived from connection history.
475 ;;;### (autoloads (tramp-bug tramp-version tramp-cleanup-all-buffers tramp-cleanup-all-connections tramp-cleanup-this-connection tramp-cleanup-connection) "tramp-cmds" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-cmds")
477 (autoload 'tramp-cleanup-connection "tramp-cmds" "\
478 Flush all connection related objects.
479 This includes password cache, file cache, connection cache,
480 buffers. KEEP-DEBUG non-nil preserves the debug buffer.
481 KEEP-PASSWORD non-nil preserves the password cache.
482 When called interactively, a Tramp connection has to be selected.
484 arguments: (VEC &optional KEEP-DEBUG KEEP-PASSWORD)
487 (autoload 'tramp-cleanup-this-connection "tramp-cmds" "\
488 Flush all connection related objects of the current buffer's connection.
493 (autoload 'tramp-cleanup-all-connections "tramp-cmds" "\
494 Flush all Tramp internal objects.
495 This includes password cache, file cache, connection cache, buffers.
500 (autoload 'tramp-cleanup-all-buffers "tramp-cmds" "\
501 Kill all remote buffers.
506 (autoload 'tramp-version "tramp-cmds" "\
507 Print version number of tramp.el in minibuffer or current buffer.
512 (autoload 'tramp-bug "tramp-cmds" "\
513 Submit a bug report to the Tramp developers.
520 ;;;### (autoloads (tramp-efs-file-name-handler) "tramp-efs" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-efs")
522 (defconst tramp-efs-method "ftp" "\
523 Name of the method invoking EFS.")
525 (when (featurep 'xemacs) (add-to-list 'tramp-methods (cons tramp-efs-method nil)) (add-to-list 'tramp-default-method-alist (list "\\`ftp\\." nil tramp-efs-method)) (add-to-list 'tramp-default-method-alist (list nil "\\`\\(anonymous\\|ftp\\)\\'" tramp-efs-method)))
527 (eval-after-load 'tramp '(tramp-set-completion-function tramp-efs-method '((tramp-parse-netrc "~/.netrc"))))
529 (autoload 'tramp-efs-file-name-handler "tramp-efs" "\
530 Invoke the EFS handler for OPERATION.
531 First arg specifies the OPERATION, second args is a list of arguments to
532 pass to the OPERATION.
534 arguments: (OPERATION &rest ARGS)
537 (defsubst tramp-efs-file-name-p (filename) "\
538 Check if it's a filename that should be forwarded to EFS." (when (string-match (nth 0 tramp-file-name-structure) filename) (string= (tramp-file-name-method (tramp-dissect-file-name filename)) tramp-efs-method)))
540 (when (featurep 'xemacs) (add-to-list 'tramp-foreign-file-name-handler-alist (cons 'tramp-efs-file-name-p 'tramp-efs-file-name-handler)))
544 ;;;### (autoloads (tramp-sh-file-name-handler tramp-sh-extra-args tramp-remote-process-environment tramp-remote-path tramp-use-ssh-controlmaster-options tramp-histfile-override tramp-terminal-type tramp-copy-size-limit tramp-inline-compress-start-size) "tramp-sh" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-sh")
546 (defvar tramp-inline-compress-start-size 4096 "\
547 The minimum size of compressing where inline transfer.
548 When inline transfer, compress transferred data of file
549 whose size is this value or above (up to `tramp-copy-size-limit').
550 If it is nil, no compression at all will be applied.")
552 (defvar tramp-copy-size-limit 10240 "\
553 The maximum file size where inline copying is preferred over an out-of-the-band copy.
554 If it is nil, out-of-the-band copy will be used without a check.")
556 (defvar tramp-terminal-type "dumb" "\
557 Value of TERM environment variable for logging in to remote host.
558 Because Tramp wants to parse the output of the remote shell, it is easily
559 confused by ANSI color escape sequences and suchlike. Often, shell init
560 files conditionalize this setup based on the TERM environment variable.")
562 (defvar tramp-histfile-override ".tramp_history" "\
563 When invoking a shell, override the HISTFILE with this value.
564 When setting to a string, it redirects the shell history to that
565 file. Be careful when setting to \"/dev/null\"; this might
566 result in undesired results when using \"bash\" as shell.
568 The value t, the default value, unsets any setting of HISTFILE,
569 and sets both HISTFILESIZE and HISTSIZE to 0. If you set this
570 variable to nil, however, the *override* is disabled, so the
571 history will go to the default storage location,
572 e.g. \"$HOME/.sh_history\".")
574 (defconst tramp-color-escape-sequence-regexp "
\e[[;0-9]+m" "\
575 Escape sequences produced by the \"ls\" command.")
577 (defconst tramp-initial-end-of-output "#$ " "\
578 Prompt when establishing a connection.")
580 (defvar tramp-use-ssh-controlmaster-options t "\
581 Whether to use `tramp-ssh-controlmaster-options'.")
583 (add-to-list 'tramp-methods '("rcp" (tramp-login-program "rsh") (tramp-login-args (("%h") ("-l" "%u"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "rcp") (tramp-copy-args (("-p" "%k") ("-r"))) (tramp-copy-keep-date t) (tramp-copy-recursive t)))
585 (add-to-list 'tramp-methods '("remcp" (tramp-login-program "remsh") (tramp-login-args (("%h") ("-l" "%u"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "rcp") (tramp-copy-args (("-p" "%k"))) (tramp-copy-keep-date t)))
587 (add-to-list 'tramp-methods '("scp" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("%h"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "scp") (tramp-copy-args (("-P" "%p") ("-p" "%k") ("-q") ("-r") ("%c"))) (tramp-copy-keep-date t) (tramp-copy-recursive t) (tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") ("-o" "UserKnownHostsFile=/dev/null") ("-o" "StrictHostKeyChecking=no"))) (tramp-default-port 22)))
589 (add-to-list 'tramp-methods '("scpx" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("-t" "-t") ("%h") ("/bin/sh"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "scp") (tramp-copy-args (("-P" "%p") ("-p" "%k") ("-q") ("-r") ("%c"))) (tramp-copy-keep-date t) (tramp-copy-recursive t) (tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") ("-o" "UserKnownHostsFile=/dev/null") ("-o" "StrictHostKeyChecking=no"))) (tramp-default-port 22)))
591 (add-to-list 'tramp-methods '("rsync" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("%h"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "rsync") (tramp-copy-args (("-t" "%k") ("-r"))) (tramp-copy-env (("RSYNC_RSH") ("ssh" "%c"))) (tramp-copy-keep-date t) (tramp-copy-keep-tmpfile t) (tramp-copy-recursive t)))
593 (add-to-list 'tramp-methods '("rsh" (tramp-login-program "rsh") (tramp-login-args (("%h") ("-l" "%u"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c"))))
595 (add-to-list 'tramp-methods '("remsh" (tramp-login-program "remsh") (tramp-login-args (("%h") ("-l" "%u"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c"))))
597 (add-to-list 'tramp-methods '("ssh" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("%h"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") ("-o" "UserKnownHostsFile=/dev/null") ("-o" "StrictHostKeyChecking=no"))) (tramp-default-port 22)))
599 (add-to-list 'tramp-methods '("sshx" (tramp-login-program "ssh") (tramp-login-args (("-l" "%u") ("-p" "%p") ("%c") ("-e" "none") ("-t" "-t") ("%h") ("/bin/sh"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-gw-args (("-o" "GlobalKnownHostsFile=/dev/null") ("-o" "UserKnownHostsFile=/dev/null") ("-o" "StrictHostKeyChecking=no"))) (tramp-default-port 22)))
601 (add-to-list 'tramp-methods '("telnet" (tramp-login-program "telnet") (tramp-login-args (("%h") ("%p") ("2>/dev/null"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-default-port 23)))
603 (add-to-list 'tramp-methods '("nc" (tramp-login-program "telnet") (tramp-login-args (("%h") ("%p") ("2>/dev/null"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "nc") (tramp-copy-args (("-w" "1") ("-v") ("%h") ("%r"))) (tramp-remote-copy-program "nc") (tramp-remote-copy-args (("-l") ("-p" "%r") ("2>/dev/null"))) (tramp-default-port 23)))
605 (add-to-list 'tramp-methods '("su" (tramp-login-program "su") (tramp-login-args (("-") ("%u"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-connection-timeout 10)))
607 (add-to-list 'tramp-methods '("sudo" (tramp-login-program "sudo") (tramp-login-args (("-u" "%u") ("-s") ("-H") ("-p" "P\"\"a\"\"s\"\"s\"\"w\"\"o\"\"r\"\"d\"\":"))) (tramp-login-env (("SHELL") ("/bin/sh"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-connection-timeout 10)))
609 (add-to-list 'tramp-methods '("ksu" (tramp-login-program "ksu") (tramp-login-args (("%u") ("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-connection-timeout 10)))
611 (add-to-list 'tramp-methods '("krlogin" (tramp-login-program "krlogin") (tramp-login-args (("%h") ("-l" "%u") ("-x"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c"))))
613 (add-to-list 'tramp-methods (backquote ("plink" (tramp-login-program "plink") (tramp-login-args (("-l" "%u") ("-P" "%p") ("-ssh") ("-t") ("%h") ("\"") ((\, (format "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'" tramp-terminal-type tramp-initial-end-of-output))) ("/bin/sh") ("\""))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-default-port 22))))
615 (add-to-list 'tramp-methods (backquote ("plinkx" (tramp-login-program "plink") (tramp-login-args (("-load") ("%h") ("-t") ("\"") ((\, (format "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'" tramp-terminal-type tramp-initial-end-of-output))) ("/bin/sh") ("\""))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")))))
617 (add-to-list 'tramp-methods (backquote ("pscp" (tramp-login-program "plink") (tramp-login-args (("-l" "%u") ("-P" "%p") ("-ssh") ("-t") ("%h") ("\"") ((\, (format "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'" tramp-terminal-type tramp-initial-end-of-output))) ("/bin/sh") ("\""))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "pscp") (tramp-copy-args (("-l" "%u") ("-P" "%p") ("-scp") ("-p" "%k") ("-q") ("-r"))) (tramp-copy-keep-date t) (tramp-copy-recursive t) (tramp-default-port 22))))
619 (add-to-list 'tramp-methods (backquote ("psftp" (tramp-login-program "plink") (tramp-login-args (("-l" "%u") ("-P" "%p") ("-ssh") ("-t") ("%h") ("\"") ((\, (format "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'" tramp-terminal-type tramp-initial-end-of-output))) ("/bin/sh") ("\""))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")) (tramp-copy-program "pscp") (tramp-copy-args (("-l" "%u") ("-P" "%p") ("-sftp") ("-p" "%k") ("-q") ("-r"))) (tramp-copy-keep-date t) (tramp-copy-recursive t))))
621 (add-to-list 'tramp-methods '("fcp" (tramp-login-program "fsh") (tramp-login-args (("%h") ("-l" "%u") ("sh" "-i"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-i") ("-c")) (tramp-copy-program "fcp") (tramp-copy-args (("-p" "%k"))) (tramp-copy-keep-date t)))
623 (add-to-list 'tramp-default-method-alist (backquote ((\, tramp-local-host-regexp) "\\`root\\'" "su")))
625 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'")) nil "root")))
627 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" (regexp-opt '("rcp" "remcp" "rsh" "telnet" "nc" "krlogin" "fcp")) "\\'")) nil (\, (user-login-name)))))
629 (defconst tramp-completion-function-alist-rsh '((tramp-parse-rhosts "/etc/hosts.equiv") (tramp-parse-rhosts "~/.rhosts")) "\
630 Default list of (FUNCTION FILE) pairs to be examined for rsh methods.")
632 (defconst tramp-completion-function-alist-ssh '((tramp-parse-rhosts "/etc/hosts.equiv") (tramp-parse-rhosts "/etc/shosts.equiv") (tramp-parse-shosts "/etc/ssh_known_hosts") (tramp-parse-sconfig "/etc/ssh_config") (tramp-parse-shostkeys "/etc/ssh2/hostkeys") (tramp-parse-sknownhosts "/etc/ssh2/knownhosts") (tramp-parse-rhosts "~/.rhosts") (tramp-parse-rhosts "~/.shosts") (tramp-parse-shosts "~/.ssh/known_hosts") (tramp-parse-sconfig "~/.ssh/config") (tramp-parse-shostkeys "~/.ssh2/hostkeys") (tramp-parse-sknownhosts "~/.ssh2/knownhosts")) "\
633 Default list of (FUNCTION FILE) pairs to be examined for ssh methods.")
635 (defconst tramp-completion-function-alist-telnet '((tramp-parse-hosts "/etc/hosts")) "\
636 Default list of (FUNCTION FILE) pairs to be examined for telnet methods.")
638 (defconst tramp-completion-function-alist-su '((tramp-parse-passwd "/etc/passwd")) "\
639 Default list of (FUNCTION FILE) pairs to be examined for su methods.")
641 (defconst tramp-completion-function-alist-putty (backquote ((tramp-parse-putty (\, (if (memq system-type '(windows-nt)) "HKEY_CURRENT_USER\\Software\\SimonTatham\\PuTTY\\Sessions" "~/.putty/sessions"))))) "\
642 Default list of (FUNCTION REGISTRY) pairs to be examined for putty sessions.")
644 (eval-after-load 'tramp '(progn (tramp-set-completion-function "rcp" tramp-completion-function-alist-rsh) (tramp-set-completion-function "remcp" tramp-completion-function-alist-rsh) (tramp-set-completion-function "scp" tramp-completion-function-alist-ssh) (tramp-set-completion-function "scpx" tramp-completion-function-alist-ssh) (tramp-set-completion-function "rsync" tramp-completion-function-alist-ssh) (tramp-set-completion-function "rsh" tramp-completion-function-alist-rsh) (tramp-set-completion-function "remsh" tramp-completion-function-alist-rsh) (tramp-set-completion-function "ssh" tramp-completion-function-alist-ssh) (tramp-set-completion-function "sshx" tramp-completion-function-alist-ssh) (tramp-set-completion-function "telnet" tramp-completion-function-alist-telnet) (tramp-set-completion-function "nc" tramp-completion-function-alist-telnet) (tramp-set-completion-function "su" tramp-completion-function-alist-su) (tramp-set-completion-function "sudo" tramp-completion-function-alist-su) (tramp-set-completion-function "ksu" tramp-completion-function-alist-su) (tramp-set-completion-function "krlogin" tramp-completion-function-alist-rsh) (tramp-set-completion-function "plink" tramp-completion-function-alist-ssh) (tramp-set-completion-function "plinkx" tramp-completion-function-alist-putty) (tramp-set-completion-function "pscp" tramp-completion-function-alist-ssh) (tramp-set-completion-function "psftp" tramp-completion-function-alist-ssh) (tramp-set-completion-function "fcp" tramp-completion-function-alist-ssh)))
646 (defvar tramp-remote-path '(tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/sbin" "/opt/local/bin") "\
647 List of directories to search for executables on remote host.
648 For every remote host, this variable will be set buffer local,
649 keeping the list of existing directories on that host.
651 You can use `~' in this list, but when searching for a shell which groks
652 tilde expansion, all directory names starting with `~' will be ignored.
654 `Default Directories' represent the list of directories given by
655 the command \"getconf PATH\". It is recommended to use this
656 entry on top of this list, because these are the default
657 directories for POSIX compatible commands. On remote hosts which
658 do not offer the getconf command (like cygwin), the value
659 \"/bin:/usr/bin\" is used instead of.
661 `Private Directories' are the settings of the $PATH environment,
662 as given in your `~/.profile'.")
664 (defvar tramp-remote-process-environment (backquote ("TMOUT=0" "LC_CTYPE=''" (\, (format "TERM=%s" tramp-terminal-type)) (\, (format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version)) "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat" "autocorrect=" "correct=")) "\
665 List of environment variables to be set on the remote host.
667 Each element should be a string of the form ENVVARNAME=VALUE. An
668 entry ENVVARNAME= disables the corresponding environment variable,
669 which might have been set in the init files like ~/.profile.
671 Special handling is applied to the PATH environment, which should
672 not be set here. Instead, it should be set via `tramp-remote-path'.")
674 (defvar tramp-sh-extra-args '(("/bash\\'" . "-norc -noprofile")) "\
675 Alist specifying extra arguments to pass to the remote shell.
676 Entries are (REGEXP . ARGS) where REGEXP is a regular expression
677 matching the shell file name and ARGS is a string specifying the
680 This variable is only used when Tramp needs to start up another shell
681 for tilde expansion. The extra arguments should typically prevent the
682 shell from reading its init file.")
684 (add-to-list 'tramp-foreign-file-name-handler-alist '(identity . tramp-sh-file-name-handler) 'append)
686 (autoload 'tramp-sh-file-name-handler "tramp-sh" "\
687 Invoke remote-shell Tramp file name handler.
688 Fall back to normal file name handler if no Tramp handler exists.
690 arguments: (OPERATION &rest ARGS)
695 ;;;### (autoloads (tramp-smb-file-name-handler tramp-smb-winexe-shell-command-switch tramp-smb-winexe-shell-command tramp-smb-winexe-program tramp-smb-conf tramp-smb-acl-program tramp-smb-program) "tramp-smb" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-smb")
697 (defconst tramp-smb-method "smb" "\
698 Method to connect SAMBA and M$ SMB servers.")
700 (unless (memq system-type '(cygwin windows-nt)) (add-to-list 'tramp-methods (backquote ((\, tramp-smb-method) (tramp-remote-shell "") (tramp-tmpdir "/C$/Temp")))))
702 (add-to-list 'tramp-default-method-alist (backquote (nil (\, tramp-prefix-domain-regexp) (\, tramp-smb-method))))
704 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" tramp-smb-method "\\'")) nil nil)))
706 (eval-after-load 'tramp '(tramp-set-completion-function tramp-smb-method '((tramp-parse-netrc "~/.netrc"))))
708 (defvar tramp-smb-program "smbclient" "\
709 Name of SMB client to run.")
711 (defvar tramp-smb-acl-program "smbcacls" "\
712 Name of SMB acls to run.")
714 (defvar tramp-smb-conf "/dev/null" "\
715 Path of the smb.conf file.
716 If it is nil, no smb.conf will be added to the `tramp-smb-program'
717 call, letting the SMB client use the default one.")
719 (defvar tramp-smb-winexe-program "winexe" "\
720 Name of winexe client to run.
721 If it isn't found in the local $PATH, the absolute path of winexe
722 shall be given. This is needed for remote processes.")
724 (defvar tramp-smb-winexe-shell-command "powershell.exe" "\
725 Shell to be used for processes on remote machines.
726 This must be Powershell V2 compatible.")
728 (defvar tramp-smb-winexe-shell-command-switch "-file -" "\
729 Command switch used together with `tramp-smb-winexe-shell-command'.
730 This can be used to disable echo etc.")
732 (defsubst tramp-smb-file-name-p (filename) "\
733 Check if it's a filename for SMB servers." (string= (tramp-file-name-method (tramp-dissect-file-name filename)) tramp-smb-method))
735 (autoload 'tramp-smb-file-name-handler "tramp-smb" "\
736 Invoke the SMB related OPERATION.
737 First arg specifies the OPERATION, second arg is a list of arguments to
738 pass to the OPERATION.
740 arguments: (OPERATION &rest ARGS)
743 (unless (memq system-type '(cygwin windows-nt)) (add-to-list 'tramp-foreign-file-name-handler-alist (cons 'tramp-smb-file-name-p 'tramp-smb-file-name-handler)))
747 ;;;### (autoloads (tramp-uuencode-region) "tramp-uu" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-uu")
749 (autoload 'tramp-uuencode-region "tramp-uu" "\
750 UU-encode the region between BEG and END.
757 (defconst tramp-version "2.2.13" "\
758 This version of Tramp.")
760 (defconst tramp-bug-report-address "tramp-devel@gnu.org" "\
761 Email address to send bug reports to.")
763 (defconst tramp-version "2.2.11" "\
764 This version of Tramp.")
766 (defconst tramp-bug-report-address "tramp-devel@gnu.org" "\
767 Email address to send bug reports to.")
769 (provide 'tramp-loaddefs)