Initial Commit
[packages] / xemacs-packages / tramp / lisp / tramp-loaddefs.el
1 ;;; DO NOT MODIFY THIS FILE
2 (if (featurep 'tramp-loaddefs) (error "Feature tramp-loaddefs already loaded"))
3 \f
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")
5
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.
18     You Have Been Warned.
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
24     default value.
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.
32   * `tramp-login-args'
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.
47   * `tramp-login-env'
48      A list of environment variables and their values, which will
49      be set when calling `tramp-login-program'.
50   * `tramp-async-args'
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.
59   * `tramp-copy-args'
60     This specifies the list of parameters to pass to the above mentioned
61     program, the hints for `tramp-login-args' also apply here.
62   * `tramp-copy-env'
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
83     passing gateways.
84   * `tramp-gw-args'
85     As the attribute name says, additional arguments are specified here
86     when a method is applied via a gateway.
87   * `tramp-tmpdir'
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
94     might be desirable.
95
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.
101
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.
109
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.
114
115 Notes:
116
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'.")
123
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.
131
132 If the file name does not specify the user, lookup is done using the
133 empty string for the user name.
134
135 See `tramp-methods' for a list of possibilities for METHOD.")
136
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.
144
145 If the file name does not specify the method, lookup is done using the
146 empty string for the method name.")
147
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.
155
156 If the file name does not specify the method, lookup is done using the
157 empty string for the method name.")
158
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.")
161
162 (defconst tramp-prefix-domain-format "%" "\
163 String matching delimiter between user and domain names.")
164
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'.")
168
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
172 calling HANDLER.")
173
174 (autoload 'tramp-tramp-file-p "tramp" "\
175 Return t if NAME is a string with Tramp file name syntax.
176
177 arguments: (NAME)
178 " nil nil)
179
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'.
186
187 Example:
188
189     (tramp-set-completion-function
190      \"ssh\"
191      \\='((tramp-parse-sconfig \"/etc/ssh_config\")
192        (tramp-parse-sconfig \"~/.ssh/config\")))
193
194 arguments: (METHOD FUNCTION-LIST)
195 " nil nil)
196
197 (autoload 'tramp-completion-mode-p "tramp" "\
198 Check, whether method / user name / host name completion is active.
199
200 arguments: ()
201 " nil nil)
202
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.
206
207 arguments: (FILENAME)
208 " nil nil)
209
210 (autoload 'tramp-parse-shosts "tramp" "\
211 Return a list of (user host) tuples allowed to access.
212 User is always nil.
213
214 arguments: (FILENAME)
215 " nil nil)
216
217 (autoload 'tramp-parse-sconfig "tramp" "\
218 Return a list of (user host) tuples allowed to access.
219 User is always nil.
220
221 arguments: (FILENAME)
222 " nil nil)
223
224 (autoload 'tramp-parse-shostkeys "tramp" "\
225 Return a list of (user host) tuples allowed to access.
226 User is always nil.
227
228 arguments: (DIRNAME)
229 " nil nil)
230
231 (autoload 'tramp-parse-sknownhosts "tramp" "\
232 Return a list of (user host) tuples allowed to access.
233 User is always nil.
234
235 arguments: (DIRNAME)
236 " nil nil)
237
238 (autoload 'tramp-parse-hosts "tramp" "\
239 Return a list of (user host) tuples allowed to access.
240 User is always nil.
241
242 arguments: (FILENAME)
243 " nil nil)
244
245 (autoload 'tramp-parse-passwd "tramp" "\
246 Return a list of (user host) tuples allowed to access.
247 Host is always \"localhost\".
248
249 arguments: (FILENAME)
250 " nil nil)
251
252 (autoload 'tramp-parse-netrc "tramp" "\
253 Return a list of (user host) tuples allowed to access.
254 User may be nil.
255
256 arguments: (FILENAME)
257 " nil nil)
258
259 (autoload 'tramp-parse-putty "tramp" "\
260 Return a list of (user host) tuples allowed to access.
261 User is always nil.
262
263 arguments: (REGISTRY-OR-DIRNAME)
264 " nil nil)
265
266 (autoload 'tramp-mode-string-to-int "tramp" "\
267 Converts a ten-letter `drwxrwxrwx'-style mode string into mode bits.
268
269 arguments: (MODE-STRING)
270 " nil nil)
271
272 (autoload 'tramp-file-mode-from-int "tramp" "\
273 Turn an integer representing a file mode into an ls(1)-like string.
274
275 arguments: (MODE)
276 " nil nil)
277
278 (autoload 'tramp-get-local-uid "tramp" "\
279
280
281 arguments: (ID-FORMAT)
282 " nil nil)
283
284 (autoload 'tramp-get-local-gid "tramp" "\
285
286
287 arguments: (ID-FORMAT)
288 " nil nil)
289
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
293 be granted.
294
295 arguments: (VEC ACCESS)
296 " nil nil)
297
298 (autoload 'tramp-local-host-p "tramp" "\
299 Return t if this points to the local host, nil otherwise.
300
301 arguments: (VEC)
302 " nil nil)
303
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.
307
308 arguments: (VEC)
309 " nil nil)
310
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.
315
316 arguments: (PROC &optional PROMPT)
317 " nil nil)
318
319 (autoload 'tramp-clear-passwd "tramp" "\
320 Clear password cache for connection related to VEC.
321
322 arguments: (VEC)
323 " nil nil)
324
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).
328
329 arguments: (T1 T2)
330 " nil nil)
331
332 (autoload 'tramp-shell-quote-argument "tramp" "\
333 Similar to `shell-quote-argument', but groks newlines.
334 Only works for Bourne-like shells.
335
336 arguments: (S)
337 " nil nil)
338
339 ;;;***
340 \f
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")
342
343 (defvar tramp-adb-program "adb" "\
344 Name of the Android Debug Bridge program.")
345
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.")
349
350 (defconst tramp-adb-method "adb" "\
351 *When this method name is used, forward all calls to Android Debug Bridge.")
352
353 (defvar tramp-adb-prompt "^\\(?:[[:digit:]]*|?\\)?\\(?:[[:alnum:]\e;[]*@[[:alnum:]]*[^#\\$]*\\)?[#\\$][[:space:]]" "\
354 Regexp used as prompt in almquist shell.")
355
356 (add-to-list 'tramp-methods (backquote ((\, tramp-adb-method) (tramp-tmpdir "/data/local/tmp") (tramp-default-port 5555))))
357
358 (add-to-list 'tramp-default-host-alist (backquote ((\, tramp-adb-method) nil "")))
359
360 (eval-after-load 'tramp '(tramp-set-completion-function tramp-adb-method '((tramp-adb-parse-device-names ""))))
361
362 (add-to-list 'tramp-foreign-file-name-handler-alist (cons 'tramp-adb-file-name-p 'tramp-adb-file-name-handler))
363
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)))
366
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.
371
372 arguments: (OPERATION &rest ARGS)
373 " nil nil)
374
375 (autoload 'tramp-adb-parse-device-names "tramp-adb" "\
376 Return a list of (nil host) tuples allowed to access.
377
378 arguments: (_IGNORE)
379 " nil nil)
380
381 ;;;***
382 \f
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")
384
385 (defvar tramp-cache-data (make-hash-table :test 'equal) "\
386 Hash table for remote files properties.")
387
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.")
395
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.
399
400 arguments: (KEY FILE PROPERTY DEFAULT)
401 " nil nil)
402
403 (autoload 'tramp-set-file-property "tramp-cache" "\
404 Set the PROPERTY of FILE to VALUE, in the cache context of KEY.
405 Returns VALUE.
406
407 arguments: (KEY FILE PROPERTY VALUE)
408 " nil nil)
409
410 (autoload 'tramp-flush-file-property "tramp-cache" "\
411 Remove all properties of FILE in the cache context of KEY.
412
413 arguments: (KEY FILE)
414 " nil nil)
415
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.
419
420 arguments: (KEY DIRECTORY)
421 " nil nil)
422
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.
427
428 arguments: (KEY PROPERTY DEFAULT)
429 " nil nil)
430
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.
435
436 arguments: (KEY PROPERTY VALUE)
437 " nil nil)
438
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.
442
443 arguments: (KEY PROPERTY)
444 " nil nil)
445
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.
449
450 arguments: (KEY)
451 " nil nil)
452
453 (autoload 'tramp-cache-print "tramp-cache" "\
454 Print hash table TABLE.
455
456 arguments: (TABLE)
457 " nil nil)
458
459 (autoload 'tramp-list-connections "tramp-cache" "\
460 Return a list of all known connection vectors according to `tramp-cache'.
461
462 arguments: ()
463 " nil nil)
464
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.
469
470 arguments: (METHOD)
471 " nil nil)
472
473 ;;;***
474 \f
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")
476
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.
483
484 arguments: (VEC &optional KEEP-DEBUG KEEP-PASSWORD)
485 " t nil)
486
487 (autoload 'tramp-cleanup-this-connection "tramp-cmds" "\
488 Flush all connection related objects of the current buffer's connection.
489
490 arguments: ()
491 " t nil)
492
493 (autoload 'tramp-cleanup-all-connections "tramp-cmds" "\
494 Flush all Tramp internal objects.
495 This includes password cache, file cache, connection cache, buffers.
496
497 arguments: ()
498 " t nil)
499
500 (autoload 'tramp-cleanup-all-buffers "tramp-cmds" "\
501 Kill all remote buffers.
502
503 arguments: ()
504 " t nil)
505
506 (autoload 'tramp-version "tramp-cmds" "\
507 Print version number of tramp.el in minibuffer or current buffer.
508
509 arguments: (ARG)
510 " t nil)
511
512 (autoload 'tramp-bug "tramp-cmds" "\
513 Submit a bug report to the Tramp developers.
514
515 arguments: ()
516 " t nil)
517
518 ;;;***
519 \f
520 ;;;### (autoloads (tramp-efs-file-name-handler) "tramp-efs" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-efs")
521
522 (defconst tramp-efs-method "ftp" "\
523 Name of the method invoking EFS.")
524
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)))
526
527 (eval-after-load 'tramp '(tramp-set-completion-function tramp-efs-method '((tramp-parse-netrc "~/.netrc"))))
528
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.
533
534 arguments: (OPERATION &rest ARGS)
535 " nil nil)
536
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)))
539
540 (when (featurep 'xemacs) (add-to-list 'tramp-foreign-file-name-handler-alist (cons 'tramp-efs-file-name-p 'tramp-efs-file-name-handler)))
541
542 ;;;***
543 \f
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")
545
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.")
551
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.")
555
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.")
561
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.
567
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\".")
573
574 (defconst tramp-color-escape-sequence-regexp "\e[[;0-9]+m" "\
575 Escape sequences produced by the \"ls\" command.")
576
577 (defconst tramp-initial-end-of-output "#$ " "\
578 Prompt when establishing a connection.")
579
580 (defvar tramp-use-ssh-controlmaster-options t "\
581 Whether to use `tramp-ssh-controlmaster-options'.")
582
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)))
584
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)))
586
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)))
588
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)))
590
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)))
592
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"))))
594
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"))))
596
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)))
598
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)))
600
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)))
602
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)))
604
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)))
606
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)))
608
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)))
610
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"))))
612
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))))
614
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")))))
616
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))))
618
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))))
620
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)))
622
623 (add-to-list 'tramp-default-method-alist (backquote ((\, tramp-local-host-regexp) "\\`root\\'" "su")))
624
625 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'")) nil "root")))
626
627 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" (regexp-opt '("rcp" "remcp" "rsh" "telnet" "nc" "krlogin" "fcp")) "\\'")) nil (\, (user-login-name)))))
628
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.")
631
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.")
634
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.")
637
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.")
640
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.")
643
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)))
645
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.
650
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.
653
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.
660
661 `Private Directories' are the settings of the $PATH environment,
662 as given in your `~/.profile'.")
663
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.
666
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.
670
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'.")
673
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
678 arguments.
679
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.")
683
684 (add-to-list 'tramp-foreign-file-name-handler-alist '(identity . tramp-sh-file-name-handler) 'append)
685
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.
689
690 arguments: (OPERATION &rest ARGS)
691 " nil nil)
692
693 ;;;***
694 \f
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")
696
697 (defconst tramp-smb-method "smb" "\
698 Method to connect SAMBA and M$ SMB servers.")
699
700 (unless (memq system-type '(cygwin windows-nt)) (add-to-list 'tramp-methods (backquote ((\, tramp-smb-method) (tramp-remote-shell "") (tramp-tmpdir "/C$/Temp")))))
701
702 (add-to-list 'tramp-default-method-alist (backquote (nil (\, tramp-prefix-domain-regexp) (\, tramp-smb-method))))
703
704 (add-to-list 'tramp-default-user-alist (backquote ((\, (concat "\\`" tramp-smb-method "\\'")) nil nil)))
705
706 (eval-after-load 'tramp '(tramp-set-completion-function tramp-smb-method '((tramp-parse-netrc "~/.netrc"))))
707
708 (defvar tramp-smb-program "smbclient" "\
709 Name of SMB client to run.")
710
711 (defvar tramp-smb-acl-program "smbcacls" "\
712 Name of SMB acls to run.")
713
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.")
718
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.")
723
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.")
727
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.")
731
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))
734
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.
739
740 arguments: (OPERATION &rest ARGS)
741 " nil nil)
742
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)))
744
745 ;;;***
746 \f
747 ;;;### (autoloads (tramp-uuencode-region) "tramp-uu" "/home/steve/programming/xe-packages/xemacs-packages/tramp/lisp/tramp-uu")
748
749 (autoload 'tramp-uuencode-region "tramp-uu" "\
750 UU-encode the region between BEG and END.
751
752 arguments: (BEG END)
753 " nil nil)
754
755 ;;;***
756
757 (defconst tramp-version "2.2.13" "\
758 This version of Tramp.")
759
760 (defconst tramp-bug-report-address "tramp-devel@gnu.org" "\
761 Email address to send bug reports to.")
762
763 (defconst tramp-version "2.2.11" "\
764 This version of Tramp.")
765
766 (defconst tramp-bug-report-address "tramp-devel@gnu.org" "\
767 Email address to send bug reports to.")
768 \f
769 (provide 'tramp-loaddefs)