Initial Commit
[packages] / xemacs-packages / tramp / lisp / ChangeLog
1 2015-12-29  Michael Albinus  <michael.albinus@gmx.de>
2
3         Version 2.2.13 released.
4
5         * tramp-compat.el (tramp-compat-delete-dups):
6         Use `tramp-compat-funcall'.
7
8         * tramp-gvfs.el (tramp-gvfs-parse-device-names):
9         Make `split-string' call compatible with older Emacsen.
10
11 2015-12-19  Michael Albinus  <michael.albinus@gmx.de>
12
13         * tramp.el (tramp-dissect-file-name): Fix docstring.
14
15         * tramp-sh.el (tramp-do-file-attributes-with-ls): Reorder ls arguments.
16         (tramp-get-ls-command-with-w-option): Improve check.
17
18         * trampver.el.in: Add Version: keyword.
19
20 2015-12-15  Michael Albinus  <michael.albinus@gmx.de>
21
22         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
23         Move up uname check.  Handle Mac OS X eol encoding.  Set utf8
24         encoding with stty.
25
26 2015-12-09  Michael Albinus  <michael.albinus@gmx.de>
27
28         * tramp-sh.el (tramp-perl-file-truename): Do not raise an error if
29         file doesn't exist.
30
31 2015-12-07  Michael Albinus  <michael.albinus@gmx.de>
32
33         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
34         Make lax check for utf8.
35         (tramp-get-remote-locale): Add "en_US.UTF-8" as candidate.
36
37 2015-12-06  Michael Albinus  <michael.albinus@gmx.de>
38
39         * tramp-sh.el (tramp-perl-file-truename): Do not append trailing
40         slash.  Quote apostrophes.
41         (tramp-sh-handle-file-truename): Do not append trailing slash in
42         the "ls" case.
43         (tramp-get-ls-command-with-w-option): New defun.
44         (tramp-do-file-attributes-with-ls)
45         (tramp-do-directory-files-and-attributes-with-stat): Use it.
46
47 2015-12-03  Michael Albinus  <michael.albinus@gmx.de>
48
49         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
50         Suppress error messages for "mesg" and "biff" calls.
51         (tramp-get-remote-path): Ignore errors when expanding
52         `tramp-own-remote-path'.  Raise a warning instead.
53
54 2015-11-18  Paul Eggert  <eggert@cs.ucla.edu>
55
56         * tramp.el (tramp-syntax): Fix docstring quoting problem with ‘ '’.
57
58 2015-11-11  Michael Albinus  <michael.albinus@gmx.de>
59
60         * tramp.el (tramp-handle-file-equal-p)
61         (tramp-handle-file-in-directory-p): New defuns.  Suggested by
62         Harvey Chapman <hchapman@3gfp.com>
63
64         * tramp-adb.el (tramp-adb-file-name-handler-alist)
65         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
66         * tramp-sh.el (tramp-sh-file-name-handler-alist)
67         * tramp-smb.el (tramp-smb-file-name-handler-alist)
68         <file-equal-p, file-in-directory-p>: Add handler.
69
70 2015-11-01  Michael Albinus  <michael.albinus@gmx.de>
71
72         * tramp.el (tramp-set-completion-function): The argument could
73         also be a zeroconf service type.
74
75         * tramp-gvfs.el (tramp-zeroconf-parse-device-names): Renamed from
76         `tramp-zeroconf-parse-service-device-names'.
77         (tramp-zeroconf-parse-webdav-device-names): Removed.  Code merged
78         with `tramp-zeroconf-parse-device-names'.
79         (tramp-gvfs-parse-device-names): New defun.
80         (top): Use it when `tramp-zeroconf-parse-device-names' is not
81         applicable.
82
83 2015-10-30  Michael Albinus  <michael.albinus@gmx.de>
84
85         * tramp-gvfs.el (tramp-gvfs-handle-file-attributes): An attribute
86         returned by gvfs-info might be empty.  In case of undetermined uid
87         or gid, return "UNKNOWN" or -1, respectively.
88         (tramp-zeroconf-parse-service-device-names): New defun.
89         Derived from `tramp-zeroconf-parse-workstation-device-names'.
90         (top): Add completion functions for "afp" and "smb" methods.
91
92 2015-10-29  Michael Albinus  <michael.albinus@gmx.de>
93
94         * tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
95         (tramp-gvfs-handle-expand-file-name)
96         (tramp-gvfs-handler-mounted-unmounted)
97         (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
98         (tramp-gvfs-maybe-open-connection): Support also "afp".
99         (tramp-gvfs-handle-file-attributes): Handle the case of empty
100         "owner::user" and "owner::group" entries.
101
102 2015-10-28  Michael Albinus  <michael.albinus@gmx.de>
103
104         * tramp-compat.el (tramp-compat-delete-dups): New defun.
105         * tramp-smb.el (tramp-smb-handle-directory-files): Use it.
106
107 2015-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
108
109         * tramp.el (auto-save-file-name-transforms): Declare.
110
111 2015-10-21  Jürgen Hötzel  <juergen@archlinux.org>
112
113         * tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Just suppress
114         LC_MESSAGES locale category settings.
115
116 2015-10-18  Michael Albinus  <michael.albinus@gmx.de>
117
118         * tramp.el (tramp-handle-make-auto-save-file-name):
119         Expand `tramp-auto-save-directory'.
120
121         * tramp-adb.el (directory-listing-before-filename-regexp):
122         Declare it.
123
124         * tramp-compat.el (directory-listing-before-filename-regexp):
125         Remove declaration.
126
127 2015-10-16  Jürgen Hötzel  <juergen@archlinux.org>
128
129         * tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Handle
130         symlink targets containing spaces.
131
132 2015-10-13  Noah Friedman  <friedman@splode.com>
133
134         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
135         Send -onlcr as well.
136
137 2015-10-12  Jürgen Hötzel  <juergen@archlinux.org>
138
139         * tramp-gvfs.el (tramp-gvfs-handle-file-attributes): Suppress
140         localized settings in order to proper parse gfvs output.
141
142 2015-10-12  Michael Albinus  <michael.albinus@gmx.de>
143
144         * tramp.el (tramp-completion-function-alist): Fix docstring.
145
146         * tramp-gvfs.el: "customer option" -> "custom option".
147
148 2015-10-12  Warren Lynn  <wrn.lynn@gmail.com>  (tiny change)
149
150         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
151         Quote argument in proper order.  (Bug#21562)
152
153 2015-10-04  Michael Albinus  <michael.albinus@gmx.de>
154
155         * tramp.el (tramp-get-remote-tmpdir): Don't use
156         `file-remote-p' (due to XEmacs compatibility).
157
158         * tramp-compat.el (directory-listing-before-filename-regexp):
159         Declare if it doesn't exist.
160         (file-remote-p): Remove defalias, which was necessary for GNU Emacs 21.
161         (redisplay): Make it an alias if it doesn't exist.
162
163         * trampver.el.in (locate-dominating-file)
164         (tramp-compat-replace-regexp-in-string): Autoload.
165         (tramp-repository-get-version): Do not dupe byte-compiler.
166
167 2015-10-03  Michael Albinus  <michael.albinus@gmx.de>
168
169         * trampver.el.in (tramp-repository-get-version): Suppress compiler
170         warnings.
171
172 2015-09-20  Michael Albinus  <michael.albinus@gmx.de>
173
174         * tramp.el (tramp-handle-file-notify-rm-watch): Use `delete-process'
175         (tramp-handle-file-notify-valid-p): Check also, that file or
176         directory to be watched still exists.
177
178         * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
179         Improve implementation.
180         (tramp-gvfs-monitor-file-process-filter): Rename from
181         `tramp-gvfs-file-gvfs-monitor-file-process-filter'.  Delete
182         process if appropriate.
183
184         * tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
185         Improve implementation.
186         (tramp-sh-gvfs-monitor-dir-process-filter): Rename from
187         `tramp-sh-file-gvfs-monitor-dir-process-filter'.  Delete process
188         if appropriate.
189         (tramp-sh-inotifywait-process-filter): Rename from
190         `tramp-sh-file-inotifywait-process-filter'.  Delete process if
191         appropriate.
192
193 2015-09-13  Michael Albinus  <michael.albinus@gmx.de>
194
195         * tramp.el (tramp-file-name-for-operation): Add `file-notify-valid-p'.
196         (tramp-handle-file-notify-valid-p): New defun.
197
198         * tramp-adb.el (tramp-adb-file-name-handler-alist)
199         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
200         * tramp-sh.el (tramp-sh-file-name-handler-alist)
201         * tramp-smb.el (tramp-smb-file-name-handler-alist)
202         <file-notify-valid-p>: Add handler.
203
204 2015-09-11  Michael Albinus  <michael.albinus@gmx.de>
205
206         * tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Set proper
207         events to watch for.
208         (tramp-sh-file-gvfs-monitor-dir-process-filter): Report only
209         watched events.
210
211 2015-09-04  Paul Eggert  <eggert@cs.ucla.edu>
212
213         * tramp.el (tramp-chunksize): Substitute quotes before putting
214         them in the help buffer.
215
216 2015-09-02  Paul Eggert  <eggert@cs.ucla.edu>
217
218         * tramp.el (tramp-set-completion-function): Escape ' in doc.
219
220 2015-09-01  Michael Albinus  <michael.albinus@gmx.de>
221
222         * tramp.el (tramp-clear-passwd): Clear also the passwords of the hops.
223
224         * tramp-sh.el (tramp-methods) <sudo>: Mask "Password:" template.
225         Otherwise, it could be interpreted as password prompt if the
226         remote host echoes the command.
227         (tramp-remote-coding-commands): Add "openssl enc -base64".
228
229 2015-08-30  Michael Albinus  <michael.albinus@gmx.de>
230
231         * tramp-sh.el (tramp-convert-file-attributes): Revert patch from
232         2015-08-24.  Tramp shall behave like for local files.
233
234 2015-08-26  Paul Eggert  <eggert@cs.ucla.edu>
235
236         Go back to grave quoting in Tramp
237
238         * tramp-adb.el:
239         * tramp-cache.el:
240         * tramp-compat.el:
241         * tramp-gvfs.el:
242         * tramp-gw.el:
243         * tramp-sh.el:
244         * tramp-smb.el:
245         * tramp.el:
246         Stick with grave quoting in diagnostics strings.  This is more
247         portable to older Emacs, desirable for Tramp.
248         * tramp-compat.el (format-message):
249         Fall back on simple ‘format’, since that’s good enough now.
250
251 2015-08-25  Paul Eggert  <eggert@cs.ucla.edu>
252
253         Tramp diagnostics as per ‘text-quoting-style’
254
255         * tramp-adb.el (tramp-adb-handle-file-truename)
256         (tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
257         (tramp-adb-handle-delete-directory)
258         (tramp-adb-handle-delete-file)
259         (tramp-adb-handle-file-local-copy)
260         (tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
261         (tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
262         (tramp-adb-maybe-open-connection):
263         * tramp-cache.el:
264         * tramp-compat.el (tramp-compat-temporary-file-directory)
265         (tramp-compat-octal-to-decimal)
266         (tramp-compat-coding-system-change-eol-conversion):
267         * tramp-gvfs.el (tramp-gvfs-file-name-handler)
268         (tramp-gvfs-do-copy-or-rename-file)
269         (tramp-gvfs-handle-delete-directory)
270         (tramp-gvfs-handle-delete-file)
271         (tramp-gvfs-handle-expand-file-name)
272         (tramp-gvfs-handle-file-local-copy)
273         (tramp-gvfs-handle-file-notify-add-watch)
274         (tramp-gvfs-handle-make-directory)
275         (tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
276         * tramp-gw.el (tramp-gw-gw-proc-sentinel)
277         (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
278         * tramp-sh.el (tramp-sh-handle-file-truename)
279         (tramp-sh-handle-set-visited-file-modtime)
280         (tramp-sh-handle-set-file-modes)
281         (tramp-sh-handle-file-name-all-completions)
282         (tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
283         (tramp-do-copy-or-rename-file-directly)
284         (tramp-do-copy-or-rename-file-out-of-band)
285         (tramp-sh-handle-make-directory)
286         (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
287         (tramp-sh-handle-insert-directory, tramp-process-sentinel)
288         (tramp-sh-handle-start-file-process)
289         (tramp-sh-handle-file-local-copy)
290         (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
291         (tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
292         (tramp-find-file-exists-command, tramp-open-shell)
293         (tramp-find-shell)
294         (tramp-open-connection-setup-interactive-shell)
295         (tramp-find-inline-encoding, tramp-find-inline-compress)
296         (tramp-compute-multi-hops, tramp-maybe-open-connection)
297         (tramp-wait-for-output, tramp-send-command-and-check)
298         (tramp-send-command-and-read, tramp-get-remote-path)
299         (tramp-get-ls-command, tramp-get-ls-command-with-dired)
300         (tramp-get-ls-command-with-quoting-style)
301         (tramp-get-test-command, tramp-get-remote-ln)
302         (tramp-get-remote-perl, tramp-get-remote-stat)
303         (tramp-get-remote-readlink, tramp-get-remote-trash)
304         (tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
305         (tramp-get-remote-inotifywait, tramp-get-remote-id)
306         (tramp-get-remote-python):
307         * tramp-smb.el (tramp-smb-errors)
308         (tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
309         (tramp-smb-handle-delete-directory)
310         (tramp-smb-handle-delete-file)
311         (tramp-smb-handle-file-local-copy)
312         (tramp-smb-handle-make-directory)
313         (tramp-smb-handle-make-directory-internal)
314         (tramp-smb-handle-make-symbolic-link)
315         (tramp-smb-handle-rename-file, tramp-smb-handle-set-file-acl)
316         (tramp-smb-handle-set-file-modes)
317         (tramp-smb-handle-write-region, tramp-smb-get-file-entries):
318         * tramp.el (tramp-debug-message, tramp-error)
319         (tramp-process-actions):
320         Generate diagnostics according to ‘text-quoting-style’, by
321         using curved quotes in format strings and ‘format-message’
322         when appropriate.
323         * tramp-compat.el (format-message):
324         Define a replacement, if it’s an older version of Emacs
325         that doesn’t have it already.
326
327 2015-08-25  Michael Albinus  <michael.albinus@gmx.de>
328
329         * tramp-sh.el (tramp-awk-encode, tramp-awk-decode)
330         (tramp-awk-coding-test): New defconsts.
331         (tramp-remote-coding-commands): Use them.
332         (tramp-find-inline-encoding): Check for Perl only if necessary.
333
334 2015-08-24  Michael Albinus  <michael.albinus@gmx.de>
335
336         * tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker):
337         New defconsts.
338         (tramp-do-file-attributes-with-stat)
339         (tramp-do-directory-files-and-attributes-with-stat): Use them.
340         (tramp-convert-file-attributes): Remove double slashes in symlinks.
341
342 2015-08-22  Paul Eggert  <eggert@cs.ucla.edu>
343
344         * tramp.el (tramp-process-actions):
345         Prefer (substitute-command-keys "`\\[foo-command]'") to
346         "`M-x foo-command'" in docstrings and the like.
347
348 2015-08-18  Michael Albinus  <michael.albinus@gmx.de>
349
350         * tramp.el (tramp-get-method-parameter):
351         * tramp-adb.el (tramp-adb-parse-device-names)
352         (tramp-adb-get-device):
353         * trampver.el.in (tramp-repository-get-version):
354         Use `tramp-compat-replace-regexp-in-string'.
355
356 2015-08-18  Pierre Téchoueyres  <pierre.techoueyres@free.fr>  (tiny change)
357
358         * tramp-cmds.el (tramp-reporter-dump-variable): Encode/decode string.
359
360 2015-08-15  Jürgen Hötzel  <juergen@archlinux.org>
361
362         * tramp-sh.el (tramp-sh-handle-set-file-selinux-context): Do not
363         cache SELinux context if not all context components are given.
364
365 2015-08-14  Jürgen Hötzel  <juergen@archlinux.org>
366
367         * tramp-sh.el (tramp-remote-selinux-p): Use "selinuxenabled"
368         rather than "getenforce".
369
370 2015-08-14  Michael Albinus  <michael.albinus@gmx.de>
371
372         * tramp-adb.el (tramp-adb-handle-set-file-modes)
373         (tramp-adb-handle-set-file-times):
374         * tramp-sh.el (tramp-sh-handle-set-file-modes)
375         (tramp-sh-handle-set-file-times): Use `tramp-flush-file-property'
376         rather than `tramp-flush-directory-property'.
377         (tramp-sh-handle-file-acl): Do not redirect stderr to /dev/null,
378         this is done in `tramp-send-command-and-check'.
379
380 2015-08-14  Jürgen Hötzel  <juergen@archlinux.org>
381
382         * tramp-sh.el (tramp-sh-handle-set-file-modes)
383         (tramp-sh-handle-set-file-times):
384         * tramp-adb.el (tramp-adb-handle-set-file-modes)
385         (tramp-adb-handle-set-file-times): Flush the file properties of
386         the directory.
387
388 2015-08-13  Jürgen Hötzel  <juergen@archlinux.org>
389
390         * tramp-adb.el (tramp-adb-handle-directory-files-and-attributes):
391         Make a copy of result to prevent modification of the tramp-cache
392         by side effects.  Use the correct cache key.
393
394 2015-08-10  Jürgen Hötzel  <juergen@archlinux.org>
395
396         * tramp-adb.el (tramp-adb-prompt): Match leading escape sequence.
397         Recent adb version send initial escape sequences, even when
398         terminal type is set to TERM=dumb.
399
400 2015-08-07  Jürgen Hötzel  <juergen@archlinux.org>
401
402         * tramp-adb.el (tramp-adb-ls-output-name-less-p): Improve error
403         checking.  "ls -l" on Android in Enforcing mode can print "lstat
404         './FILENAME failed: Permission denied".
405
406 2015-08-03  Jürgen Hötzel  <juergen@archlinux.org>
407
408         * tramp-cache.el (tramp-set-file-property): Fix code typo.
409
410 2015-07-29  Michael Albinus  <michael.albinus@gmx.de>
411
412         * tramp.el (tramp-handle-file-name-as-directory)
413         (tramp-handle-file-name-directory, tramp-handle-file-remote-p):
414         Keep hop in result.
415
416         * tramp-cache.el (tramp-get-file-property)
417         (tramp-set-file-property, tramp-flush-file-property)
418         (tramp-get-connection-property, tramp-set-connection-property)
419         (tramp-flush-connection-property): Remove hop from vector.
420
421         * tramp-gw.el (tramp-gw-process-filter): Ignore errors.
422
423         * tramp-sh.el (tramp-methods) <nc>: Separate STDERR.
424         (tramp-do-copy-or-rename-file-out-of-band): Increase timeout of
425         netstat to 60".
426         (tramp-sh-handle-start-file-process): Do not show hops in prompt.
427
428 2015-07-23  Michael Albinus  <michael.albinus@gmx.de>
429
430         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
431         Add "tab0" to stty call.
432
433 2015-07-22  Michael Albinus  <michael.albinus@gmx.de>
434
435         * tramp-sh.el (tramp-ssh-controlmaster-options): Use 0.0.0.1 as
436         test host.
437
438 2015-07-19  Michael Albinus  <michael.albinus@gmx.de>
439
440         * tramp.el (tramp-methods): Adapt docstring.
441         (tramp-get-method-parameter): Replace argument METHOD by VEC.
442         Check also for hits in `tramp-connection-properties'.  Adapt docstring.
443         (tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
444         (all): Adapt `tramp-get-method-parameter' calls.
445
446         * tramp-cache.el (tramp-connection-properties): Adapt docstring.
447
448         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
449         Adapt `tramp-get-method-parameter' call.
450
451         * tramp-sh.el (tramp-methods): Add `tramp-remote-shell-login'
452         parameter where it fits.
453         (tramp-get-remote-path): Use it.
454         (all): Adapt `tramp-get-method-parameter' calls.
455
456 2015-07-18  Michael Albinus  <michael.albinus@gmx.de>
457
458         * tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
459         (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
460         (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
461         "gvfs-mkdir -p ..." does not work robust.
462
463         * tramp-sh.el (tramp-make-copy-program-file-name): Fix quoting for
464         "psftp" method.
465
466 2015-06-28  Michael Albinus  <michael.albinus@gmx.de>
467
468         Version 2.2.12 released.
469
470 2015-06-21  Michael Albinus  <michael.albinus@gmx.de>
471
472         * tramp-adb.el (tramp-adb-handle-file-local-copy): Improve error
473         handling.
474
475 2015-06-01  Michael Albinus  <michael.albinus@gmx.de>
476
477         * tramp.el (tramp-handle-make-auto-save-file-name):
478         Wrap `auto-save-file-name-transforms' by `symbol-value', it
479         doesn't exist in XEmacs.
480
481         * tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for the
482         local case, because "chown" might fail on w32.
483
484         * trampver.el.in (tramp-repository-get-version): Don't run for XEmacs.
485
486 2015-05-31  Michael Albinus  <michael.albinus@gmx.de>
487
488         * tramp.el (tramp-message): Dump connection buffer for error messages.
489         (tramp-handle-make-auto-save-file-name): When calling
490         `make-auto-save-file-name' internally, make sure it uses Unix-like
491         behavior, not Windows-like behavior.
492
493         * tramp-sh.el (tramp-histfile-override): Use ".tramp_history" as
494         default.  (Bug#20446)
495
496 2015-05-30  Michael Albinus  <michael.albinus@gmx.de>
497
498         * trampver.el.in (tramp-repository-get-version): New defun.
499
500         * tramp.el (tramp-debug-message): Use it.
501
502 2015-05-29  Michael Albinus  <michael.albinus@gmx.de>
503
504         * tramp.el (tramp-call-process-region): New defun.
505
506         * tramp-sh.el (tramp-get-inline-coding): Use it.
507
508 2015-05-27  Michael Albinus  <michael.albinus@gmx.de>
509
510         * tramp.el (tramp-auto-save-directory): Add :tags.
511         (tramp-handle-make-auto-save-file-name): Let native
512         `make-auto-save-file-name' use `auto-save-file-name-transforms',
513         if `tramp-auto-save-directory' is not set.
514
515 2015-05-26  Michael Albinus  <michael.albinus@gmx.de>
516
517         * tramp-sh.el (tramp-set-auto-save): Remove it.  There are major
518         modes which set `auto-save-mode' on their own rules; Tramp shall
519         not overwrite such settings.  (Bug#20621)
520
521 2015-05-25  Orivej Desh  <orivej@gmx.fr>  (tiny change)
522
523         * tramp-sh.el (tramp-make-copy-program-file-name): Add sqare
524         brackets around host name.
525
526 2015-05-25  Michael Albinus  <michael.albinus@gmx.de>
527
528         * tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
529         (tramp-sh-handle-insert-file-contents-literally): Inhibit also
530         `epa-file-handler'.  (Bug#20634)
531
532 2015-05-20  Paul Eggert  <eggert@cs.ucla.edu>
533
534         * tramp.el (tramp-methods):
535         Use double-quotes rather than TeX markup in doc strings.
536
537         * tramp-cmds.el: Fix minor quoting problems.
538
539 2015-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
540
541         * tramp-sh.el (tramp-remote-process-environment): Don't set EMACS
542         envvar.  (Bug#20202)
543
544 2015-04-08  Michael Albinus  <michael.albinus@gmx.de>
545
546         * tramp-cache.el (tramp-flush-file-property): Fix nasty scoping bug.
547
548 2015-04-04  Michael Albinus  <michael.albinus@gmx.de>
549
550         * tramp-cache.el (tramp-flush-directory-property): Quote directory
551         name when used in regexp.
552
553 2015-04-03  Michael Albinus  <michael.albinus@gmx.de>
554
555         * tramp-cache.el (tramp-flush-file-property)
556         (tramp-flush-directory-property): Use `directory-file-name' of the
557         truename.  (Bug#20249)
558
559 2015-03-24  Michael Albinus  <michael.albinus@gmx.de>
560
561         * tramp-sh.el (tramp-do-file-attributes-with-ls)
562         (tramp-do-file-attributes-with-stat): Quote file names in output.
563         (tramp-do-directory-files-and-attributes-with-stat): Use "//" as marker.
564
565 2015-03-18  Michael Albinus  <michael.albinus@gmx.de>
566
567         * tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
568         Mark apostrophs with ?/ instead of \037.  (Bug#20117)
569
570 2015-03-17  Michael Albinus  <michael.albinus@gmx.de>
571
572         * tramp-sh.el (tramp-ssh-controlmaster-options): Change test for
573         ControlPath in order to avoid DNS timeouts.  (Bug#20015)
574         (tramp-maybe-send-script): Avoid leading tabs in shell scripts.
575         (Bug#20118)
576
577 2015-03-15  Michael Albinus  <michael.albinus@gmx.de>
578
579         * tramp-adb.el:
580         * tramp-gvfs.el:
581         * tramp-sh.el:
582         * tramp-smb.el: Set tramp-autoload cookie for all defcustoms.
583
584         * tramp.el (tramp-ssh-controlmaster-options)
585         (tramp-use-ssh-controlmaster-options): Move them to tramp-sh.el.
586         (tramp-default-method): Do not check for
587         `tramp-ssh-controlmaster-options'.
588
589         * tramp-sh.el (tramp-use-ssh-controlmaster-options):
590         New defcustom, moved from tramp.el.
591         (tramp-ssh-controlmaster-options): New defvar, moved from tramp.el
592         but with a nil initial value.
593         (tramp-ssh-controlmaster-options): New defun.
594         (tramp-do-copy-or-rename-file-out-of-band)
595         (tramp-maybe-open-connection): Use it.  (Bug#20015)
596
597 2015-03-04  Michael Albinus  <michael.albinus@gmx.de>
598
599         * tramp.el (tramp): Add :link property.
600
601 2015-02-15  Michael Albinus  <michael.albinus@gmx.de>
602
603         * tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat)
604         (tramp-sh-handle-file-name-all-completions)
605         (tramp-sh-handle-delete-directory)
606         (tramp-sh-handle-expand-file-name, tramp-sh-handle-process-file):
607         Normalize use of "cd".
608
609 2015-02-15  Jérémy Compostella  <jeremy.compostella@gmail.com>
610
611         * tramp-sh.el (tramp-remote-process-environment): Disable paging
612         with PAGER=cat.  (Bug#19870)
613
614 2015-02-09  Paul Eggert  <eggert@cs.ucla.edu>
615
616         Port to platforms lacking test -a and -o
617
618         * tramp-sh.el (tramp-find-executable): Prefer '&&' to 'test -a'.
619
620 2015-02-08  Michael Albinus  <michael.albinus@gmx.de>
621
622         * tramp.el (tramp-login-prompt-regexp): Allow also "user", as
623         required by Fritz!Box telnet.
624
625 2015-02-04  Michael Albinus  <michael.albinus@gmx.de>
626
627         * tramp.el (tramp-handle-unhandled-file-name-directory): Return
628         nil when required by the spec.
629
630         * tramp-sh.el (tramp-get-inline-coding): Set `default-directory'
631         to a local directory.  Sporadically, `call-process-region' does
632         not handle a remote default directory properly.
633
634 2015-02-03  Michael Albinus  <michael.albinus@gmx.de>
635
636         * tramp.el (tramp-ssh-controlmaster-options): Don't use a tempfile
637         for ControlPath.  (Bug#19702)
638
639         * tramp-sh.el (tramp-histfile-override): Use t instead of 'unset.
640         (tramp-open-shell, tramp-maybe-open-connection): Set also
641         HISTFILESIZE and HISTSIZE when needed.  (Bug#19731)
642
643 2015-02-02  Michael Albinus  <michael.albinus@gmx.de>
644
645         * tramp.el (tramp-ssh-controlmaster-options): Use "%C" for
646         ControlPath if possible.  (Bug#19702)
647
648         * tramp-sh.el (tramp-histfile-override): Add another choice
649         'unset.  Use it as default.
650         (tramp-open-shell, tramp-maybe-open-connection): Support it.
651         (Bug#19731)
652
653 2015-02-01  Michael Albinus  <michael.albinus@gmx.de>
654
655         * tramp-adb.el (tramp-adb-ls-toolbox-regexp): Fix regexp in order
656         to support file names starting with a space.
657
658         * tramp-sh.el (tramp-perl-file-attributes)
659         (tramp-perl-directory-files-and-attributes): Escape apostrophes in
660         file names.
661         (tramp-do-file-attributes-with-stat): Quote file name.
662         (tramp-sh-handle-directory-files-and-attributes): Fall back to
663         `tramp-handle-directory-files-and-attributes' in case of problems.
664         (tramp-do-directory-files-and-attributes-with-stat): Do not use \0
665         as delimeter.  Use the `quoting-style' arg of `ls' if possible.
666         (tramp-sh-handle-file-name-all-completions): Use arguments of `ls'
667         in proper order.
668         (tramp-sh-handle-delete-directory): Goto root directory before deleting.
669         (tramp-get-remote-locale): Accept also \r in output.
670         (tramp-get-ls-command-with-quoting-style): New defun.
671
672 2015-01-25  Michael Albinus  <michael.albinus@gmx.de>
673
674         * tramp-adb.el (tramp-adb-handle-directory-files-and-attributes):
675         Quote all remote file names.
676
677 2015-01-23  Michael Albinus  <michael.albinus@gmx.de>
678
679         * tramp.el (tramp-autoload-file-name-handler): Use "/".
680
681         * tramp-compat.el (tramp-compat-temporary-file-directory): Revert patch.
682
683 2015-01-22  Michael Albinus  <michael.albinus@gmx.de>
684
685         * tramp.el (tramp-autoload-file-name-handler):
686         Use `tramp-compat-temporary-file-directory'.
687
688         * tramp-compat.el (tramp-compat-temporary-file-directory): Autoload it.
689
690 2015-01-20  Michael Albinus  <michael.albinus@gmx.de>
691
692         * tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
693         Make it also working for file names with apostrophes.
694
695 2015-01-18  Zhongwei Yao  <ashi08104@gmail.com>
696
697         * tramp-adb.el (tramp-adb-connect-if-not-connected): New user option.
698         (tramp-methods): Add `tramp-default-port' for "adb".
699         (tramp-adb-parse-device-names): Add traces.  Return device names
700         with port, if present.
701         (tramp-adb-get-device): New defun.
702         (tramp-adb-execute-adb-command, tramp-adb-maybe-open-connection):
703         Use it.
704         (tramp-adb-maybe-open-connection): Set `tramp-current-*'
705         variables.  Remove checks for listed devices.
706
707 2015-01-13  Michael Albinus  <michael.albinus@gmx.de>
708
709         * tramp.el (tramp-handle-file-notify-rm-watch): Do not check in
710         `file-notify-descriptors', the implementation has been changed.
711
712         * tramp-cache.el (tramp-dump-connection-properties):
713         * tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
714         (tramp-sh-handle-file-local-copy): Use `with-temp-file'.
715
716 2014-12-29  Michael Albinus  <michael.albinus@gmx.de>
717
718         Version 2.2.11 released.
719
720         * tramp-compat.el (top): Require cl-macs for Emacs 22.
721         Make an alias for `default-toplevel-value' if it doesn't exist.
722
723         * tramp-smb.el (tramp-smb-handle-copy-directory):
724         Use `tramp-compat-delete-directory'.
725
726 2014-12-26  Paul Eggert  <eggert@cs.ucla.edu>
727
728         * tramp.el: Spelling fixes.
729
730 2014-12-24  Michael Albinus  <michael.albinus@gmx.de>
731
732         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
733         Use `tramp-rsh-end-of-line', it ought to be more robust.
734
735 2014-12-23  Michael Albinus  <michael.albinus@gmx.de>
736
737         * tramp.el (tramp-read-passwd): Ignore errors from `auth-source-*'.
738
739         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use "\n"
740         as end-of-line delimeter for passwords, when running on MS Windows.
741
742 2014-12-21  Michael Albinus  <michael.albinus@gmx.de>
743
744         * tramp.el (tramp-handle-insert-file-contents):
745         Set `find-file-not-found-functions' in case of errors.  (Bug#18623)
746
747 2014-12-20  Michael Albinus  <michael.albinus@gmx.de>
748
749         * tramp-sh.el (tramp-histfile-override): Add :version.
750
751 2014-12-20  Teodor Zlatanov  <tzz@lifelogs.com>
752
753         * tramp-sh.el (tramp-histfile-override): Clarify docstring.
754
755 2014-12-19  Michael Albinus  <michael.albinus@gmx.de>
756
757         * tramp-sh.el (tramp-send-command-and-read): New optional arg MARKER.
758         (tramp-get-remote-path): Use it.
759
760 2014-12-17  Teodor Zlatanov  <tzz@lifelogs.com>
761
762         * tramp-sh.el (tramp-histfile-override): New variable.
763         (tramp-open-shell, tramp-maybe-open-connection): Use it.
764
765 2014-12-16  Michael Albinus  <michael.albinus@gmx.de>
766
767         * tramp.el (tramp-error-with-buffer): Call `message' properly.
768         (tramp-accept-process-output): Use nil as argument for
769         `accept-process-output', when there is a gateway prepended.
770
771         * tramp-gw.el (tramp-gw-open-connection): Suppress traces in wrong
772         debug buffer.
773         (tramp-gw-open-connection): Set process coding system 'binary.
774         (tramp-gw-open-network-stream): Handle HTTP error 403.
775
776         * tramp-sh.el (tramp-compute-multi-hops): Suppress traces in wrong
777         debug buffer.
778         (tramp-maybe-open-connection): Set connection property "gateway".
779
780 2014-12-10  Michael Albinus  <michael.albinus@gmx.de>
781
782         * tramp-sh.el (tramp-get-remote-path): Use a login shell in order
783         to determine `tramp-own-remote-path'.
784
785 2014-12-08  Stefan Monnier  <monnier@iro.umontreal.ca>
786
787         * tramp.el (tramp-handle-make-symbolic-link): Mark unused arg.
788
789 2014-11-22  Michael Albinus  <michael.albinus@gmx.de>
790
791         * tramp.el (tramp-action-password): Clean password on subsequent
792         attempts even if there was no wrong password indication.  (Bug#19047)
793
794         * tramp-sh.el (tramp-get-remote-locale): Return "LC_ALL=C" as fallback.
795         (tramp-open-connection-setup-interactive-shell): No need to check
796         for nil as `tramp-get-remote-locale' return value.
797         (tramp-sh-handle-start-file-process, tramp-sh-handle-process-file):
798         Propagate `process-environment'.
799
800 2014-11-20  Michael Albinus  <michael.albinus@gmx.de>
801
802         Improve XEmacs compatibility.
803
804         * tramp.el (tramp-autoload-file-name-handler):
805         Wrap `temporary-file-directory' by `symbol-value', it doesn't
806         exist in XEmacs.
807         (tramp-read-passwd): Don't use `with-timeout-suspend' and
808         `with-timeout-unsuspend' if they don't exist, like in XEmacs.
809         (tramp-time-less-p, tramp-time-subtract): Remove functions.
810         (tramp-handle-file-newer-than-file-p, tramp-time-diff):
811         * tramp-adb.el (tramp-adb-ls-output-time-less-p):
812         * tramp-cache.el (tramp-get-file-property):
813         * tramp-smb.el (tramp-smb-handle-insert-directory):
814         Use `time-less-p' and `time-subtract, respectively.
815
816         * tramp-adb.el (top): Do not require time-date.el.
817
818         * tramp-compat.el (top): Require time-date.el for XEmacs.
819
820         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
821         Check, whether `utf-8' is a valid coding system.
822
823 2014-11-07  Michael Albinus  <michael.albinus@gmx.de>
824
825         * tramp.el (tramp-check-cached-permissions): Include hop in the
826         constructed Tramp file name.  (Bug#18943)
827
828 2014-11-05  Michael Albinus  <michael.albinus@gmx.de>
829
830         * tramp.el (tramp-error-with-buffer): Show connection buffer only
831         when message appeared in minibuffer.  (Bug#18891)
832
833         * tramp-adb.el (tramp-adb-handle-file-attributes):
834         * tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
835         * tramp-sh.el (tramp-sh-handle-file-attributes): Return nil in
836         case of errors.
837
838 2014-11-04  Michael Albinus  <michael.albinus@gmx.de>
839
840         * tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer): Don't use
841         a local copy; setting `inhibit-file-name-handlers' proper might be
842         more performant.  (Bug#18751)
843
844 2014-11-03  Michael Albinus  <michael.albinus@gmx.de>
845
846         * tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer): Use a
847         local copy of FILENAME, when it is remote.  (Bug#18751)
848
849 2014-11-02  Michael Albinus  <michael.albinus@gmx.de>
850
851         * tramp-adb.el (tramp-adb-handle-process-file): Do not raise an
852         error when the command fails; the return code must indicate.
853         (tramp-adb-send-command-and-check): Fix docstring.
854
855 2014-11-01  Michael Albinus  <michael.albinus@gmx.de>
856
857         * tramp-cache.el (tramp-get-file-property)
858         (tramp-set-file-property): Check, that `tramp-cache-get-count-*'
859         and `tramp-cache-set-count-*' are bound.  Otherwise, there might
860         be compiler warnings.
861
862         * tramp-sh.el (tramp-get-remote-uid, tramp-get-remote-gid):
863         Return -1 respective "UNKNOWN", if uid or gid cannot be determined.
864
865 2014-11-01  Wolfgang Jenkner  <wjenkner@inode.at>
866
867         * tramp-sh.el (tramp-send-command): Fix the case where the
868         remote-echo connection property is non-nil (bug#18858).
869
870 2014-11-01  Paul Eggert  <eggert@cs.ucla.edu>
871
872         * tramp-sh.el (tramp-get-remote-touch): Omit unnecessary call to
873         current-time.
874
875 2014-10-25  Michael Albinus  <michael.albinus@gmx.de>
876
877         * tramp-gvfs.el (tramp-gvfs-methods-mounttracker)
878         (tramp-gvfs-mountlocation-signature): Check `tramp-gvfs-enabled'
879         during initialization.  (Bug#18774)
880
881 2014-10-14  Jérémy Compostella  <jeremy.compostella@intel.com>
882             Michael Albinus  <michael.albinus@gmx.de>
883
884         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
885         Reduce the amount of set environment variable commands.
886
887 2014-10-12  Michael Albinus  <michael.albinus@gmx.de>
888
889         * tramp-sh.el (tramp-get-remote-id): Check also for "gid".
890
891 2014-10-12  Stefan Monnier  <monnier@iro.umontreal.ca>
892
893         * tramp-sh.el (tramp-sh-handle-vc-registered): Don't modify the
894         global vc-handled-backends (bug#18535).
895
896 2014-09-14  Michael Albinus  <michael.albinus@gmx.de>
897
898         * tramp-cache.el (tramp-flush-file-function): Simplify check.
899         Suppress debug messages.
900
901         * tramp.el (tramp-file-name-handler):
902         * tramp-gvfs.el (tramp-gvfs-url-file-name): Apply `cons' where
903         appropriate.
904
905 2014-09-05  Michael Albinus  <michael.albinus@gmx.de>
906
907         * tramp-sh.el (tramp-sh-handle-start-file-process):
908         Expand `default-directory'.
909
910 2014-08-28  Michael Albinus  <michael.albinus@gmx.de>
911
912         * tramp.el (tramp-handle-shell-command): Use `display-buffer'.
913         (Bug#18326)
914
915 2014-08-27  Michael Albinus  <michael.albinus@gmx.de>
916
917         * tramp-adb.el: Spell author name correctly.
918
919 2014-08-07  Reuben Thomas  <rrt@sc3d.org>
920
921         * tramp.el (tramp-handle-file-symlink-p):
922         * tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment
923         about VMS, which we no longer support.
924
925 2014-08-07  Michael Albinus  <michael.albinus@gmx.de>
926
927         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
928         Use cached "remote-copy-args" value, if available.  (Bug#18199)
929
930 2014-08-05  Michael Albinus  <michael.albinus@gmx.de>
931
932         * tramp-cache.el (tramp-flush-file-function): Suppress function
933         also for Tramp working buffers.
934
935 2014-07-28  Emilio C. Lopes  <eclig@gmx.net>
936
937         * tramp-sh.el (tramp-get-remote-python): Also search for
938         executables named "python2" or "python3".
939         (tramp-get-remote-uid-with-python): Use parentheses around
940         arguments to `print' to make it compatible with Python 3.
941         (tramp-get-remote-gid-with-python): Ditto.  (Bug#18118)
942
943 2014-07-24  Michael Albinus  <michael.albinus@gmx.de>
944
945         * tramp-cache.el (tramp-flush-file-function): Wrap the code with
946         `save-match-data'.  (Bug#18095)
947
948 2014-07-03  Michael Albinus  <michael.albinus@gmx.de>
949
950         * .cvsignore: Remove.
951
952         * .gitignore: Adjust.
953
954         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
955         Prefer utf-8 coding.  (Bug#17859)
956
957         * trampver.el.in: Replace CVS by GIT.
958
959 2014-07-02  Michael Albinus  <michael.albinus@gmx.de>
960
961         * tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
962
963         * tramp-sh.el (tramp-sh-handle-set-visited-file-modtime)
964         (tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.
965
966 2014-06-23  Mario Lang  <mlang@delysid.org>
967
968         * tramp-adb.el (tramp-adb-send-command-and-check): And and -> and.
969
970 2014-06-20  Michael Albinus  <michael.albinus@gmx.de>
971
972         * tramp-adb.el (tramp-adb-handle-process-file):
973         * tramp-sh.el (tramp-sh-handle-process-file):
974         * tramp-smb.el (tramp-smb-handle-process-file): Do not raise the
975         output buffer when DISPLAY is non-nil.  (Bug#17815)
976
977 2014-06-16  Michael Albinus  <michael.albinus@gmx.de>
978
979         * tramp.el (tramp-call-process): Handle error strings.
980
981 2014-06-15  Michael Albinus  <michael.albinus@gmx.de>
982
983         Version 2.2.10 released.
984
985         * tramp.el (tramp-check-cached-permissions):
986         Use `tramp-compat-file-attributes'.
987
988         * tramp-cache.el (tramp-flush-file-function): Do not flush file
989         properties of temporary buffers.
990
991         * tramp-sh.el (tramp-call-local-coding-command): Use nil as
992         argument of `tramp-call-process'.
993
994 2014-06-13  Michael Albinus  <michael.albinus@gmx.de>
995
996         * tramp.el (tramp-call-process): Add new argument VEC.
997         (tramp-set-completion-function, tramp-parse-putty)
998         * tramp-adb.el (tramp-adb-execute-adb-command)
999         * tramp-sh.el (tramp-sh-handle-set-file-times)
1000         (tramp-set-file-uid-gid, tramp-do-copy-or-rename-file-out-of-band)
1001         (tramp-sh-handle-write-region, tramp-call-local-coding-command):
1002         Adapt callees.
1003
1004         * tramp-adb.el (tramp-adb-maybe-open-connection): Don't set
1005         `tramp-current-*' variables.
1006
1007         * tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions):
1008         Use "-h" option for "gvfs-ls".
1009         (tramp-gvfs-send-command): Simplify traces.
1010
1011         * tramp-smb.el (tramp-smb-handle-insert-directory): Use progress
1012         reporter.
1013
1014 2014-06-03  Michael Albinus  <michael.albinus@gmx.de>
1015
1016         * tramp.el (tramp-ssh-controlmaster-options): Improve search
1017         regexp.  (Bug#17653)
1018
1019 2014-06-02  Michael Albinus  <michael.albinus@gmx.de>
1020
1021         * tramp.el (tramp-call-process): Add traces.
1022         (tramp-handle-unhandled-file-name-directory): Return "/".
1023
1024 2014-05-31  Michael Albinus  <michael.albinus@gmx.de>
1025
1026         * tramp-adb.el (tramp-adb-handle-write-region): Improve messages.
1027
1028         * tramp-efs.el (top):
1029         * tramp-ftp.el (top): Remove special handling for URL syntax.
1030
1031         * tramp-gvfs.el (tramp-gvfs-handle-delete-file): Flush file
1032         properties, not directory properties.
1033
1034         * tramp-smb.el (tramp-smb-handle-copy-directory)
1035         (tramp-smb-handle-set-file-acl): Use `start-process'.
1036         (tramp-smb-handle-rename-file): Flush also file properties of
1037         FILENAME.
1038
1039 2014-05-26  Michael Albinus  <michael.albinus@gmx.de>
1040
1041         * tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
1042         (tramp-gvfs-handle-file-attributes): Use `string-to-number' when
1043         reading "unix::mode".
1044         (tramp-gvfs-url-file-name): `user' and `localname' could be nil.
1045
1046         * tramp-sh.el (tramp-methods) <sftp>: Remove.  It has never worked
1047         satisfactorily.
1048         (top): Remove completion function for "sftp".
1049
1050 2014-05-17  Michael Albinus  <michael.albinus@gmx.de>
1051
1052         * tramp-sh.el (tramp-find-inline-encoding): Do not match "%%t" for
1053         a temporary file name.
1054
1055 2014-05-13  Michael Albinus  <michael.albinus@gmx.de>
1056
1057         * tramp-sh.el (tramp-methods) <plinkx>: Reinsert.  There are
1058         cases, where "plink -ssh" is not desired.
1059         (top): Reinsert completion function for "plinkx".
1060
1061 2014-05-12  Michael Albinus  <michael.albinus@gmx.de>
1062
1063         * tramp.el (tramp-handle-file-accessible-directory-p): Check for
1064         `file-readable-p' instead of `file-executable-p'.
1065
1066 2014-05-06  Michael Albinus  <michael.albinus@gmx.de>
1067
1068         * tramp-sh.el (tramp-uudecode): Replace the hard-coded temporary
1069         file name by a format specifier.
1070         (tramp-remote-coding-commands): Enhance docstring.
1071         (tramp-find-inline-encoding): Replace "%t" by a temporary file
1072         name.  (Bug#17415)
1073         This is CVE-2014-3424.
1074
1075 2014-05-05  Michael Albinus  <michael.albinus@gmx.de>
1076
1077         * tramp-sh.el (tramp-remote-process-environment): Change :version
1078         to "24.4".
1079         (tramp-open-shell): Do not let-bind `tramp-end-of-output'.
1080
1081 2014-04-22  Michael Albinus  <michael.albinus@gmx.de>
1082
1083         * tramp-sh.el (tramp-sh-handle-file-name-all-completions):
1084         Set IFS=" when using read builtin, in order to preserve spaces in
1085         the file name.
1086
1087 2014-04-16  Michael Albinus  <michael.albinus@gmx.de>
1088
1089         * tramp.el (tramp-run-real-handler, tramp-file-name-handler):
1090         Do not autoload.
1091         (tramp-file-name-handler, tramp-completion-file-name-handler):
1092         Revert patch from 2014-04-10, it isn't necessary anymore.
1093         (tramp-autoload-file-name-handler)
1094         (tramp-register-autoload-file-name-handlers): New defuns.
1095         (top): Autoload call of `tramp-register-autoload-file-name-handlers'.
1096         (tramp-register-file-name-handlers): Remove also
1097         `tramp-autoload-file-name-handler' from `file-name-handler-list'.
1098         Do not autoload its invocation, but eval it after loading of 'tramp.
1099
1100 2014-04-13  Michael Albinus  <michael.albinus@gmx.de>
1101
1102         * tramp-sh.el (tramp-sh-handle-file-truename): Revert previous
1103         patch, there are new problems with file names containing spaces.
1104         Get rid of backticks.  (Bug#17238)
1105
1106 2014-04-11  Michael Albinus  <michael.albinus@gmx.de>
1107
1108         * tramp-sh.el (tramp-sh-handle-file-truename): Quote the file name
1109         twice due to backticks.  (Bug#17238)
1110         (tramp-sh-handle-expand-file-name): Tweak docstring.
1111
1112 2014-04-10  Michael Albinus  <michael.albinus@gmx.de>
1113
1114         * tramp.el (tramp-methods): Tweak docstring.
1115         (tramp-file-name-handler, tramp-completion-file-name-handler):
1116         Avoid recursive loading.
1117
1118         * tramp-adb.el (tramp-unload-hook): Unload `tramp-adb'.
1119
1120         * tramp-compat.el (tramp-unload-hook): Unload `tramp-loaddefs'.
1121
1122         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
1123         Tweak docstring.
1124         (tramp-sh-handle-write-region): Tweak error message.
1125         (tramp-make-copy-program-file-name): Tweak docstring.  Quote
1126         result also locally.
1127
1128 2014-03-31  Michael Albinus  <michael.albinus@gmx.de>
1129
1130         * tramp-sh.el (tramp-remote-process-environment): Remove HISTFILE
1131         and HISTSIZE; it's too late to set them here.  Add :version entry.
1132         (tramp-open-shell): Add "HISTFILE=/dev/null" to the shell's env
1133         arguments.  Do not send extra "PSx=..." commands.
1134         (tramp-maybe-open-connection): Setenv HISTFILE to /dev/null.
1135
1136 2014-03-25  Michael Albinus  <michael.albinus@gmx.de>
1137
1138         * tramp.el (tramp-connection-timeout): Fix docstring.
1139
1140         * tramp-sh.el (tramp-sh-handle-vc-registered): Revert change from
1141         2014-03-07, it decreases performance unnecessarily.  Let-bind
1142         `remote-file-name-inhibit-cache' to nil in the second pass.
1143         (tramp-do-copy-or-rename-file-directly): In the `rename' case,
1144         check whether source directory has set the sticky bit.
1145
1146 2014-03-24  Michael Albinus  <michael.albinus@gmx.de>
1147
1148         * tramp-sh.el (tramp-methods) <plinkx>: Remove.  Use its
1149         `tramp-login-args' for "plink", "pscp" and "psftp".
1150         (top): Remove completion function for "plinkx".  Completion
1151         function for "psftp" is `tramp-completion-function-alist-ssh'.
1152         (tramp-find-executable): Do not call "which" on SunOS.
1153
1154 2014-03-23  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
1155
1156         * tramp.el (tramp-read-passwd): Suspend the timers while reading
1157         the password.
1158
1159 2014-03-21  Michael Albinus  <michael.albinus@gmx.de>
1160
1161         * tramp.el (tramp-methods): Add docstring for `tramp-login-env'
1162         and `tramp-copy-env'.
1163
1164         * tramp-sh.el (tramp-methods) <sudo>: Add `tramp-login-env'.
1165         (tramp-maybe-open-connection): Handle `tramp-login-env'.
1166
1167 2014-03-20  Michael Albinus  <michael.albinus@gmx.de>
1168
1169         * tramp-sh.el (vc-handled-backends, vc-bzr-program)
1170         (vc-git-program, vc-hg-program): Declare.
1171         (tramp-sh-handle-vc-registered): Remove backends when the remote
1172         binary does not exist.
1173
1174 2014-03-17  Michael Albinus  <michael.albinus@gmx.de>
1175
1176         * tramp.el (tramp-action-out-of-band): Read pending output.
1177
1178         * tramp-sh.el (tramp-methods) <telnet, nc>: Redirect stderr to
1179         "/dev/null".
1180         (tramp-do-copy-or-rename-file-out-of-band): Simplify assembling of
1181         remote command.
1182         (tramp-find-inline-encoding): Do not raise an error.
1183         (tramp-send-command-and-check): Fix docstring.
1184
1185 2014-03-16  Michael Albinus  <michael.albinus@gmx.de>
1186
1187         * tramp-sh.el (tramp-methods) <nc>:  Tune `tramp-remote-copy-*'.
1188         (tramp-do-copy-or-rename-file-out-of-band): Fiddle with the remote
1189         commands.
1190
1191 2014-03-14  Michael Albinus  <michael.albinus@gmx.de>
1192
1193         * tramp.el (tramp-methods): Add docstring for
1194         `tramp-remote-copy-program' and `tramp-remote-copy-args'.
1195
1196         * tramp-sh.el (tramp-methods) <nc>: Add `tramp-remote-copy-*'.
1197         (tramp-do-copy-or-rename-file-out-of-band): Merge
1198         `tramp-do-copy-or-rename-file-with-nc'.
1199         (tramp-do-copy-or-rename-file-with-nc, tramp-get-remote-nc): Remove.
1200         (tramp-make-copy-program-file-name): Handle also the "nc" case.
1201
1202 2014-03-13  Michael Albinus  <michael.albinus@gmx.de>
1203
1204         * tramp.el (tramp-methods): Fix docstring for `tramp-copy-program'.
1205         (tramp-call-process): Trace also DESTINATION.
1206
1207         * tramp-sh.el (tramp-methods, tramp-default-user-alist): Add "nc".
1208         (top): Completion function for "nc" is
1209         `tramp-completion-function-alist-telnet'.
1210         (tramp-do-copy-or-rename-file-out-of-band): Call function if
1211         adviced in `tramp-methods'.  Do not set `default-directory' for
1212         `start-process-shell-command' call, not needed anymore.
1213         (tramp-do-copy-or-rename-file-with-nc, tramp-get-remote-nc): New defuns.
1214
1215 2014-03-10  Michael Albinus  <michael.albinus@gmx.de>
1216
1217         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
1218         Do not add nil to the environment, when there's no remote `locale'.
1219         (tramp-find-inline-encoding): Check, that the remote host has
1220         installed perl, before sending scripts.
1221
1222 2014-03-07  Michael Albinus  <michael.albinus@gmx.de>
1223
1224         * tramp-sh.el (tramp-sh-handle-vc-registered): Run first pass only
1225         when `remote-file-name-inhibit-cache' is nil.
1226         (tramp-sh-file-name-handler): Use `tramp-error'.  Simplify code.
1227
1228 2014-03-06  Michael Albinus  <michael.albinus@gmx.de>
1229
1230         * tramp.el (tramp-error): VEC-OR-PROC can be nil.
1231         (tramp-action-password): Clear password cache if needed.
1232         (tramp-read-passwd): Do not clear password cache.
1233
1234         * tramp-gvfs.el (tramp-gvfs-handler-askpassword): Clear password
1235         cache unless it is the first password request.
1236
1237 2014-03-04  Michael Albinus  <michael.albinus@gmx.de>
1238
1239         * tramp-sh.el (tramp-sh-handle-vc-registered): Do not call
1240         `tramp-send-command-and-check'.
1241
1242 2014-02-28  Michael Albinus  <michael.albinus@gmx.de>
1243
1244         * tramp-adb.el (tramp-adb-parse-device-names):
1245         Use `accept-process-output'.
1246         (tramp-adb-handle-file-truename): Cache the localname only.
1247         (tramp-adb-handle-make-directory)
1248         (tramp-adb-handle-delete-directory): Flush file properties correctly.
1249         (tramp-adb-handle-set-file-modes): Do not raise an error when file
1250         modes cannot be changed.
1251
1252         * tramp-cache.el (tramp-flush-directory-property): Remove also
1253         file properties of symlinks.
1254
1255 2014-02-27  Michael Albinus  <michael.albinus@gmx.de>
1256
1257         * tramp.el (tramp-call-process): Improve trace message.
1258         (tramp-handle-insert-file-contents): Trace error case.
1259
1260         * tramp-adb.el (tramp-adb-file-name-handler-alist)
1261         <insert-directory>: Use `tramp-handle-insert-directory'.
1262         (tramp-adb-handle-insert-directory): Remove function.
1263         (tramp-adb-send-command-and-check): New defun, replacing
1264         `tramp-adb-command-exit-status'.  Change all callees.
1265         (tramp-adb-handle-file-attributes)
1266         (tramp-adb-handle-directory-files-and-attributes): Use it.
1267         (tramp-adb-ls-output-name-less-p): Use
1268         `directory-listing-before-filename-regexp'.
1269         (tramp-adb-handle-delete-directory): Flush also file properties of
1270         the truename of directory.
1271         (tramp-adb-handle-file-name-all-completions): Add "./" and "../".
1272         (tramp-adb-handle-file-local-copy): Make the local copy readable.
1273         (tramp-adb-handle-write-region): Implement APPEND.
1274         (tramp-adb-handle-rename-file): Make it more robust.  Flush file
1275         properties correctly.
1276         (tramp-adb-maybe-open-connection): Set `tramp-current-*'
1277         variables.  Check for connected devices only when needed.
1278
1279 2014-02-27  Daniel Colascione  <dancol@dancol.org>
1280
1281         * tramp-sh.el (tramp-get-remote-path): Don't signal error when
1282         explicit tramp path is empty.
1283
1284 2014-02-24  Michael Albinus  <michael.albinus@gmx.de>
1285
1286         * tramp-sh.el (tramp-sh-handle-file-truename): Improve last fix.
1287
1288 2014-02-23  Michael Albinus  <michael.albinus@gmx.de>
1289
1290         * tramp-sh.el (tramp-sh-handle-file-truename):
1291         Preserve trailing "/".  (Bug#16851)
1292
1293 2014-02-21  Michael Albinus  <michael.albinus@gmx.de>
1294
1295         * tramp.el (tramp-check-cached-permissions):
1296         Call `file-attributes' with `suffix' being a symbol but a string.
1297
1298 2014-02-20  Michael Albinus  <michael.albinus@gmx.de>
1299
1300         * tramp.el (ls-lisp-use-insert-directory-program): Declare.
1301         (tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el.
1302
1303         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
1304         <insert-directory>: Use `tramp-handle-insert-directory'.
1305         (tramp-gvfs-handle-insert-directory): Remove function.
1306
1307         * tramp-sh.el (tramp-sh-handle-insert-directory):
1308         Call `tramp-handle-insert-directory'.
1309
1310 2014-02-19  Michael Albinus  <michael.albinus@gmx.de>
1311
1312         * tramp.el (tramp-handle-make-symbolic-link): New defun.
1313         (tramp-check-cached-permissions): Call `file-attributes' if the
1314         cache is empty.
1315
1316         * tramp-adb.el (tramp-adb-file-name-handler-alist)
1317         <make-symbolic-link>: Use `tramp-handle-make-symbolic-link'.
1318
1319         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
1320         <make-symbolic-link>: Use `tramp-handle-make-symbolic-link'.
1321         (tramp-gvfs-maybe-open-connection): Set always connection
1322         properties, even if target is mounted already.
1323
1324         * tramp-sh.el (tramp-color-escape-sequence-regexp):
1325         Set tramp-autoload cookie.
1326         (tramp-get-remote-touch): New defun.
1327         (tramp-sh-handle-set-file-times): Use it.
1328         (tramp-sh-handle-directory-files-and-attributes):
1329         Use `tramp-handle-directory-files-and-attributes' if neither stat
1330         nor perl are available on the remote host.
1331
1332         * tramp-smb.el (tramp-smb-handle-insert-directory): Mark trailing
1333         "/".  Write long listing only when "l" belongs to the switches.
1334
1335 2014-02-16  Michael Albinus  <michael.albinus@gmx.de>
1336
1337         Version 2.2.9 released.
1338
1339 2014-02-10  Michael Albinus  <michael.albinus@gmx.de>
1340
1341         * tramp-sh.el (tramp-sh-handle-vc-registered): Apply heredoc
1342         script more robustly.
1343
1344 2014-02-08  Michael Albinus  <michael.albinus@gmx.de>
1345
1346         * tramp-sh.el (tramp-sh-handle-start-file-process): Insert output
1347         at end of buffer.  (Bug#16120)
1348
1349 2014-02-06  Michael Albinus  <michael.albinus@gmx.de>
1350
1351         * tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&"
1352         instead of ";" in order to avoid additional prompts.  Let heredoc
1353         scripts read from tty.  (Bug#16582)
1354         (tramp-send-command): No special handling of heredocs, it isn't
1355         necessary anymore.
1356
1357 2014-02-05  Michael Albinus  <michael.albinus@gmx.de>
1358
1359         * tramp-sh.el (tramp-end-of-heredoc): New defconst.
1360         (tramp-sh-handle-set-file-acl)
1361         (tramp-sh-handle-start-file-process)
1362         (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
1363         (tramp-find-executable, tramp-send-command): Use it.
1364
1365 2014-01-17  Michael Albinus  <michael.albinus@gmx.de>
1366
1367         * tramp.el (tramp-password-prompt-regexp): Use
1368         `password-word-equivalents' if available.
1369         (tramp-action-password, tramp-process-one-action)
1370         (tramp-read-passwd): Let-bind `case-fold-search' to t.  (Bug#13124)
1371
1372 2013-12-06  Michael Albinus  <michael.albinus@gmx.de>
1373
1374         * tramp-sh.el (tramp-sh-handle-start-file-process): Handle long
1375         command lines, lasting from "sh -c ...".  (Bug#16045)
1376
1377 2013-12-02  Michael Albinus  <michael.albinus@gmx.de>
1378
1379         * tramp-sh.el (tramp-remote-process-environment): Do not set "LC_ALL".
1380         (tramp-get-remote-locale): New defun.
1381         (tramp-open-connection-setup-interactive-shell): Use it.
1382
1383 2013-11-26  Michael Albinus  <michael.albinus@gmx.de>
1384
1385         * tramp.el (tramp-file-name-regexp-unified): Support IPv6 host
1386         names on MS Windows, like "/[::1]:".
1387
1388         * tramp-sh.el (tramp-sh-handle-insert-directory): Accept nil
1389         SWITCHES.
1390
1391 2013-11-25  Michael Albinus  <michael.albinus@gmx.de>
1392
1393         * tramp-cmds.el (tramp-cleanup-connection): Clean up
1394         `tramp-current-connection' only when KEEP-PASSWORD is non-nil.
1395
1396 2013-11-16  Michael Albinus  <michael.albinus@gmx.de>
1397
1398         * tramp-cmds.el (tramp-cleanup-connection): Clean up
1399         `tramp-current-connection'.
1400
1401 2013-11-15  Michael Albinus  <michael.albinus@gmx.de>
1402
1403         * tramp-sh.el (tramp-remote-process-environment): Set "LC_ALL" to
1404         "en_US.utf8" and "LC_CTYPE" to "".
1405         (tramp-maybe-open-connection): Set "LC_ALL" to "en_US.utf8".
1406         (tramp-sh-handle-insert-directory): Don't set "LC_ALL" and "LC_CTYPE".
1407
1408 2013-11-14  Michael Albinus  <michael.albinus@gmx.de>
1409
1410         * tramp-gvfs.el (top): Run init code only when
1411         `tramp-gvfs-enabled' is not nil.
1412         (tramp-gvfs-enabled): Check also :system bus.
1413
1414 2013-11-13  Michael Albinus  <michael.albinus@gmx.de>
1415
1416         * tramp.el (tramp-remote-file-name-spec-regexp): An IPv6 address
1417         can be empty.
1418
1419         * tramp-gvfs.el (tramp-gvfs-handle-insert-directory): Accept nil
1420         SWITCHES.
1421         (tramp-gvfs-handle-write-region): Implement APPEND.
1422
1423 2013-11-11  Michael Albinus  <michael.albinus@gmx.de>
1424
1425         * tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer)
1426         (tramp-sh-handle-file-local-copy): Don't write a message when
1427         saving temporary files.
1428
1429         * tramp-smb.el (tramp-smb-handle-copy-directory): Fix bug when
1430         both directories are remote.
1431         (tramp-smb-handle-directory-files): Do not return double entries.
1432         Do not expand full file names.
1433         (tramp-smb-handle-insert-directory): Accept nil SWITCHES.
1434         (tramp-smb-handle-write-region): Implement APPEND.
1435         (tramp-smb-get-stat-capability): Fix a stupid bug.
1436
1437 2013-11-05  Michael Albinus  <michael.albinus@gmx.de>
1438
1439         Fix problems found while writing a test suite.
1440
1441         * tramp-compat.el (tramp-compat-load): New defun.
1442         * tramp.el (tramp-handle-load): Use it.
1443
1444         * tramp-sh.el (tramp-sh-handle-add-name-to-file): Handle the case
1445         "(numberp ok-if-already-exists)" correctly.
1446
1447 2013-11-04  Michael Albinus  <michael.albinus@gmx.de>
1448
1449         Fix problems found while writing a test suite.
1450
1451         * tramp.el (tramp-file-name-regexp-unified): Simplify.
1452         (tramp-file-name-for-operation): Use `tramp-tramp-file-p'.
1453         (tramp-handle-substitute-in-file-name): Let-bind `process-environment'
1454         to nil when running original file name handler.  Otherwise,
1455         there are problems with constructs like "$$FOO".
1456
1457         * tramp-sh.el (tramp-do-copy-or-rename-file): Use correct prefix
1458         for `localname'.
1459
1460 2013-10-28  Michael Albinus  <michael.albinus@gmx.de>
1461
1462         * tramp-sh.el (tramp-sh-handle-copy-directory):
1463         * tramp-smb.el (tramp-smb-handle-copy-directory):
1464         Handle COPY-CONTENTS.  (Bug#15737)
1465
1466 2013-10-18  Michael Albinus  <michael.albinus@gmx.de>
1467
1468         * tramp-smb.el (tramp-smb-maybe-open-connection): Fix an error
1469         introduced on 2013-09-08, which results in an infinite loop
1470         requesting a password.
1471
1472 2013-10-17  Michael Albinus  <michael.albinus@gmx.de>
1473
1474         Code cleanup.
1475
1476         * tramp.el (tramp-debug-message): Do not check for connection buffer.
1477         (tramp-message): Use "vector" connection property.
1478         (tramp-rfn-eshadow-update-overlay, tramp-equal-remote)
1479         (tramp-eshell-directory-change): Use `tramp-tramp-file-p' instead
1480         of `file-remote-p'.
1481         (tramp-connectable-p, tramp-handle-file-remote-p): Suppress
1482         unrelated traces.
1483
1484         * tramp-adb.el (tramp-adb-handle-copy-file)
1485         (tramp-adb-handle-rename-file): Use `tramp-tramp-file-p' instead
1486         of `file-remote-p'.
1487         (tramp-adb-maybe-open-connection): Set "vector" connection property.
1488
1489         * tramp-cache.el (top): Suppress traces when reading persistency file.
1490
1491         * tramp-cmds.el (tramp-list-remote-buffers)
1492         (tramp-cleanup-connection, tramp-cleanup-this-connection): Use
1493         `tramp-tramp-file-p' instead of `file-remote-p'.
1494
1495         * tramp-compat.el (tramp-compat-process-running-p): Use
1496         `tramp-tramp-file-p' instead of `file-remote-p'.
1497
1498         * tramp-ftp.el (tramp-ftp-file-name-handler): Use
1499         `tramp-tramp-file-p' instead of `file-remote-p'.
1500
1501         * tramp-gvfs.el (tramp-gvfs-handle-copy-file)
1502         (tramp-gvfs-handle-rename-file): Use `tramp-tramp-file-p' instead
1503         of `file-remote-p'.
1504         (tramp-gvfs-handle-file-notify-add-watch): Set "vector" connection
1505         property.
1506
1507         * tramp-gw.el (tramp-gw-gw-proc-sentinel)
1508         (tramp-gw-aux-proc-sentinel, tramp-gw-process-filter)
1509         (tramp-gw-open-network-stream): Suppress unrelated traces.
1510
1511         * tramp-sh.el (tramp-sh-handle-set-file-times)
1512         (tramp-set-file-uid-gid): Use `tramp-tramp-file-p' instead of
1513         `file-remote-p'.
1514         (tramp-do-copy-or-rename-file-out-of-band): Set "vector"
1515         connection property.  Improve debug message.
1516         (tramp-sh-handle-file-notify-add-watch): Refactor common code.
1517         Set "vector" connection property.  Improve debug message.
1518         (tramp-maybe-open-connection): Do not request connection buffer
1519         too early.
1520
1521         * tramp-smb.el (tramp-smb-actions-get-acl): New defconst, renamed
1522         from `tramp-smb-actions-with-acl'.
1523         (tramp-smb-actions-set-acl): New defconst.
1524         (tramp-smb-handle-copy-directory)
1525         (tramp-smb-maybe-open-connection): Set "vector" connection
1526         property.
1527         (tramp-smb-handle-copy-file, tramp-smb-handle-rename-file): Use
1528         `tramp-tramp-file-p' instead of `file-remote-p'.
1529         (tramp-smb-action-get-acl): New defun, renamed from
1530         `tramp-smb-action-with-acl'.
1531         (tramp-smb-action-set-acl): New defun.
1532         (tramp-smb-handle-set-file-acl): Rewrite.
1533         (tramp-smb-call-winexe): Do not request connection buffer
1534         too early.
1535
1536 2013-10-16  Michael Albinus  <michael.albinus@gmx.de>
1537
1538         * tramp-smb.el (tramp-smb-acl-program): New custom option.
1539         (tramp-smb-errors): Add error messages.
1540         (tramp-smb-actions-with-acl): New defconst.
1541         (tramp-smb-file-name-handler-alist) <set-file-acl>: Add handler.
1542         (tramp-smb-action-with-acl, tramp-smb-handle-set-file-acl): New defuns.
1543         (tramp-smb-handle-file-acl): Rewrite, using "smbcacls".
1544         (tramp-smb-handle-file-attributes): Simplify test for "stat" capability.
1545         (tramp-smb-get-stat-capability): Fix tests.
1546
1547 2013-10-07  Michael Albinus  <michael.albinus@gmx.de>
1548
1549         * tramp.el (tramp-handle-insert-file-contents): Improve handling
1550         of BEG and END.
1551
1552         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use
1553         `tramp-handle-insert-file-contents'.
1554         (tramp-gvfs-handle-insert-file-contents): Remove function.
1555
1556         * tramp-sh.el (tramp-sh-handle-insert-directory): Use
1557         `save-restriction' in order to keep markers.
1558
1559 2013-10-02  Michael Albinus  <michael.albinus@gmx.de>
1560
1561         Version 2.2.8 released.
1562
1563         * tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
1564         * tramp-cache.el (tramp-cache-print): Use `tramp-compat-funcall'.
1565
1566 2013-09-19  Michael Albinus  <michael.albinus@gmx.de>
1567
1568         * tramp-sh.el (tramp-get-remote-id): Do not raise an error.
1569         (tramp-get-remote-uid-with-id, tramp-get-remote-gid-with-id)
1570         (tramp-get-remote-python): New defuns.
1571         (tramp-get-remote-uid-with-perl)
1572         (tramp-get-remote-gid-with-perl): New defuns.  Perl code
1573         contributed by yary <not.com@gmail.com> (tiny change).
1574         (tramp-get-remote-uid-with-python)
1575         (tramp-get-remote-gid-with-python): New defuns.  Python code
1576         contributed by Andrey Tykhonov <atykhonov@gmail.com> (tiny change).
1577         (tramp-get-remote-uid, tramp-get-remote-gid): Use new defuns.
1578
1579 2013-09-12  Michael Albinus  <michael.albinus@gmx.de>
1580
1581         * tramp.el (tramp-check-proper-method-and-host): Rename it from
1582         `tramp-check-proper-host'.  Check for a valid method name.
1583
1584         * tramp-adb.el (tramp-adb-maybe-open-connection):
1585         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
1586         * tramp-sh.el (tramp-maybe-open-connection):
1587         * tramp-smb.el (tramp-smb-maybe-open-connection): Call it.
1588
1589         * tramp-cache.el (tramp-cache-print): Don't print text properties
1590         also for hash values.
1591
1592 2013-09-10  Michael Albinus  <michael.albinus@gmx.de>
1593
1594         * tramp.el (tramp-cleanup): Remove.  Functionality added to
1595         `tramp-cleanup-connection'.
1596
1597         * tramp-cmds.el (tramp-cleanup-connection): Add optional
1598         parameters KEEP-DEBUG and KEEP-PASSWORD.
1599
1600         * tramp.el (tramp-file-name-handler):
1601         * tramp-adb.el (tramp-adb-maybe-open-connection):
1602         * tramp-sh.el (tramp-open-connection-setup-interactive-shell)
1603         (tramp-maybe-open-connection):
1604         * tramp-smb.el (tramp-smb-maybe-open-connection): Use
1605         `tramp-cleanup-connection'.
1606
1607 2013-09-09  Michael Albinus  <michael.albinus@gmx.de>
1608
1609         * tramp-sh.el (tramp-open-connection-setup-interactive-shell): Do
1610         not clear password when throwing 'uname-changed.
1611         (tramp-maybe-open-connection): Catch 'uname-changed inside the
1612         progress reporter.
1613
1614 2013-09-08  Michael Albinus  <michael.albinus@gmx.de>
1615
1616         Improve compatibility with older Emacsen, and XEmacs.
1617
1618         * .gitignore: Add files.
1619
1620         * tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
1621         only if it is bound.  It isn't for XEmacs.
1622         (with-tramp-progress-reporter): Do not let-bind `result'.  This
1623         yields to scoping errors in XEmacs.
1624         (tramp-handle-make-auto-save-file-name): New function, moved from
1625         tramp-sh.el.
1626
1627         * tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
1628         for `make-auto-save-file-name'.
1629         (tramp-adb--gnu-switches-to-ash): Use
1630         `tramp-compat-replace-regexp-in-string'.
1631
1632         * tramp-cache.el (tramp-cache-print): Call
1633         `substring-no-properties' only if it is bound.  It isn't for XEmacs.
1634
1635         * tramp-cmds.el (tramp-bug): Call `propertize' only if it is
1636         bound.  It isn't for XEmacs.
1637
1638         * tramp-compat.el (tramp-compat-copy-file): Catch
1639         `wrong-number-of-arguments' error.
1640         (tramp-compat-replace-regexp-in-string): New defun.
1641
1642         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
1643         for `make-auto-save-file-name'.
1644         (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
1645         `copy-file'.
1646         (tramp-gvfs-file-gvfs-monitor-file-process-filter)
1647         (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
1648         (tramp-synce-list-devices): Use `push' instead of `pushnew'.
1649
1650         * tramp-gw.el (tramp-gw-open-network-stream): Use
1651         `tramp-compat-replace-regexp-in-string'.
1652
1653         * tramp-sh.el (tramp-sh-file-name-handler-alist): Call
1654         `tramp-handle-make-auto-save-file-name'.
1655         (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
1656         (tramp-sh-file-gvfs-monitor-dir-process-filter)
1657         (tramp-sh-file-inotifywait-process-filter): Use
1658         `tramp-compat-replace-regexp-in-string'.
1659         (tramp-compute-multi-hops): Use `push' instead of `pushnew'.
1660
1661         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
1662         for `make-auto-save-file-name'.
1663         (tramp-smb-handle-copy-directory): Call
1664         `tramp-compat-replace-regexp-in-string'.
1665         (tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
1666         (tramp-smb-handle-copy-file): Improve error message.
1667         (tramp-smb-handle-rename-file): Rename directly only in case
1668         `newname' does not exist yet.  This is a restriction of smbclient.
1669         (tramp-smb-maybe-open-connection): Rerun the function only when
1670         `auth-sources' is non-nil.
1671
1672 2013-09-06  Michael Albinus  <michael.albinus@gmx.de>
1673
1674         Remove URL syntax.
1675
1676         * tramp.el (tramp-syntax, tramp-prefix-format)
1677         (tramp-postfix-method-format, tramp-prefix-ipv6-format)
1678         (tramp-postfix-ipv6-format, tramp-prefix-port-format)
1679         (tramp-postfix-host-format, tramp-file-name-regexp)
1680         (tramp-completion-file-name-regexp)
1681         (tramp-completion-dissect-file-name)
1682         (tramp-handle-substitute-in-file-name): Remove 'url case.
1683         (tramp-file-name-regexp-url)
1684         (tramp-completion-file-name-regexp-url): Remove constants.
1685
1686 2013-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
1687
1688         * tramp.el (with-parsed-tramp-file-name):
1689         * tramp-compat.el (tramp-compat-with-temp-message): Silence
1690         compiler warnings, and factor out common code.
1691
1692         * tramp-gvfs.el (tramp-gvfs-mount-spec, tramp-synce-list-devices):
1693         * tramp-smb.el (tramp-smb-get-file-entries):
1694         * tramp-sh.el (tramp-sh-handle-insert-directory)
1695         (tramp-compute-multi-hops): Fix misuses of `add-to-list'.
1696
1697 2013-09-02  Michael Albinus  <michael.albinus@gmx.de>
1698
1699         * tramp-compat.el (tramp-compat-user-error): Move it ...
1700         * tramp.el (tramp-user-error): ... here.
1701         (tramp-find-method, tramp-check-proper-host)
1702         (tramp-dissect-file-name, tramp-debug-message)
1703         (tramp-handle-shell-command):
1704         * tramp-adb.el (tramp-adb-handle-shell-command):
1705         * tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
1706
1707         * tramp-cache.el (tramp-cache-print): Don't print text properties.
1708
1709 2013-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1710
1711         Misc changes to reduce use of `(lambda...); and other cleanups.
1712
1713         * tramp.el (with-tramp-progress-reporter): Avoid setq.
1714
1715 2013-08-26  Michael Albinus  <michael.albinus@gmx.de>
1716
1717         * tramp.el (tramp-find-method, tramp-find-user): Mark result with
1718         text property `tramp-default', if appropriate.
1719         (tramp-check-proper-host): New defun.
1720         (tramp-dissect-file-name): Do not check hostname.  Revert change
1721         of 2013-03-18.
1722         (tramp-backtrace): Make VEC-OR-PROC optional.
1723
1724         * tramp-adb.el (tramp-adb-maybe-open-connection):
1725         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
1726         * tramp-sh.el (tramp-maybe-open-connection):
1727         * tramp-smb.el (tramp-smb-maybe-open-connection): Apply
1728         `tramp-check-proper-host'.
1729
1730         * tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
1731         BUF can be optional.  (Bug#15186)
1732
1733 2013-08-17  Michael Albinus  <michael.albinus@gmx.de>
1734
1735         * tramp.el:
1736         * tramp-adb.el:
1737         * tramp-cmds.el:
1738         * tramp-efs.el:
1739         * tramp-ftp.el:
1740         * tramp-gvfs.el:
1741         * tramp-gw.el:
1742         * tramp-sh.el: Don't wrap external variable declarations by
1743         `eval-when-compile'.
1744
1745 2013-08-16  Michael Albinus  <michael.albinus@gmx.de>
1746
1747         * tramp-cmds.el (top): Don't declare `buffer-name'.
1748         (tramp-append-tramp-buffers): Rewrite buffer local variables part.
1749
1750 2013-08-15  Michael Albinus  <michael.albinus@gmx.de>
1751
1752         Remove byte compiler warnings, visible when compiling with
1753         `byte-compile-force-lexical-warnings' set to t.
1754
1755         * tramp.el (tramp-debug-message, tramp-message, tramp-error)
1756         (tramp-error-with-buffer): Rename ARGS to ARGUMENTS and BUFFER to BUF.
1757         (tramp-handle-unhandled-file-name-directory)
1758         (tramp-handle-file-notify-add-watch, tramp-action-login)
1759         (tramp-action-succeed, tramp-action-permission-denied)
1760         (tramp-action-terminal, tramp-action-process-alive): Prefix unused
1761         arguments with "_".
1762
1763         * tramp-adb.el (tramp-adb-parse-device-names)
1764         (tramp-adb-handle-insert-directory, tramp-adb-handle-delete-file)
1765         (tramp-adb-handle-copy-file): Prefix unused arguments with "_".
1766         (tramp-adb-handle-file-truename): Remove unused arguments.
1767
1768         * tramp-cache.el (tramp-flush-directory-property)
1769         (tramp-flush-connection-property, tramp-list-connections)
1770         (tramp-parse-connection-properties): Prefix unused arguments with "_".
1771
1772         * tramp-compat.el (tramp-compat-make-temp-file): Rename FILENAME to F.
1773
1774         * tramp-efs.el (top, tramp-efs-file-name-handler): Use `mapc'.
1775
1776         * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
1777         (tramp-gvfs-handle-write-region, tramp-bluez-parse-device-names)
1778         (tramp-zeroconf-parse-workstation-device-names)
1779         (tramp-zeroconf-parse-webdav-device-names)
1780         (tramp-synce-parse-device-names): Prefix unused arguments with "_".
1781
1782         * tramp-gw.el (tramp-gw-gw-proc-sentinel)
1783         (tramp-gw-aux-proc-sentinel): Prefix unused arguments with "_".
1784
1785         * tramp-sh.el (tramp-sh-handle-file-truename): Remove unused arguments.
1786         (tramp-sh-handle-copy-file, tramp-sh-handle-dired-compress-file)
1787         (tramp-sh-handle-insert-file-contents-literally)
1788         (tramp-sh-handle-file-notify-add-watch): Prefix unused arguments
1789         with "_".
1790         (tramp-do-copy-or-rename-file, tramp-barf-if-no-shell-prompt):
1791         Remove unused variables.
1792
1793         * tramp-smb.el (tramp-smb-handle-copy-directory)
1794         (tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
1795         (tramp-smb-read-file-entry): Prefix unused arguments with "_".
1796
1797         * tramp-uu.el (tramp-uu-b64-alphabet, tramp-uu-b64-char-to-byte):
1798         Make them a defconst.
1799         (tramp-uuencode-region): Remove unused variable.
1800
1801 2013-08-01  Michael Albinus  <michael.albinus@gmx.de>
1802
1803         Complete file name handlers.
1804
1805         * tramp.el (tramp-handle-set-visited-file-modtime)
1806         (tramp-handle-verify-visited-file-modtime)
1807         (tramp-handle-file-notify-rm-watch): New functions.
1808         (tramp-call-process): Do not bind `default-directory'.
1809
1810         * tramp-adb.el (tramp-adb-file-name-handler-alist): Order
1811         alphabetically.
1812         <access-file, add-name-to-file, dired-call-process>:
1813         <dired-compress-file, file-acl, file-notify-rm-watch>:
1814         <file-ownership-preserved-p, file-selinux-context>:
1815         <make-directory-internal, make-symbolic-link, set-file-acl>:
1816         <set-file-selinux-context, set-visited-file-modtime>:
1817         <verify-visited-file-modtime>: Add handler.
1818         (tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.
1819
1820         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
1821         <file-notify-add-watch, file-notify-rm-watch>:
1822         <set-file-times, set-visited-file-modtime>:
1823         <verify-visited-file-modtime>: Add handler.
1824         (with-tramp-gvfs-error-message)
1825         (tramp-gvfs-handle-set-visited-file-modtime)
1826         (tramp-gvfs-fuse-file-name): Remove.
1827         (tramp-gvfs-handle-file-notify-add-watch)
1828         (tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
1829         (tramp-gvfs-handle-write-region): Fix error in moving tmpfile.
1830
1831         * tramp-sh.el (tramp-sh-file-name-handler-alist): Order
1832         alphabetically.
1833         <file-notify-rm-watch>: Use default Tramp handler.
1834         <executable-find>: Remove private handler.
1835         (tramp-do-copy-or-rename-file-out-of-band): Do not bind
1836         `default-directory'.
1837         (tramp-sh-handle-executable-find)
1838         (tramp-sh-handle-file-notify-rm-watch): Remove functions.
1839         (tramp-sh-file-gvfs-monitor-dir-process-filter)
1840         (tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
1841         Do not use `format' in `tramp-message'.
1842
1843         * tramp-smb.el (tramp-smb-file-name-handler-alist)
1844         <file-notify-rm-watch, set-visited-file-modtime>:
1845         <verify-visited-file-modtime>: Add handler.
1846         (tramp-smb-call-winexe): Do not bind `default-directory'.
1847
1848 2013-07-29  Michael Albinus  <michael.albinus@gmx.de>
1849
1850         * tramp.el (tramp-use-ssh-controlmaster-options): New custom option.
1851
1852         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
1853         (tramp-maybe-open-connection): Use it.
1854
1855 2013-07-24  Michael Albinus  <michael.albinus@gmx.de>
1856
1857         * tramp.el (tramp-file-name-for-operation):
1858         * tramp-adb.el (tramp-adb-file-name-handler-alist):
1859         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
1860         * tramp-smb.el (tramp-smb-file-name-handler-alist):
1861         * tramp-sh.el (tramp-sh-file-name-handler-alist):
1862         Remove `file-notify-supported-p' entry.
1863         (tramp-sh-handle-file-notify-supported-p): Remove function.
1864
1865 2013-07-23  Michael Albinus  <michael.albinus@gmx.de>
1866
1867         * tramp.el (tramp-handle-file-notify-add-watch): New defun.
1868
1869         * tramp-adb.el (tramp-adb-file-name-handler-alist):
1870         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
1871         * tramp-smb.el (tramp-smb-file-name-handler-alist): Use it.
1872
1873 2013-07-18  Michael Albinus  <michael.albinus@gmx.de>
1874
1875         * tramp.el (tramp-file-name-for-operation):
1876         Add `file-notify-supported-p'.
1877
1878         * tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
1879         New defun.
1880         (tramp-sh-file-name-handler-alist): Add it as handler for
1881         `file-notify-supported-p '.
1882
1883         * tramp-adb.el (tramp-adb-file-name-handler-alist):
1884         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
1885         * tramp-smb.el (tramp-smb-file-name-handler-alist):
1886         Add `ignore' as handler for `file-notify-*' functions.
1887
1888 2013-07-14  Michael Albinus  <michael.albinus@gmx.de>
1889
1890         * tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error'.
1891
1892 2013-07-11  Michael Albinus  <michael.albinus@gmx.de>
1893
1894         * tramp.el (tramp-methods): Extend docstring.
1895         (tramp-connection-timeout): New defcustom.
1896         (tramp-error-with-buffer): Reset timestamp only when appropriate.
1897         (with-tramp-progress-reporter): Simplify.
1898         (tramp-process-actions): Improve messages.
1899
1900         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
1901         * tramp-sh.el (tramp-maybe-open-connection):
1902         Use `tramp-connection-timeout'.
1903         (tramp-methods) <su, sudo, ksu>: Add method specific timeouts.
1904
1905 2013-07-10  Michael Albinus  <michael.albinus@gmx.de>
1906
1907         Improve error messages.  (Bug#14808)
1908
1909         * tramp.el (tramp-current-connection): New defvar, moved from
1910         tramp-sh.el.
1911         (tramp-message-show-progress-reporter-message): Removed, not
1912         needed anymore.
1913         (tramp-error-with-buffer): Show message in minibuffer.  Discard
1914         input before waiting.  Reset connection timestamp.
1915         (with-tramp-progress-reporter): Improve messages.
1916         (tramp-process-actions): Use progress reporter.  Delete process in
1917         case of error.  Improve messages.
1918
1919         * tramp-sh.el (tramp-barf-if-no-shell-prompt): Use
1920         condition-case.  Call `tramp-error-with-buffer' with vector and buffer.
1921         (tramp-current-connection): Removed.
1922         (tramp-maybe-open-connection): The car of
1923         `tramp-current-connection' are the first 3 slots of the vector.
1924
1925 2013-07-06  Michael Albinus  <michael.albinus@gmx.de>
1926
1927         * tramp-sh.el (tramp-sh-file-gvfs-monitor-dir-process-filter):
1928         Check for incomplete strings, and keep them for the next run.
1929         Handle file names with spaces.
1930         (tramp-sh-file-inotifywait-process-filter): Handle file names with
1931         spaces.
1932
1933 2013-07-05  Michael Albinus  <michael.albinus@gmx.de>
1934
1935         * tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Support
1936         both "gvfs-monitor-dir" and "inotifywait".
1937         (tramp-sh-file-inotifywait-process-filter): Renamed from
1938         `tramp-sh-file-notify-process-filter'.
1939         (tramp-sh-file-gvfs-monitor-dir-process-filter)
1940         (tramp-get-remote-gvfs-monitor-dir): New defuns.
1941
1942 2013-07-04  Michael Albinus  <michael.albinus@gmx.de>
1943
1944         * tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Check, that
1945         the `inotifywait' process runs.
1946         (tramp-sh-file-notify-process-filter): Do not return a cookie.
1947
1948 2013-07-01  Michael Albinus  <michael.albinus@gmx.de>
1949
1950         * tramp.el (tramp-file-name-for-operation): Remove
1951         `inotify-add-watch'.  Add `file-notify-add-watch' and
1952         `file-notify-rm-watch'.
1953
1954         * tramp-sh.el (tramp-sh-file-name-handler-alist): Remove
1955         `inotify-add-watch'.  Add `file-notify-add-watch' and
1956         `file-notify-rm-watch'.
1957         (tramp-sh-handle-inotify-add-watch)
1958         (tramp-sh-inotify-process-filter): Remove functions.
1959         (tramp-sh-handle-file-notify-add-watch)
1960         (tramp-sh-file-notify-process-filter)
1961         (tramp-sh-handle-file-notify-rm-watch): New functions.
1962
1963 2013-06-19  Michael Albinus  <michael.albinus@gmx.de>
1964
1965         * tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is not
1966         needed.
1967
1968         * tramp-sh.el (tramp-find-shell): Don't set "busybox" property.
1969
1970 2013-05-24  Michael Albinus  <michael.albinus@gmx.de>
1971
1972         * tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
1973         (tramp-gvfs-file-name-handler): Raise a user error when
1974         `tramp-gvfs-enabled' is nil.
1975         (top): Register signals only when `tramp-gvfs-enabled' is non-nil.
1976         Do not raise a user error when loading package.  (Bug#14447)
1977
1978 2013-05-23  Michael Albinus  <michael.albinus@gmx.de>
1979
1980         * tramp-gvfs.el (top): Suppress D-Bus errors when loading package.
1981         (Bug#14447)
1982
1983 2013-04-22  Michael Albinus  <michael.albinus@gmx.de>
1984
1985         Fix pack/unpack coding.  Reported by David Smith <davidsmith@acm.org>.
1986
1987         * tramp-compat.el (tramp-compat-call-process): Move function ...
1988         * tramp.el (tramp-call-process): ... here.
1989         (tramp-set-completion-function, tramp-parse-putty):
1990         * tramp-adb.el (tramp-adb-execute-adb-command):
1991         * tramp-gvfs.el (tramp-gvfs-send-command):
1992         * tramp-sh.el (tramp-sh-handle-set-file-times, tramp-set-file-uid-gid)
1993         (tramp-sh-handle-write-region, tramp-call-local-coding-command):
1994         Use `tramp-call-process' instead of `tramp-compat-call-process'.
1995
1996         * tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst.
1997         (tramp-local-coding-commands, tramp-remote-coding-commands): Use them.
1998         (tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
1999         (tramp-find-inline-compress): Improve traces.
2000         (tramp-maybe-send-script): Check for Perl binary.
2001         (tramp-get-inline-coding): Do not redirect STDOUT for local decoding.
2002
2003 2013-04-18  Michael Albinus  <michael.albinus@gmx.de>
2004
2005         * tramp-sh.el (tramp-remote-process-environment): Add "TMOUT=0".
2006
2007 2013-03-25  Michael Albinus  <michael.albinus@gmx.de>
2008
2009         * tramp.el (tramp-drop-volume-letter): Make it an ordinary defun.
2010         Defining it as defalias could introduce too eager byte-compiler
2011         optimization.  (Bug#14030)
2012
2013 2013-03-18  Michael Albinus  <michael.albinus@gmx.de>
2014
2015         * tramp-compat.el (tramp-compat-user-error): New defun.
2016
2017         * tramp-adb.el (tramp-adb-handle-shell-command):
2018         * tramp-gvfs.el (top):
2019         * tramp.el (tramp-find-method, tramp-dissect-file-name)
2020         (tramp-handle-shell-command): Use it.
2021         (tramp-dissect-file-name): Raise an error when hostname is a
2022         method name, and neither method nor user is specified.
2023
2024 2013-03-17  Michael Albinus  <michael.albinus@gmx.de>
2025
2026         * tramp-adb.el (tramp-adb-parse-device-names): Use `start-process'
2027         instead of `call-process'.  Otherwise, the function might be
2028         blocked under MS Windows.  (Bug#13299)
2029
2030 2013-03-15  Michael Albinus  <michael.albinus@gmx.de>
2031
2032         Version 2.2.7 released.
2033
2034 2013-03-13  Michael Albinus  <michael.albinus@gmx.de>
2035
2036         * tramp-sh.el (tramp-sh-handle-insert-directory): Check, whether
2037         `default-file-name-coding-system' is bound.  It isn't in XEmacs.
2038
2039 2013-03-09  Michael Albinus  <michael.albinus@gmx.de>
2040
2041         Major rewrite due to changed D-Bus interface of GVFS 1.14.
2042
2043         * tramp-gvfs.el (top): Extend check for gvfs availability.
2044         (tramp-gvfs-methods-mounttracker, tramp-gvfs-listmounts)
2045         (tramp-gvfs-mountlocation, tramp-gvfs-mountlocation-signature):
2046         New defconst.
2047         (tramp-gvfs-file-name-handler-alist) <directory-files>:
2048         <directory-files-and-attributes, file-exists-p, file-modes>: Use
2049         Tramp default handler.
2050         <file-acl, file-selinux-context, process-file, set-file-acl>:
2051         <set-file-modes, set-file-selinux-context, shell-command>:
2052         <start-file-process>: Remove handler.
2053         <verify-visited-file-modtime>: New handler.
2054         (tramp-gvfs-dbus-string-to-byte-array)
2055         (tramp-gvfs-dbus-byte-array-to-string): New defuns.  Replace all
2056         calls of `dbus-string-to-byte-array' and
2057         `tramp-gvfs-dbus-byte-array-to-string'.
2058         (tramp-gvfs-handle-copy-file)
2059         (tramp-gvfs-handle-delete-directory)
2060         (tramp-gvfs-handle-delete-file, tramp-gvfs-handle-file-attributes)
2061         (tramp-gvfs-handle-file-directory-p)
2062         (tramp-gvfs-handle-file-executable-p)
2063         (tramp-gvfs-handle-file-name-all-completions)
2064         (tramp-gvfs-handle-file-readable-p)
2065         (tramp-gvfs-handle-file-writable-p)
2066         (tramp-gvfs-handle-insert-directory)
2067         (tramp-gvfs-handle-insert-file-contents)
2068         (tramp-gvfs-handle-make-directory, tramp-gvfs-handle-rename-file)
2069         (tramp-gvfs-handle-set-visited-file-modtime)
2070         (tramp-gvfs-handle-write-region): Rewrite.
2071         (tramp-gvfs-handle-file-acl)
2072         (tramp-gvfs-handle-file-selinux-context)
2073         (tramp-gvfs-handle-process-file, tramp-gvfs-handle-set-file-acl)
2074         (tramp-gvfs-handle-set-file-modes)
2075         (tramp-gvfs-handle-set-file-selinux-context)
2076         (tramp-gvfs-handle-shell-command)
2077         (tramp-gvfs-handle-start-file-process)
2078         (tramp-gvfs-handle-verify-visited-file-modtime): Remove defuns.
2079         (tramp-gvfs-url-file-name): Do not use `file-truename', we work
2080         over the symlinks.  Fix user handling.
2081         (top, tramp-gvfs-handler-mounted-unmounted): Handle different names
2082         of the D-Bus signals.
2083         (tramp-gvfs-connection-mounted-p): Handle different names of the
2084         D-Bus methods.
2085         (tramp-gvfs-mount-spec-entry): New defun.
2086         (tramp-gvfs-mount-spec): Use it.
2087         (tramp-gvfs-maybe-open-connection): Check, that in case of "smb"
2088         there is a share name.  Handle different names of the D-Bus
2089         signals and methods.  Set connection properties needed for
2090         `tramp-check-cached-permissions'.
2091         (tramp-gvfs-send-command): Apply `tramp-gvfs-maybe-open-connection'.
2092         Return t or nil.
2093
2094         * tramp.el (tramp-backtrace): Move up.
2095         (tramp-error): Dump a backtrace into the debug buffer when
2096         `tramp-verbose > 9.
2097         (tramp-file-mode-type-map, tramp-file-mode-from-int)
2098         (tramp-file-mode-permissions, tramp-get-local-uid)
2099         (tramp-get-local-gid, tramp-check-cached-permissions): Move from
2100         tramp-sh.el.
2101
2102         * tramp-sh.el (tramp-file-mode-type-map)
2103         (tramp-check-cached-permissions, tramp-file-mode-from-int)
2104         (tramp-file-mode-permissions, tramp-get-local-uid)
2105         (tramp-get-local-gid): Move to tramp.el.
2106
2107 2013-03-05  Michael Albinus  <michael.albinus@gmx.de>
2108
2109         * tramp-compat.el (tramp-compat-delete-directory): Implement TRASH
2110         argument.
2111
2112 2013-03-03  Michael Albinus  <michael.albinus@gmx.de>
2113
2114         * tramp-adb.el (tramp-adb-maybe-open-connection): Cache, whether
2115         the "su" command is available on the device.
2116
2117 2013-03-01  Michael Albinus  <michael.albinus@gmx.de>
2118
2119         * tramp-adb.el (tramp-adb-prompt): Extend regexp.
2120         (tramp-adb-handle-process-file): Remove superfluous setting.
2121         (tramp-adb-command-exit-status): Handle case that COMMAND is nil.
2122         (tramp-adb-barf-unless-okay): Use `tramp-adb-command-exit-status'.
2123         (tramp-adb-maybe-open-connection): Apply "su" if user is defined.
2124
2125         * tramp.el (tramp-obsolete-methods): New defconst.
2126         (tramp-warned-obsolete-methods): New defvar.
2127         (tramp-find-method): Check for obsolete methods.  Map them to a
2128         replacement method if appropriate.
2129
2130         * tramp-sh.el (tramp-methods) <scp1, scp2, ssh1, ssh2, plink1>:
2131         Remove methods.
2132         (top): Remove completion functions for "scp1", "scp2", "ssh1",
2133         "ssh2" and "plink1".
2134
2135 2013-02-28  Michael Albinus  <michael.albinus@gmx.de>
2136
2137         * tramp-adb.el (tramp-adb-sdk-dir): Remove.  Replaced by ...
2138         (tramp-adb-program): New defcustom.  Remove function.  Adapt calls.
2139
2140 2013-02-27  Michael Albinus  <michael.albinus@gmx.de>
2141
2142         * tramp-adb.el (tramp-adb-parse-device-names)
2143         (tramp-adb-maybe-open-connection): Add timeouts.  (Bug#13299)
2144
2145 2013-02-26  Michael Albinus  <michael.albinus@gmx.de>
2146
2147         * tramp-sh.el (tramp-sh-handle-insert-directory): Add
2148         "2>/dev/null" to the ls command, in case "en_US.utf8" is not
2149         defined.  POSIX environments fall back to the "C" locale then and
2150         emit a warning, which shall be suppressed.
2151
2152 2013-02-23  Michael Albinus  <michael.albinus@gmx.de>
2153
2154         * tramp.el (tramp-methods): Fix docstring.
2155         (tramp-ssh-controlmaster-options): Rename it from
2156         `tramp-ssh-controlmaster-template'.  Return a string.
2157         (tramp-default-method): Adapt check for
2158         `tramp-ssh-controlmaster-options'.
2159
2160         * tramp-sh.el (tramp-methods): Replace
2161         `tramp-ssh-controlmaster-template' by "%c".
2162         (tramp-do-copy-or-rename-file-out-of-band)
2163         (tramp-maybe-open-connection): Use it in format spec.  Ensure,
2164         that it is applied for the first hop only.
2165
2166 2013-02-22  Michael Albinus  <michael.albinus@gmx.de>
2167
2168         * tramp.el (tramp-tramp-file-p): Fix docstring.
2169
2170         * tramp-sh.el (tramp-sh-handle-insert-directory): Handle multibyte
2171         file names.
2172
2173 2013-02-21  Glenn Morris  <rgm@gnu.org>
2174
2175         * tramp.el (tramp-get-debug-buffer): Ensure outline.el is not
2176         loaded while outline-regexp is let bound.  (Bug#9584)
2177
2178 2013-02-21  Michael Albinus  <michael.albinus@gmx.de>
2179
2180         * tramp.el (tramp-ssh-controlmaster-template): Make it a
2181         defconst.  Apply independent check for ControlPersist.
2182
2183         * tramp-sh.el (tramp-sh-handle-set-file-times): Set $UTC only
2184         temporarily, via "env".
2185
2186 2013-02-19  Michael Albinus  <michael.albinus@gmx.de>
2187
2188         * tramp-cache.el (tramp-get-hash-table): New defun.
2189         (tramp-get-file-property, tramp-set-file-property)
2190         (tramp-get-connection-property, tramp-set-connection-property): Use it.
2191         (tramp-flush-file-property, tramp-flush-directory-property):
2192         Rename argument to KEY.
2193         (tramp-flush-connection-property): Simplify a little bit.
2194         (tramp-connection-property-p): New defun.
2195         (top): Reapply saved values only if there isn't a corresponding
2196         entry in `tramp-connection-properties'.
2197
2198 2013-02-17  Michael Albinus  <michael.albinus@gmx.de>
2199
2200         * tramp-sh.el (tramp-sh-handle-start-file-process): Let-bind
2201         `tramp-current-connection' in order to avoid an error when several
2202         commands are invoked in a short time in eshell and friends.
2203
2204 2013-02-16  Michael Albinus  <michael.albinus@gmx.de>
2205
2206         * tramp-cache.el (tramp-connection-properties): New custom option.
2207         (tramp-get-connection-property): Use it.
2208
2209         * tramp-compat.el (top): Require 'trampver.
2210
2211         * tramp-sh.el (tramp-remote-process-environment): Set
2212         tramp-autoload cookie.
2213
2214 2013-02-14  Michael Albinus  <michael.albinus@gmx.de>
2215
2216         * tramp.el (tramp-debug-message): Add
2217         `tramp-condition-case-unless-debug'.
2218         (tramp-debug-on-error): New defvar.
2219         (tramp-condition-case-unless-debug): New defun.
2220         (tramp-file-name-handler): Use it.
2221
2222 2013-02-13  Michael Albinus  <michael.albinus@gmx.de>
2223
2224         Use ControlMaster where applicable.  (Bug#13677)
2225
2226         * tramp.el (tramp-ssh-controlmaster-template): New defvar,
2227         replacing `tramp-detect-ssh-controlmaster'.
2228         (tramp-default-method): Use it.
2229
2230         * tramp-sh.el (tramp-methods) <scp, scp1, scp2, scpx, sftp>:
2231         <rsync, ssh, ssh1, ssh2, sshx>: Add ControlPath and ControlMaster
2232         arguments.
2233         <scpc, rsyncc>: Remove methods.
2234         (top): Remove completion functions for "scpc", "rsyncc", "ssh1_old"
2235         and "ssh2_old".
2236         (tramp-do-copy-or-rename-file-out-of-band):  Change trace level.
2237         (tramp-maybe-open-connection): Reuse tmpfile for ControlPath.
2238
2239 2013-02-12  Michael Albinus  <michael.albinus@gmx.de>
2240
2241         * tramp-adb.el (tramp-adb-handle-start-file-process): Rewrite.
2242
2243         * tramp-compat.el (top): Declare `remote-file-name-inhibit-cache'
2244         only if it doesn't exist.
2245
2246         * tramp-sh.el (tramp-sh-handle-start-file-process): Set process
2247         marker.
2248
2249 2013-02-03  Michael Albinus  <michael.albinus@gmx.de>
2250
2251         * tramp.el (tramp-debug-message): Extend function exclude list.
2252         (tramp-backtrace): New defun.
2253         (tramp-handle-insert-file-contents): Use `visit' when inserting
2254         the local copy.
2255
2256         * tramp-sh.el (tramp-sh-handle-set-visited-file-modtime): Use
2257         `remote-file-name-inhibit-cache'.
2258
2259 2013-02-01  Andrew W. Nosenko  <andrew.w.nosenko@gmail.com>  (tiny change)
2260
2261         * tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
2262         error when buffer in question is narrowed so position 1 is out of
2263         visible part.
2264
2265 2013-01-30  Michael Albinus  <michael.albinus@gmx.de>
2266
2267         * tramp.el (tramp-tramp-file-p): Comment check for
2268         `string-as-unibyte'.  The function does not exist on XEmacs, and
2269         likely we need another approach.
2270
2271         * tramp-sh.el (tramp-compute-multi-hops): Check, whether
2272         `tramp-gw-*' variables are bound.
2273
2274 2013-01-30  Michael Albinus  <michael.albinus@gmx.de>
2275
2276         * tramp.el (tramp-process-connection-type): Fix docstring.
2277         (tramp-completion-reread-directory-timeout): Fix type.
2278         (tramp-connection-min-time-diff): New defcustom.
2279
2280         * tramp-sh.el (tramp-maybe-open-connection): Use it.
2281
2282 2013-01-29  Michael Albinus  <michael.albinus@gmx.de>
2283
2284         * tramp-sh.el (tramp-sh-handle-start-file-process): Catch
2285         `suppress'.  Otherwise, `tramp-run-real-handler' might be called
2286         in `tramp-file-name-handler'.
2287         (tramp-gw-tunnel-method, tramp-gw-socks-method): Declare for
2288         compatibility.
2289         (tramp-compute-multi-hops): Check, whether
2290         `tramp-gw-tunnel-method' and `tramp-gw-socks-method' are non-nil.
2291
2292 2013-01-25  Michael Albinus  <michael.albinus@gmx.de>
2293
2294         Experimental inotify support.
2295
2296         * tramp.el (tramp-file-name-for-operation): Add `inotify-add-watch'.
2297
2298         * tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
2299         for `inotify-add-watch'.
2300         (tramp-sh-handle-inotify-add-watch)
2301         (tramp-sh-inotify-process-filter, tramp-get-remote-inotifywait):
2302         New defuns.
2303
2304 2013-01-24  Michael Albinus  <michael.albinus@gmx.de>
2305
2306         * tramp.el (tramp-tramp-file-p): Check, whether NAME is unibyte.
2307
2308         * tramp-sh.el (tramp-sh-handle-set-file-acl): Do not suppress
2309         basic attributes.
2310         (tramp-sh-handle-set-file-acl): Improve error checking.
2311
2312 2013-01-21  Michael Albinus  <michael.albinus@gmx.de>
2313
2314         * tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Mark
2315         descriptive parts with `display' property.
2316
2317 2013-01-20  Michael Albinus  <michael.albinus@gmx.de>
2318
2319         Improve XEmacs compatibility.
2320
2321         * tramp.el (tramp-replace-environment-variables): Make it a defun.
2322
2323         * tramp-adb.el (top): Require `time-date'.
2324         (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
2325         (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
2326         `tramp-file-name-handler'.
2327         (tramp-adb-maybe-open-connection): Use
2328         `tramp-compat-set-process-query-on-exit-flag'.
2329
2330         * tramp-sh.el (tramp-sh-handle-file-acl): Use `tramp-compat-funcall'.
2331
2332         * tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
2333         `tramp-compat-funcall'.
2334
2335 2013-01-18  Jürgen Hötzel  <juergen@archlinux.org>
2336
2337         * tramp-adb.el (tramp-adb-handle-start-file-process): Complete
2338         reimplementation using "adb shell command ..." instead of running
2339         remote shell interactively.
2340
2341 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         Spelling fixes.
2344         * tramp-adb.el (tramp-adb-get-toolbox):
2345         Fix misspelling of 'unknown'.
2346
2347 2013-01-08  Jürgen Hötzel  <juergen@archlinux.org>
2348
2349         * tramp.el (tramp-eshell-directory-change): Check remote-path
2350         first in session cache: When `tramp-own-remote-path' is in
2351         `tramp-remote-path', the remote path is only set in the session
2352         cache.
2353
2354 2013-01-08  Michael Albinus  <michael.albinus@gmx.de>
2355
2356         * tramp-adb.el (tramp-adb-file-name-handler-alist): Remove
2357         spurious entry.
2358
2359 2013-01-08  Glenn Morris  <rgm@gnu.org>
2360
2361         * tramp.el (tramp-default-host-alist): Add :version.
2362
2363 2013-01-07  Jürgen Hötzel  <juergen@archlinux.org>
2364
2365         * tramp-adb.el (tramp-do-parse-file-attributes-with-ls): Handle
2366         filename correctly, when parsing "source -> target" symlink
2367         output.
2368         (tramp-adb-handle-set-file-times): New defun.
2369
2370 2013-01-07  Michael Albinus  <michael.albinus@gmx.de>
2371
2372         * tramp.el (tramp-default-host-alist): New defcustom.
2373         (tramp-find-host): Use it.
2374         (tramp-eshell-directory-change): Moved from tramp-sh.el.  Add to
2375         `eshell-directory-change-hook'.
2376
2377         * tramp-adb.el (top): Add adb specific entry in
2378         `tramp-default-host-alist'.
2379         (tramp-adb-file-name-host): Remove function.
2380         (tramp-adb-execute-adb-command, tramp-adb-maybe-open-connection):
2381         Use `tramp-file-name-host' instead of `tramp-adb-file-name-host'.
2382
2383         * tramp-sh.el : Move eshell integration code to tramp.el.
2384
2385 2013-01-06  Jürgen Hötzel  <juergen@archlinux.org>
2386
2387         * tramp-adb.el (tramp-methods): Add `tramp-tmpdir' entry.
2388
2389 2013-01-06  Michael Albinus  <michael.albinus@gmx.de>
2390
2391         * tramp-adb.el (tramp-adb-ls-toolbox-regexp): The file size can
2392         consist of more than one digit.
2393         (tramp-adb-file-name-handler-alist): Use
2394         `tramp-handle-file-exists-p' consistently.
2395         (tramp-adb-file-name-handler): Don't tweak `tramp-default-host'.
2396         (tramp-adb-handle-file-exists-p): Remove function.
2397         (tramp-adb-file-name-host): New defun.
2398         (tramp-adb-execute-adb-command, tramp-adb-maybe-open-connection):
2399         Use it.
2400         (tramp-adb-maybe-open-connection): Set "remote-path" property.
2401
2402 2013-01-05  Michael Albinus  <michael.albinus@gmx.de>
2403
2404         * tramp-adb.el (tramp-do-parse-file-attributes-with-ls):
2405         (tramp-adb-handle-directory-files-and-attributes): Fix typos.
2406
2407 2013-01-04  Jürgen Hötzel  <juergen@archlinux.org>
2408
2409         * tramp-adb.el (tramp-adb-handle-file-attributes): More robust
2410         parsing of ls output using regular expression (handle filenames
2411         with spaces).  Use virtual device number.
2412         (tramp-do-parse-file-attributes-with-ls): New defun (Code
2413         cleanup).
2414
2415 2013-01-04  Michael Albinus  <michael.albinus@gmx.de>
2416
2417         * tramp-sh.el (tramp-set-file-uid-gid): UID and GID must be
2418         non-negative integers.  Otherwise, the default values are used.
2419         (tramp-convert-file-attributes): Convert uid and gid to integers.
2420
2421 2013-01-02  Michael Albinus  <michael.albinus@gmx.de>
2422
2423         * tramp-sh.el (tramp-sh-handle-set-file-acl): Add argument to
2424         `error' call.
2425         (tramp-do-copy-or-rename-file): Ignore errors when calling
2426         `set-file-extended-attributes'.
2427
2428         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
2429         for `file-acl'.
2430         (tramp-smb-handle-file-acl): New defun.
2431
2432 2012-12-31  Jürgen Hötzel  <juergen@archlinux.org>
2433
2434         * tramp-adb.el (tramp-adb-maybe-open-connection): Handle errors
2435         (No device connected, invalid device name).  (Bug #13299)
2436
2437 2012-12-30  Michael Albinus  <michael.albinus@gmx.de>
2438
2439         * tramp-sh.el (tramp-sh-handle-set-file-selinux-context): Return
2440         `t' on success.
2441
2442         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
2443         for `set-file-selinux-context'.
2444
2445 2012-12-29  Michael Albinus  <michael.albinus@gmx.de>
2446
2447         * tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes.
2448         (tramp-sh-handle-set-file-acl): Return `t' on success.
2449
2450 2012-12-28  Michael Albinus  <michael.albinus@gmx.de>
2451
2452         * tramp-sh.el (tramp-set-file-uid-gid): Convert UID and GID to
2453         integers, if they are real numbers.  (Bug#13282)
2454
2455 2012-12-27  Michael Albinus  <michael.albinus@gmx.de>
2456
2457         * tramp.el (tramp-handle-file-accessible-directory-p): New defun.
2458
2459         * tramp-adb.el (tramp-adb-file-name-handler-alist):
2460         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
2461         * tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler for
2462         `file-accessible-directory-p'.  (Bug#13275)
2463
2464 2012-12-24  Jürgen Hötzel  <juergen@archlinux.org>
2465
2466         * tramp-adb.el (tramp-adb-get-toolbox): New Defun. Check for
2467         remote shell implementation (BusyBox or Toolbox).
2468
2469 2012-12-22  Jürgen Hötzel  <juergen@archlinux.org>
2470
2471         * tramp-adb.el (tramp-adb-get-ls-command): New defun. Suppress
2472         coloring, if possible (required for BusyBox based systems like
2473         CyanogenMod).
2474
2475 2012-12-22  Michael Albinus  <michael.albinus@gmx.de>
2476
2477         * tramp-adb.el (tramp-adb-maybe-open-connection): Check properties
2478         of remote device.  Restart connection, if there is a change.
2479
2480 2012-12-19  Michael Albinus  <michael.albinus@gmx.de>
2481
2482         * tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines and
2483         text properties from returned ACL string.
2484         (tramp-sh-handle-set-file-acl): Do not use additional parentheses
2485         for "setfacl" command.
2486
2487 2012-12-18  Michael Albinus  <michael.albinus@gmx.de>
2488
2489         * tramp.el (tramp-error-with-buffer): Give a hint to use
2490         `tramp-cleanup-this-connection', when the process has died.
2491         (Bug#13151)
2492
2493 2012-12-17  Michael Albinus  <michael.albinus@gmx.de>
2494
2495         Add support for preserving ACL entries of files.
2496
2497         * tramp.el (tramp-file-name-for-operation): Add `file-acl' and
2498         `set-file-acl' handlers.
2499
2500         * tramp-adb.el (tramp-adb-handle-copy-file): Handle
2501         PRESERVE-EXTENDED-ATTRIBUTES.
2502
2503         * tramp-compat.el (tramp-compat-copy-file): Handle
2504         PRESERVE-EXTENDED-ATTRIBUTES.
2505
2506         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
2507         `file-acl' and `set-file-acl' handlers.
2508         (tramp-gvfs-handle-copy-file): Handle
2509         PRESERVE-EXTENDED-ATTRIBUTES.
2510         (tramp-gvfs-handle-file-acl, tramp-gvfs-handle-set-file-acl): New
2511         defuns.
2512
2513         * tramp-sh.el (tramp-sh-file-name-handler-alist): Add `file-acl'
2514         and `set-file-acl' handlers.
2515         (tramp-remote-acl-p, tramp-sh-handle-file-acl)
2516         (tramp-sh-handle-set-file-acl): New defuns.
2517         (tramp-sh-handle-copy-file, tramp-do-copy-or-rename-file): Handle
2518         PRESERVE-EXTENDED-ATTRIBUTES.
2519
2520         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add `file-acl'
2521         and `set-file-acl' handlers.
2522         (tramp-smb-handle-copy-file): Handle PRESERVE-EXTENDED-ATTRIBUTES.
2523
2524 2012-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2525
2526         Fix permissions bugs with setgid directories etc.  (Bug#13125)
2527
2528         * tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p): New
2529         optional arg GROUP.
2530         (tramp-get-local-gid): Use group-gid for integer, as that's
2531         faster and more reliable.
2532
2533 2012-12-13  Michael Albinus  <michael.albinus@gmx.de>
2534
2535         * tramp-adb.el (tramp-adb-file-name-p):  Make it a defsubst.
2536         Otherwise, there could be errors in autoloading.  (Bug#13151)
2537
2538 2012-12-11  Jürgen Hötzel  <juergen@archlinux.org>
2539
2540         * tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
2541         sequences.
2542
2543 2012-12-06  Michael Albinus  <michael.albinus@gmx.de>
2544
2545         * tramp.el (tramp-replace-environment-variables): Hide compiler warning.
2546
2547         * Makefile.in (top): Remove EMACS_UTILS.
2548         (LISP_FILES): Remove tramp-util.el and tramp-vc.el.
2549
2550         * tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.
2551
2552         * tramp-util.el:
2553         * tramp-vc.el: Move to obsolete/.
2554
2555         * tramp.el (tramp-file-name-for-operation): Remove
2556         `executable-find', `start-process', `call-process' and
2557         `call-process-region'.
2558
2559         * tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
2560
2561 2012-12-05  Michael Albinus  <michael.albinus@gmx.de>
2562
2563         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check
2564         return code of copy command.
2565
2566         * tramp-adb.el (tramp-adb-sdk-dir, tramp-adb-prompt): Use group
2567         `tramp'.  Add version.
2568
2569         * tramp-adb.el (tramp-adb-handle-file-writable-p): Format
2570         docstring.  Use `filename' but `localname'.
2571         (tramp-adb-find-test-command): Fix docstring.  Use `vec' but `v'.
2572
2573 2012-12-03  Michael Albinus  <michael.albinus@gmx.de>
2574
2575         * tramp-adb.el (tramp-adb-find-test-command): New defun.  Caches,
2576         whether the ash supports the "test" command.
2577         (tramp-adb-handle-file-writable-p): Use it.  Use also
2578         `file-directory-p' and `file-writable-p' in order to force caching.
2579
2580 2012-12-02  Jürgen Hötzel <juergen@archlinux.org>
2581
2582         * tramp-adb.el (top): Remove dependency on CL sequence functions.
2583         (tramp-adb-prompt): Add prompt used on Android > 4.0 devices.
2584         (tramp-adb-handle-file-writable-p): Implement using "test".
2585         (tramp-adb-command-exit-status): New defun.
2586
2587 2012-12-02  Michael Albinus  <michael.albinus@gmx.de>
2588
2589         * .gitignore: Add file.
2590
2591 2012-11-27  Michael Albinus  <michael.albinus@gmx.de>
2592
2593         * tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
2594         "<STDIN>".  This is binary safe.
2595
2596 2012-11-23  Michael Albinus  <michael.albinus@gmx.de>
2597
2598         * Makefile.in: Add tramp-adb.el.
2599
2600         * tramp-adb.el (top): Adapt license and commentary.  Require 'cl
2601         and declare `dired-move-to-filename-regexp' in order to avoid byte
2602         compiler warnings.  Use `with-tramp-file-property' instead of
2603         `with-file-property', `with-tramp-progress-reporter' instead of
2604         `tramp-with-progress-reporter' and `string-to-number' instead of
2605         `string-to-int.
2606
2607 2012-11-23  Jürgen Hötzel  <juergen@archlinux.org>
2608
2609         * tramp-adb.el: New package.
2610
2611 2012-11-19  Michael Albinus  <michael.albinus@gmx.de>
2612
2613         * tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
2614         compatibility.
2615
2616         * tramp-sh.el (tramp-do-copy-or-rename-file): If both files are
2617         remote, check out-of-band property for both.
2618
2619 2012-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2620
2621         * tramp.el (tramp-time-less-p, tramp-time-subtract):
2622         * tramp-sh.el (tramp-do-file-attributes-with-ls):
2623         Add a couple of FIXME comments.
2624
2625 2012-11-13  Glenn Morris  <rgm@gnu.org>
2626
2627         * tramp-gvfs.el (tramp-gvfs-dbus-event-error): Use new names for
2628         hooks rather than obsolete aliases.
2629
2630 2012-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
2631
2632         * tramp.el (tramp-replace-environment-variables): Use
2633         `substitute-env-vars'.
2634
2635 2012-10-23  Michael Albinus  <michael.albinus@gmx.de>
2636
2637         * tramp-smb.el (tramp-smb-maybe-open-connection): Set
2638         `tramp-chunksize' to 1.  This improves the performance.
2639         (tramp-smb-wait-for-output): Add timeout to
2640         `tramp-accept-process-output' calls.
2641
2642 2012-10-09  Michael Albinus  <michael.albinus@gmx.de>
2643
2644         * tramp.el (tramp-debug-message): Remove
2645         "tramp-with-progress-reporter" from regexp of ignored functions.
2646         (with-tramp-progress-reporter): Rename from
2647         `tramp-with-progress-reporter'.
2648         (with-tramp-file-property, with-tramp-connection-property): Move
2649         from tramp-cache.el, rename from `with-file-property' and
2650         `with-connection-property', respectively.
2651
2652         * tramp-cache.el: Remove `with-file-property' and
2653         `with-connection-property'.
2654
2655         * tramp.el:
2656         * tramp-gvfs.el:
2657         * tramp-sh.el:
2658         * tramp-smb.el: Adapt callees.
2659
2660 2012-10-06  Glenn Morris  <rgm@gnu.org>
2661
2662         * tramp.el (tramp-save-ad-hoc-proxies): Add missing group :version tag.
2663
2664 2012-09-17  Chong Yidong  <cyd@gnu.org>
2665
2666         * tramp-cmds.el (tramp-bug): Doc fixes.
2667
2668 2012-09-12  Michael Albinus  <michael.albinus@gmx.de>
2669
2670         Version 2.2.6 released.
2671
2672         * tramp.el (tramp-accept-process-output): Don't use JUST-THIS-ONE
2673         in the XEmacs case.
2674
2675 2012-08-29  Michael Albinus  <michael.albinus@gmx.de>
2676
2677         * tramp-sh.el (tramp-remote-path): Add "/sbin" and "/usr/local/sbin".
2678
2679 2012-08-20  Michael Albinus  <michael.albinus@gmx.de>
2680
2681         * tramp.el (tramp-accept-process-output): Accept only output from
2682         PROC.  Otherwise, process filters and sentinels might be confused.
2683         (Bug#12145)
2684
2685 2012-08-17  Michael Albinus  <michael.albinus@gmx.de>
2686
2687         * tramp-sh.el (tramp-sh-handle-start-file-process): Eliminate
2688         superfluous prompt.  (Bug#12203)
2689
2690 2012-08-16  Glenn Morris  <rgm@gnu.org>
2691
2692         * tramp.el:
2693         * tramp-smb.el: Replace version 24.2 with 24.3 where appropriate.
2694
2695 2012-08-14  Michael Albinus  <michael.albinus@gmx.de>
2696
2697         * tramp-sh.el (tramp-open-shell): Cache the shell name.
2698         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
2699         Use cached shell name.
2700
2701 2012-08-08  Michael Albinus  <michael.albinus@gmx.de>
2702
2703         * tramp-sh.el (tramp-find-file-exists-command): Protect the tests
2704         by `ignore-error'.
2705         (tramp-find-shell): Open also a new shell, when cache is already
2706         set.  Reported by Carsten Bormann <cabo@tzi.org>.  (Bug#12148)
2707
2708 2012-07-06  Michael Albinus  <michael.albinus@gmx.de>
2709
2710         * tramp.el (tramp-restricted-shell-hosts-alist): New defcustom.
2711
2712         * tramp-sh.el (tramp-maybe-open-connection): Handle it.
2713
2714 2012-07-05  Michael Albinus  <michael.albinus@gmx.de>
2715
2716         * tramp-sh.el (tramp-sh-handle-write-region): uid and gid can be
2717         floats.  Reported by Russell Sim <russell.sim@gmail.com>.
2718
2719 2012-07-02  Michael Albinus  <michael.albinus@gmx.de>
2720
2721         * tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
2722         Redirect stderr to /dev/null.
2723
2724 2012-07-01  Glenn Morris  <rgm@gnu.org>
2725
2726         * tramp-gvfs.el: Remove outdated and unnecessary dbus declarations.
2727
2728 2012-07-01  Michael Albinus  <michael.albinus@gmx.de>
2729
2730         * tramp-sh.el (tramp-sh-handle-vc-registered): Hide errors.
2731         (tramp-vc-file-name-handler): Use dummy results for `process-file'
2732         and `start-file-process'.
2733
2734 2012-06-26  Michael Albinus  <michael.albinus@gmx.de>
2735
2736         * tramp-compat.el (tramp-compat-temporary-file-directory): In
2737         XEmacs, there is no standard-value for `temporary-file-directory'.
2738
2739 2012-06-22  Michael Albinus  <michael.albinus@gmx.de>
2740
2741         * Makefile.in (EM): Use "-no-autoloads" instead of "-vanilla" in
2742         case of XEmacs.  Suggested by Steve Youngs <steve@sxemacs.org>.
2743
2744         * tramp.el (tramp-drop-volume-letter): Provide an XEmacs
2745         compatible declaration.
2746
2747         * tramp-compat.el (top): Require packages, which aren't autoloaded
2748         anymore for XEmacs.  Protect call of `tramp-file-name-handler' by
2749         `tramp-compat-funcall', pacifying the compiler.
2750
2751         * tramp-efs.el (package-get-download-sites): Declare.
2752
2753 2012-06-21  Michael Albinus  <michael.albinus@gmx.de>
2754
2755         * tramp-cmds.el (tramp-append-tramp-buffers): Protect
2756         `list-load-path-shadows' call.
2757
2758         * tramp-efs.el (top): Autoload only settings for `tramp-methods'
2759         and `tramp-default-method-alist'.
2760
2761 2012-06-20  Michael Albinus  <michael.albinus@gmx.de>
2762
2763         * tramp-compat.el (top): Do not require tramp-util.el and
2764         tramp-vc.el anymore, it hurts at least for SXEmacs.
2765
2766         * tramp-sh.el (tramp-maybe-open-connection): Check also whether
2767         `non-essential' is bound.
2768
2769 2012-06-17  Michael Albinus  <michael.albinus@gmx.de>
2770
2771         * tramp.el (tramp-file-name-handler): Catch 'non-essential.
2772
2773         * tramp-sh.el (tramp-maybe-open-connection): Throw if
2774         `non-essential' is non-nil.
2775
2776 2012-06-08  Michael Albinus  <michael.albinus@gmx.de>
2777
2778         * tramp-compat.el (tramp-compat-temporary-file-directory): Avoid
2779         infloop.
2780
2781 2012-06-06  Michael Albinus  <michael.albinus@gmx.de>
2782
2783         * tramp-compat.el (tramp-compat-temporary-file-directory): Ensure,
2784         that the temp directory is local.
2785
2786         * tramp-sh.el (tramp-sh-handle-write-region): Let-bind
2787         `temporary-file-directory'.
2788
2789 2012-06-03  Michael Albinus  <michael.albinus@gmx.de>
2790
2791         Version 2.2.5 released.
2792
2793         * tramp-compat.el (tramp-compat-condition-case-unless-debug): New
2794         defmacro.
2795
2796         * tramp.el (tramp-file-name-handler): Use it.
2797
2798 2012-06-01  Michael Albinus  <michael.albinus@gmx.de>
2799
2800         * tramp.el (tramp-file-name-handler): If `debug-on-error' is set,
2801         propagate an error unchanged.
2802         (tramp-check-for-regexp): Search from buffer end, in order to
2803         avoid "Stack overflow in regexp matcher".
2804
2805 2012-05-08  Michael Albinus  <michael.albinus@gmx.de>
2806
2807         * tramp-sh.el (tramp-do-file-attributes-with-stat)
2808         (tramp-do-directory-files-and-attributes-with-stat) Return uid and
2809         gid as real numbers.  They could run out of integer range on cygwin.
2810
2811 2012-04-23  Chong Yidong <cyd@gnu.org>
2812
2813         * tramp.el (tramp): Fix docstring.
2814
2815 2012-04-23  Michael Albinus  <michael.albinus@gmx.de>
2816
2817         * tramp-sh.el (tramp-copy-size-limit): Fix docstring.
2818         (tramp-do-copy-or-rename-file-out-of-band): Better trace format.
2819
2820 2012-04-19  Michael Albinus  <michael.albinus@gmx.de>
2821
2822         * tramp.el (tramp-action-password): Let-bind
2823         `enable-recursive-minibuffers' to t.
2824
2825 2012-04-19  Chong Yidong <cyd@gnu.org>
2826
2827         Remove * characters from the front of variable docstrings.
2828
2829 2012-04-18  Michael Albinus  <michael.albinus@gmx.de>
2830
2831         * tramp-cache.el (tramp-dump-connection-properties): Let-bind
2832         `print-length' and `print-level' to nil, in order to avoid
2833         truncation.  Reported by Christopher Schmidt
2834         <christopher@ristopher.com>.
2835
2836 2012-04-02  Michael Albinus  <michael.albinus@gmx.de>
2837
2838         * tramp-gvfs.el (tramp-gvfs-send-command): Apply
2839         `tramp-compat-call-process' instead of `tramp-local-call-process'.
2840         Reported by Magnus Henoch <magnus.henoch@gmail.com>.
2841
2842 2012-04-01  Chong Yidong  <cyd@gnu.org>
2843
2844         * tramp.el (tramp-file-name-for-operation): Rename
2845         file-subdir-of-p to file-in-directory-p.
2846
2847 2012-03-28  Michael Albinus  <michael.albinus@gmx.de>
2848
2849         * tramp.el (tramp-message-show-progress-reporter-message): New defvar.
2850         (tramp-with-progress-reporter): Use it.  We cannot use
2851         `tramp-message-show-message' here, because this suppresses also
2852         error buffers.
2853
2854 2012-03-27  Michael Albinus  <michael.albinus@gmx.de>
2855
2856         * tramp-compat.el (tramp-compat-copy-directory): Fix error in
2857         condition-case syntax.
2858
2859 2012-03-23  Michael Albinus  <michael.albinus@gmx.de>
2860
2861         * tramp.el (tramp-shell-prompt-pattern): Allow "[]" style prompts.
2862         (Bug#11065)
2863
2864 2012-03-17  Michael Albinus  <michael.albinus@gmx.de>
2865
2866         * tramp.el (tramp-handle-insert-file-contents): Use
2867         progress-reporter for the whole scenario.
2868
2869 2012-03-01  Michael Albinus  <michael.albinus@gmx.de>
2870
2871         * tramp-sh.el (tramp-remote-process-environment): Add "PAGER=\"\"".
2872         Reported by Robert Lupton the Good <rhl@astro.princeton.edu>.
2873
2874 2012-02-28  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
2875
2876         * tramp.el (tramp-file-name-for-operation): Rename `files-equal-p'
2877         to `file-equal-p'.
2878
2879 2012-02-26  Michael Albinus  <michael.albinus@gmx.de>
2880
2881         * tramp.el (tramp-inodes, tramp-devices): Initialize with 0.
2882         (tramp-get-inode, tramp-get-device): Use cached values.
2883
2884 2012-02-25  Michael Albinus  <michael.albinus@gmx.de>
2885
2886         * tramp.el (tramp-file-name-for-operation): Add `files-equal-p'
2887         and `file-subdir-of-p'.
2888
2889         * tramp-sh.el (tramp-sh-handle-copy-directory):
2890         * tramp-smb.el (tramp-smb-handle-copy-directory): Add
2891         COPY-CONTENTS argument.
2892
2893 2012-02-16  Michael Albinus  <michael.albinus@gmx.de>
2894
2895         * tramp.el (tramp-error-with-buffer): Suppress buffer view, if
2896         `tramp-message-show-message' is nil.
2897
2898         * tramp-smb.el (tramp-smb-wrong-passwd-regexp): New defconst.
2899         (tramp-smb-maybe-open-connection): Handle wrong passwords.
2900         (tramp-smb-handle-rename-file): Fix spelling error.
2901
2902 2012-02-15  Glenn Morris  <rgm@gnu.org>
2903
2904         * tramp.el (tramp-encoding-command-interactive)
2905         (tramp-local-end-of-line): Add missing :version tags to new
2906         defcustoms and defgroups.
2907
2908 2012-02-13  Michael Albinus  <michael.albinus@gmx.de>
2909
2910         * tramp.el (tramp-error-with-buffer): Use `tramp-get-connection-buffer'.
2911
2912         * tramp-compat.el (tramp-compat-copy-directory): Add optional
2913         argument COPY-CONTENTS.  It is not handled yet.
2914
2915         * tramp-smb.el (tramp-smb-server-version)
2916         (tramp-smb-actions-with-tar): New defconst.
2917         (tramp-smb-action-with-tar): New defun.
2918         (tramp-smb-handle-copy-directory): Implement using "tar".  By
2919         this, time-stamps are preserved.
2920         (tramp-smb-handle-copy-file): Handle also the case of directories.
2921         (tramp-smb-handle-rename-file): Use "rename", when source and
2922         target are on the same share.
2923         (tramp-smb-maybe-open-connection): Use `tramp-smb-server-version'.
2924
2925 2012-02-03  Michael Albinus  <michael.albinus@gmx.de>
2926
2927         * tramp-sh.el (tramp-remote-path): Add "/opt/local/bin".
2928
2929 2012-01-27  Michael Albinus  <michael.albinus@gmx.de>
2930
2931         * Makefile.in (EMACS_INFO): Add variable.
2932
2933         * tramp.el (tramp-get-method-parameter): Move up.
2934         (tramp-mode-string-to-int, tramp-local-host-p): Set tramp-autoload
2935         cookie.
2936
2937 2012-01-26  Michael Albinus  <michael.albinus@gmx.de>
2938
2939         * tramp.el (tramp-completion-function-alist): Adapt docstring.
2940         (tramp-parse-shostkeys-sknownhosts): Do not return "." or "..".
2941         (tramp-parse-putty): Handle UNIX case.
2942
2943         * tramp-sh.el (tramp-completion-function-alist-putty): Handle UNIX case.
2944
2945 2012-01-22  Michael Albinus  <michael.albinus@gmx.de>
2946
2947         * tramp.el (tramp-action-login): Set connection property "login-as".
2948
2949         * tramp-cache.el (tramp-dump-connection-properties): Do not dump
2950         properties, when "login-as" is set.
2951
2952         * tramp-sh.el (tramp-methods): Add user spec to "pscp" and "psftp".
2953         (tramp-default-user-alist): Don't add "pscp".
2954         (tramp-do-copy-or-rename-file-out-of-band): Use connection
2955         property "login-as", if set.  (Bug#10530)
2956
2957 2012-01-21  Michael Albinus  <michael.albinus@gmx.de>
2958
2959         * tramp-sh.el (tramp-default-user-alist): Don't add "plink",
2960         "plink1" and "psftp".  (Bug#10530)
2961
2962 2012-01-17  Michael Albinus  <michael.albinus@gmx.de>
2963
2964         * tramp.el (tramp-methods, tramp-rsh-end-of-line): Remove
2965         `tramp-password-end-of-line' from docstring.
2966         (tramp-default-password-end-of-line): Remove defcustom.
2967         (tramp-local-end-of-line): New defcustom.
2968         (tramp-action-login, tramp-action-password, tramp-action-yesno)
2969         (tramp-action-yn, tramp-action-terminal): Use it.  (Bug#10530)
2970
2971         * tramp-sh.el (tramp-methods): Do not use `tramp-password-end-of-line'.
2972
2973 2012-01-15  Michael Albinus  <michael.albinus@gmx.de>
2974
2975         Version 2.2.4 released.
2976
2977         * tramp-sh.el (tramp-remote-path): Set tramp-autoload cookie.
2978
2979 2012-01-01  Michael Albinus  <michael.albinus@gmx.de>
2980
2981         * tramp-sh.el (tramp-remote-path): Add "/opt/bin" and "/opt/sbin".
2982         (tramp-find-shell): Rearrange implementation.
2983         (tramp-find-inline-compress): Cache the compress commands in the
2984         process cache.
2985         (tramp-get-inline-compress): Read connection properties from the
2986         process cache.
2987
2988 2011-12-30  Michael Albinus  <michael.albinus@gmx.de>
2989
2990         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
2991         Move check for busybox ...
2992         (tramp-find-shell): ... here.  Simplify implementation.
2993         (tramp-remote-coding-commands): Make the test command an extra slot.
2994         (tramp-find-inline-encoding): Cache the coding commands in the
2995         process cache.  Apply test command on the remote side, if defined.
2996         (tramp-get-inline-coding): Read connection properties from the
2997         process cache.
2998
2999 2011-12-29  Michael Albinus  <michael.albinus@gmx.de>
3000
3001         * tramp-sh.el (tramp-find-shell): Set "remote-shell" property also
3002         for alternative shells.
3003         (tramp-open-connection-setup-interactive-shell): Check, whether
3004         the shell is a busybox.
3005         (tramp-send-command): Don't suppress multiple prompts for
3006         busyboxes, it hurts.
3007
3008 2011-12-15  Michael Albinus  <michael.albinus@gmx.de>
3009
3010         * tramp-sh.el (tramp-find-file-exists-command): Spelling fixes.
3011         (tramp-remote-coding-commands): Check "test -c /dev/stdout".  If
3012         failing, a regular file would be written otherwise.  Reported by
3013         Dmitry Kurochkin <dmitry.kurochkin@gmail.com>.
3014         (tramp-find-inline-encoding): Embed checks in parentheses.
3015
3016 2011-12-07  Michael Albinus  <michael.albinus@gmx.de>
3017
3018         * tramp.el (top): Require 'cl.
3019         (tramp-enter-password): Remove it.  Move implementation ...
3020         (tramp-action-password): ... here.
3021         (tramp-make-tramp-temp-file, tramp-read-passwd)
3022         (tramp-clear-passwd, tramp-time-less-p, tramp-time-diff): Set
3023         tramp-autoload cookie.
3024
3025 2011-12-02  Michael Albinus  <michael.albinus@gmx.de>
3026
3027         * tramp-sh.el (tramp-maybe-open-connection): Handle user
3028         interrupt.  (Bug#10187)
3029
3030 2011-11-24  Michael Albinus  <michael.albinus@gmx.de>
3031
3032         * tramp.el (tramp-save-ad-hoc-proxies): New defcustom.
3033         (tramp-completion-handle-file-name-all-completions): Fix an error
3034         when called from ido.
3035
3036         * tramp-sh.el (tramp-compute-multi-hops): Save
3037         `tramp-default-proxies-alist' when requested.
3038
3039 2011-11-22  Michael Albinus  <michael.albinus@gmx.de>
3040
3041         * tramp.el (tramp-completion-make-tramp-file-name)
3042         (tramp-get-completion-user-host): Remove optional arg HOP, not
3043         needed any longer.
3044         (tramp-completion-handle-file-name-all-completions): Handle hops.
3045         (tramp-completion-dissect-file-name): Use better local variable name.
3046
3047 2011-11-19  Michael Albinus  <michael.albinus@gmx.de>
3048
3049         * tramp.el (tramp-make-tramp-file-name): Fix docstring.
3050         (tramp-completion-make-tramp-file-name)
3051         (tramp-get-completion-user-host): New optional arg HOP.
3052         (tramp-completion-dissect-file-name1): Add hop to the vector.
3053
3054 2011-11-17  Michael Albinus  <michael.albinus@gmx.de>
3055
3056         Add ad-hoc hops.
3057
3058         * tramp.el (tramp-user-regexp, tramp-file-name-regexp-unified)
3059         (tramp-file-name-regexp-url): Extend regexp by hop separator.
3060         (tramp-postfix-hop-format, tramp-postfix-hop-regexp)
3061         (tramp-remote-file-name-spec-regexp): New defconst.
3062         (tramp-file-name-structure): Extend structure for hops.
3063         (tramp-file-name-p, tramp-dissect-file-name)
3064         (with-parsed-tramp-file-name): Handle hops.
3065         (tramp-file-name-hop): New defun.
3066         (tramp-make-tramp-file-name): New optional arg HOP.
3067
3068         * tramp-efs.el (tramp-disable-efs): Fix docstring.
3069         (tramp-efs-file-name-p): Simplify.
3070
3071         * tramp-ftp.el (tramp-disable-ange-ftp): Fix docstring.
3072         (tramp-ftp-file-name-p): Simplify.
3073
3074         * tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Add hop to
3075         connection vector.
3076
3077         * tramp-gw.el (tramp-gw-open-connection): Add hop to connection
3078         vector.
3079
3080         * tramp-sh.el (tramp-sh-handle-expand-file-name)
3081         (tramp-compute-multi-hops): Handle hops.
3082
3083         * tramp-smb.el (tramp-smb-file-name-p): Simplify.
3084
3085 2011-11-16  Michael Albinus  <michael.albinus@gmx.de>
3086
3087         * tramp-cache.el (tramp-flush-file-property): Flush also
3088         properties of linked files.  (Bug#9879)
3089
3090         * tramp-sh.el (tramp-sh-handle-file-truename): Cache only the
3091         local file name.
3092
3093 2011-11-10  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
3094
3095         * tramp.el (tramp-parse-sknownhosts): Fix copy error of previous change.
3096
3097 2011-11-08  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
3098             Michael Albinus  <michael.albinus@gmx.de>
3099
3100         * tramp.el (tramp-set-completion-function): Fix docstring.
3101         (tramp-parse-group, tramp-parse-file)
3102         (tramp-parse-shostkeys-sknownhosts): New defuns.
3103         (tramp-parse-rhosts, tramp-parse-rhosts-group, tramp-parse-shosts)
3104         (tramp-parse-shosts-group, tramp-parse-sconfig)
3105         (tramp-parse-sconfig-group, tramp-parse-shostkeys)
3106         (tramp-parse-sknownhosts, tramp-parse-hosts)
3107         (tramp-parse-hosts-group, tramp-parse-passwd, tramp-parse-netrc):
3108         Use them.
3109         (tramp-parse-passwd-group, tramp-parse-netrc-group)
3110         (tramp-parse-putty-group): Don't narrow.
3111         (tramp-parse-putty): Make a loop.
3112
3113 2011-10-26  Michael Albinus  <michael.albinus@gmx.de>
3114
3115         * tramp.el (tramp-cleanup): New defun.
3116         (tramp-file-name-handler): Catch the `suppress' signal.
3117
3118         * tramp-cmds.el (tramp-cleanup-connection): Delete also process.
3119
3120         * tramp-sh.el (tramp-open-connection-setup-interactive-shell): Use
3121         `tramp-cleanup'.
3122         (tramp-current-connection): New defvar.
3123         (tramp-maybe-open-connection): Use `tramp-cleanup'.  Throw
3124         `suppress', if there was a failed connection shortly before.
3125
3126 2011-10-25  Michael Albinus  <michael.albinus@gmx.de>
3127
3128         * tramp-sh.el (tramp-sh-handle-file-directory-p): Return t for
3129         filenames "/method:foo:".  (Bug#9793)
3130
3131 2011-10-23  Michael Albinus  <michael.albinus@gmx.de>
3132
3133         Version 2.2.3 released.
3134
3135         * tramp-cache.el (top): Pacify byte-compiler using
3136         `init-file-user' and `site-run-file'.
3137
3138 2011-10-19  Michael Albinus  <michael.albinus@gmx.de>
3139
3140         * tramp.el (tramp-connectable-p): Make a stronger check on a
3141         running process.
3142
3143 2011-10-18  Michael Albinus  <michael.albinus@gmx.de>
3144
3145         * tramp.el (tramp-file-name-handler): Load Tramp packages silently.
3146
3147 2011-10-12  Michael Albinus  <michael.albinus@gmx.de>
3148
3149         * tramp.el (tramp-rfn-eshadow-update-overlay): Ignore errors.  Let
3150         `file-name-handler-alist' be nil, the local file name part could
3151         look remotely (for example on VMS).  (Bug#6019, Bug#9315)
3152
3153 2011-10-09  Michael Albinus  <michael.albinus@gmx.de>
3154
3155         * tramp.el (tramp-file-name-handler): Add 'debug to the error
3156         condition.
3157
3158 2011-09-23  Michael Albinus  <michael.albinus@gmx.de>
3159
3160         * tramp-sh.el (tramp-sh-handle-file-name-all-completions): Fix
3161         nasty bug using wrong cached values.
3162
3163 2011-09-21  Michael Albinus  <michael.albinus@gmx.de>
3164
3165         * tramp.el (tramp-handle-shell-command): Set process sentinel and
3166         process filter, as done also in `shell-command'.
3167
3168 2011-09-19  Michael Albinus  <michael.albinus@gmx.de>
3169
3170         * tramp-sh.el (tramp-inline-compress-commands): Add "xz".
3171         Suggested by Liam Stitt <stittl@cuug.ab.ca>.
3172
3173         * tramp-smb.el (tramp-methods): Use `tramp-smb-method'.
3174         (tramp-smb-handle-start-file-process): Don't reset
3175         query-on-exit-flag.
3176         (tramp-smb-kill-winexe-function): New defun.
3177         (tramp-smb-call-winexe): Add it to local `kill-buffer-hook'.
3178
3179 2011-09-18  Michael Albinus  <michael.albinus@gmx.de>
3180
3181         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
3182         (tramp-maybe-open-connection): Use `tramp-file-name-real-host' for
3183         `tramp-current-host'.
3184
3185 2011-09-12  Michael Albinus  <michael.albinus@gmx.de>
3186
3187         * tramp-smb.el (tramp-smb-handle-file-attributes): Ignore errors.
3188         (tramp-smb-handle-start-file-process): Simplify process name detection.
3189
3190 2011-09-10  Michael Albinus  <michael.albinus@gmx.de>
3191
3192         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler for
3193         `start-file-process'.
3194         (tramp-smb-handle-process-file): Tune process name determination.
3195         Use `tramp-temp-buffer-name'.  Narrow region at point-max.
3196         (tramp-smb-handle-start-file-process): New defun.
3197
3198 2011-09-07  Michael Albinus  <michael.albinus@gmx.de>
3199
3200         * tramp.el (top): Don't require 'shell.
3201         (tramp-methods): Fix docstring.
3202         (tramp-get-remote-tmpdir): Use `tramp-tmpdir', if defined for the
3203         respective method.
3204
3205         * tramp-compat.el (top): Require 'shell.
3206
3207         * tramp-smb.el (tramp-methods): Add `tramp-tmpdir' entry.
3208         (tramp-smb-winexe-shell-command): Fix docstring.
3209         (tramp-smb-send-command): Remove argument `remove-prompt'.
3210         (tramp-smb-wait-for-output): Remove prompt.
3211
3212 2011-09-06  Michael Albinus  <michael.albinus@gmx.de>
3213
3214         * tramp.el (tramp-get-remote-tmpdir): New defun, moved from
3215         tramp-sh.el.  Return complete remote file name.  Handle "smb"
3216         case.
3217         (tramp-make-tramp-temp-file): Adapt call of `tramp-get-remote-tmpdir'.
3218
3219         * tramp-sh.el (tramp-get-remote-tmpdir): Remove.
3220
3221         * tramp-smb.el (tramp-smb-handle-process-file): Handle INFILE
3222         correctly.
3223         (tramp-smb-send-command): Fix previous patch for correct return
3224         value.
3225
3226 2011-09-04  Michael Albinus  <michael.albinus@gmx.de>
3227
3228         * tramp.el (top): Require 'shell.  Use `tramp-unload-hook' but
3229         `tramp-cache-unload-hook' where appropriate.
3230         (tramp-methods): Rename `tramp-remote-sh' to
3231         `tramp-remote-shell'.  Add `tramp-remote-shell-args'.
3232         (tramp-handle-shell-command): New defun, moved from tramp-sh.el.
3233
3234         * tramp-sh.el (top): Don't require 'shell.
3235         (tramp-methods): Add `tramp-remote-shell' and
3236         `tramp-remote-shell-args' entries.
3237         (tramp-sh-file-name-handler-alist): Use `tramp-handle-shell-command'.
3238         (tramp-sh-handle-shell-command): Remove.
3239         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
3240         Use `tramp-remote-shell'.
3241
3242         * tramp-smb.el (tramp-methods): Add `tramp-remote-shell' entry.
3243         (tramp-smb-prompt): Extend for powershell prompt.
3244         (tramp-smb-errors): Add "NT_STATUS_IMAGE_ALREADY_LOADED".
3245         (tramp-smb-file-name-handler-alist): Add handler for
3246         `process-file' and `shell-command'.
3247         (tramp-smb-winexe-program, tramp-smb-winexe-shell-command)
3248         (tramp-smb-winexe-shell-command-switch): New defcustoms.
3249         (tramp-smb-do-file-attributes-with-stat)
3250         (tramp-smb-get-file-entries, tramp-smb-get-cifs-capabilities): Use
3251         `tramp-get-connection-buffer').
3252         (tramp-smb-handle-process-file, tramp-smb-call-winexe)
3253         (tramp-smb-shell-quote-argument): New defuns.
3254         (tramp-smb-send-command): New optional argument REMOVE-PROMPT.
3255         (tramp-smb-winexe-program): New optional argument ARGUMENT.
3256         Handle also winexe calls.
3257         (tramp-smb-wait-for-output): Check also for process end.
3258
3259 2011-08-31  Michael Albinus  <michael.albinus@gmx.de>
3260
3261         * tramp.el (tramp-root-regexp): Remove.
3262         (tramp-completion-file-name-regexp-unified)
3263         (tramp-completion-file-name-regexp-separate)
3264         (tramp-completion-file-name-regexp-url): Don't use leading volume
3265         letter on win32 systems.  (Bug#5303, Bug#9311)
3266         (tramp-drop-volume-letter): Simplify definition.  Suggested by
3267         Stefan Monnier <monnier@iro.umontreal.ca>.
3268
3269 2011-08-03  Michael Albinus  <michael.albinus@gmx.de>
3270
3271         * tramp-sh.el (tramp-open-connection-setup-interactive-shell)
3272         (tramp-open-shell): Use `tramp-shell-quote-argument'.
3273
3274 2011-07-30  Michael Albinus  <michael.albinus@gmx.de>
3275
3276         Version 2.2.2 released.
3277
3278 2011-07-27  Michael Albinus  <michael.albinus@gmx.de>
3279
3280         * tramp-sh.el (tramp-maybe-send-script): Don't let-bind the
3281         connection process, it could be nil.
3282
3283 2011-07-24  Michael Albinus  <michael.albinus@gmx.de>
3284
3285         * tramp-sh.el (tramp-barf-unless-okay): Return the value of
3286         `tramp-send-command-and-check' if there is no error.
3287         (tramp-send-command-and-read): Suppress *all* errors if NOERROR.
3288
3289 2011-07-22  Michael Albinus  <michael.albinus@gmx.de>
3290
3291         * tramp.el (tramp-file-name-handler): Avoid recursive loading.
3292         (Bug#9114)
3293
3294 2011-07-14  Chong Yidong  <cyd@stupidchicken.com>
3295
3296         * tramp-cmds.el (tramp-append-tramp-buffers): Revert to using
3297         switch-to-buffer.
3298
3299         * tramp-compat.el (tramp-compat-pop-to-buffer-same-window): Deleted.
3300
3301 2011-07-08  Michael Albinus  <michael.albinus@gmx.de>
3302
3303         * tramp-sh.el (tramp-sh-handle-start-file-process): Use a
3304         human-friendly prompt.
3305
3306 2011-07-06  Michael Albinus  <michael.albinus@gmx.de>
3307
3308         * tramp-compat.el (tramp-compat-pop-to-buffer-same-window): New defun.
3309         * tramp-cmds.el (tramp-append-tramp-buffers): Use it.
3310
3311 2011-07-05  Stefan Monnier  <monnier@iro.umontreal.ca>
3312
3313         * tramp-cmds.el (tramp-append-tramp-buffers): Fix some uses of
3314         switch-to-buffer.
3315
3316 2011-07-04  Michael Albinus  <michael.albinus@gmx.de>
3317
3318         * tramp-cmds.el (tramp-cleanup-this-connection): New command.
3319
3320         * tramp-sh.el (tramp-color-escape-sequence-regexp): New defconst.
3321         (tramp-sh-handle-insert-directory, tramp-convert-file-attributes):
3322         Use it.
3323         (tramp-remote-path): Add "/bin" and "/usr/bin".  On busyboxes,
3324         `tramp-default-remote-path' does not exist.
3325         (tramp-send-command-and-read): New optional argument NOERROR.
3326         (tramp-open-connection-setup-interactive-shell)
3327         (tramp-get-remote-path, tramp-get-remote-stat): Use it.
3328         (tramp-get-remote-readlink): Do not mask with `ignore-errors'.
3329         (tramp-process-sentinel): Flush also process' connection property.
3330         (tramp-sh-handle-start-file-process): Do not set process
3331         sentinel.  It is done now ...
3332         (tramp-maybe-open-connection): ... here.  (Bug#8929)
3333
3334 2011-07-01  Michael Albinus  <michael.albinus@gmx.de>
3335
3336         * tramp.el (tramp-encoding-command-interactive): New defcustom.
3337
3338         * tramp-sh.el (tramp-maybe-open-connection): Use it.
3339
3340 2011-06-23  Michael Albinus  <michael.albinus@gmx.de>
3341
3342         * tramp-sh.el (tramp-method-out-of-band-p): Check, whether SIZE is
3343         a number.
3344
3345 2011-06-21  Michael Albinus  <michael.albinus@gmx.de>
3346
3347         * tramp-cache.el (top): Don't load the persistency file when
3348         "emacs -Q" has been called.
3349
3350 2011-06-11  Michael Albinus  <michael.albinus@gmx.de>
3351
3352         * tramp.el (tramp-debug-message): Add `tramp-with-progress-reporter'
3353         to ignored backtrace functions.
3354
3355 2011-06-04  Michael Albinus  <michael.albinus@gmx.de>
3356
3357         * tramp-sh.el (tramp-find-shell): Apply workaround also for "SunOS
3358         5.10".
3359
3360 2011-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>
3361
3362         * tramp.el (tramp-with-progress-reporter): Rename from
3363         with-progress-reporter.  Use `declare'.
3364         * tramp-smb.el:
3365         * tramp-sh.el:
3366         * tramp-gvfs.el: Update all uses.
3367
3368 2011-06-04  Michael Albinus  <michael.albinus@gmx.de>
3369
3370         * tramp.el (tramp-set-completion-function, tramp-parse-rhosts)
3371         (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
3372         (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
3373         (tramp-parse-putty):
3374         * tramp-sh.el (tramp-completion-function-alist-rsh)
3375         (tramp-completion-function-alist-ssh)
3376         (tramp-completion-function-alist-telnet)
3377         (tramp-completion-function-alist-su)
3378         (tramp-completion-function-alist-putty): Set `tramp-autoload'
3379         cookie.
3380
3381         * tramp-efs.el:
3382         * tramp-ftp.el:
3383         * tramp-sh.el:
3384         * tramp-smb.el: Set `tramp-autoload' cookie, and eval after load
3385         "tramp.el" `tramp-set-completion-function'.
3386
3387 2011-05-23  Stefan Monnier  <monnier@iro.umontreal.ca>
3388
3389         * <lots-of-files>.el: Don't quote lambda expressions with `quote'.
3390
3391 2011-05-18  Michael Albinus  <michael.albinus@gmx.de>
3392
3393         * tramp.el (tramp-process-actions): Set "first-password-request"
3394         property for the correct connection in case of multihops.
3395
3396 2011-05-17  Michael Albinus  <michael.albinus@gmx.de>
3397
3398         * tramp.el (tramp-handle-insert-file-contents): Use "dd" instead
3399         of "head" and "tail".  There were problems with SunOS 5.9, and it
3400         performs better.
3401
3402 2011-05-05  Michael Albinus  <michael.albinus@gmx.de>
3403
3404         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix port
3405         computation bug.  (Bug#8618)
3406
3407 2011-04-25  Michael Albinus  <michael.albinus@gmx.de>
3408
3409         * tramp.el (tramp-process-actions): Add POS argument.  Delete
3410         region between POS and (pos).
3411
3412         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Use
3413         `nil' position in `tramp-process-actions' call.
3414         (tramp-maybe-open-connection): Call `tramp-process-actions' with pos.
3415
3416         * tramp-smb.el (tramp-smb-maybe-open-connection): Use `nil'
3417         position in `tramp-process-actions' call.
3418
3419 2011-04-17  Michael Albinus  <michael.albinus@gmx.de>
3420
3421         * tramp-sh.el (tramp-sh-handle-file-attributes): Handle the case
3422         when the scripts fail.  Use `tramp-do-file-attributes-with-ls' then.
3423         (tramp-do-copy-or-rename-file-out-of-band): Do not check any longer
3424         whether `executable-find' is bound.
3425
3426         * tramp-smb.el (tramp-smb-handle-copy-file): Fix docstring.
3427
3428 2011-03-12  Michael Albinus  <michael.albinus@gmx.de>
3429
3430         Version 2.2.1 released.
3431
3432         * tramp-sh.el (tramp-methods): Exchange "%k" marker with options.
3433
3434 2011-03-09  Michael Albinus  <michael.albinus@gmx.de>
3435
3436         * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Do not
3437         use `tramp-file-name-port', because this returns also
3438         `tramp-default-port'.
3439
3440 2011-03-06  Juanma Barranquero  <lekktu@gmail.com>
3441
3442         * tramp-cache.el: Don't set `kill-emacs-hook' on noninteractive
3443         sessions (bug#8137).
3444
3445 2011-02-28  Michael Albinus  <michael.albinus@gmx.de>
3446
3447         * tramp-cmds.el (tramp-append-tramp-buffers): Dump load-path shadows.
3448
3449 2011-02-22  Glenn Morris  <rgm@gnu.org>
3450
3451         * tramp-gvfs.el: Fix spelling of "precede".
3452
3453 2011-02-21  Michael Albinus  <michael.albinus@gmx.de>
3454
3455         * tramp.el (tramp-rfn-eshadow-setup-minibuffer): Do not use
3456         `field' property of `rfn-eshadow-overlay'.
3457
3458 2011-02-13  Michael Albinus  <michael.albinus@gmx.de>
3459
3460         * Makefile.in: Remove tramp-imap.el.
3461
3462         * tramp.el (tramp-read-passwd): Simplify `auth-source-search' call.
3463
3464         * tramp-imap.el: Remove file.
3465
3466 2011-02-13  Teodor Zlatanov  <tzz@lifelogs.com>
3467
3468         * tramp.el (tramp-default-method): Also check if
3469         `auth-source-search' is bound.
3470         (tramp-read-passwd): Use `auth-source-search' instead of
3471         `auto-source-user-or-password'.
3472
3473 2011-02-05  Michael Albinus  <michael.albinus@gmx.de>
3474
3475         * tramp-smb.el (tramp-smb-errors): Use `regexp-opt'.  Add
3476         "NT_STATUS_IO_TIMEOUT" and "NT_STATUS_NO_SUCH_USER".
3477
3478 2011-02-03  Era Eriksson  <era+tramp@iki.fi>  (tiny change)
3479
3480         * tramp.el (tramp-postfix-method-format)
3481         (tramp-postfix-method-regexp, tramp-prefix-domain-format)
3482         (tramp-prefix-domain-regexp, tramp-postfix-user-format)
3483         (tramp-postfix-user-regexp, tramp-prefix-port-format)
3484         (tramp-prefix-port-regexp, tramp-postfix-host-format)
3485         (tramp-postfix-host-regexp, tramp-handle-substitute-in-file-name):
3486         Doc fix.
3487
3488 2011-02-03  Michael Albinus  <michael.albinus@gmx.de>
3489
3490         * tramp-sh.el (tramp-remote-path): Add default settings for
3491         `tramp-default-remote-path' to the docstring.
3492         (tramp-get-remote-path): Suppress error message when `getconf
3493         PATH' fails.
3494
3495         * tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_UNSUCCESSFUL".
3496
3497 2011-01-10  Michael Albinus  <michael.albinus@gmx.de>
3498
3499         * tramp.el (tramp-default-method): Initialize with pscp/plink only
3500         when running under W32.
3501         (tramp-debug-message): Extend function exclude list.  Use `regexp-opt'.
3502
3503         * tramp-sh.el (tramp-find-inline-compress)
3504         (tramp-get-inline-coding): Quote command after pipe symbol for
3505         local calls under W32.  (Bug#6784)
3506
3507 2010-12-31  Michael Albinus  <michael.albinus@gmx.de>
3508
3509         * tramp-sh.el (tramp-methods): Add recursive options to "scpc" and
3510         "scpx".
3511
3512 2010-12-30  Michael Albinus  <michael.albinus@gmx.de>
3513
3514         * tramp.el (tramp-default-method-alist, tramp-default-user-alist)
3515         (tramp-local-host-regexp, tramp-prefix-domain-format)
3516         (tramp-prefix-domain-regexp): Set tramp-autoload cookie.
3517
3518         * tramp-efs.el:
3519         * tramp-ftp.el:
3520         * tramp-gvfs.el:
3521         * tramp-gw.el:
3522         * tramp-imap.el:
3523         * tramp-sh.el:
3524         * tramp-smb.el: Add tramp-autoload cookie for initialisation code
3525         of `tramp-default-method-alist' and `tramp-default-user-alist'.
3526
3527 2010-12-27  Michael Albinus  <michael.albinus@gmx.de>
3528
3529         * Makefile.in (tramp-loaddefs.el): Handle case on systems on which
3530         the format of absolute pathes are different between its shell and
3531         in emacsen, like MSYS.  Reported by Yosuke YAMADA
3532         <sunasaji@gmail.com>.
3533
3534         * tramp.el (tramp-default-user-alist): Do not add "ssh" based
3535         methods, otherwise ~/.ssh/config would be ignored.
3536
3537 2010-12-14  Michael Albinus  <michael.albinus@gmx.de>
3538
3539         * tramp-cache.el (tramp-persistency-file-name): Use
3540         `locate-user-emacs-file' if fboundp.
3541
3542 2010-12-10  Michael Albinus  <michael.albinus@gmx.de>
3543
3544         * tramp.el (tramp-action-password, tramp-process-actions): Revert
3545         patch from 2010-12-08.  Use `save-restriction'.
3546
3547 2010-12-08  Michael Albinus  <michael.albinus@gmx.de>
3548
3549         * tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
3550         (tramp-handle-insert-file-contents): Do not set permanent-local
3551         property.
3552         (tramp-action-password): Delete region, do not narrow.
3553         (tramp-process-actions): Do not widen.
3554
3555         * tramp-sh.el (tramp-handle-start-file-process): Protect
3556         buffer-modified value.  (Bug#7557)
3557
3558 2010-12-03  Michael Albinus  <michael.albinus@gmx.de>
3559
3560         * tramp-sh.el (tramp-methods): Add "ksu".
3561         (tramp-default-user-alist): Add "ksu".  Use `regexp-opt' for
3562         method list.
3563
3564 2010-12-01  Michael Albinus  <michael.albinus@gmx.de>
3565
3566         * tramp.el (tramp-debug-message): Extend function exclude list.
3567
3568         * tramp-sh.el (tramp-methods): Add recursive options to "pscp" and
3569         "psftp".  Exchange "%k" marker with options.
3570         (tramp-do-copy-or-rename-file, tramp-sh-handle-file-local-copy):
3571         Compute size of link target.
3572         (tramp-do-copy-or-rename-file-out-of-band). Move setting of
3573         `tramp-current-*' up due to gateway methods.  Optimze computing of
3574         copy arguments.  Use `tramp-get-connection-name' and
3575         `tramp-get-connection-buffer'.  Improve debug messages.
3576
3577 2010-11-27  Michael Albinus  <michael.albinus@gmx.de>
3578
3579         * tramp.el (tramp-default-method-alist)
3580         (tramp-default-user-alist, tramp-default-proxies-alist): Adapt
3581         custom options type.  (Bug#7445)
3582         (tramp-local-host-regexp): Add "localhost6".
3583         (tramp-file-name-port): Check also for `tramp-default-port'.
3584         (tramp-get-connection-name): New defun.
3585         (tramp-get-connection-process): Use it.
3586         (tramp-drop-volume-letter): Fix doc string.
3587
3588         * tramp-cmds.el: Remove solved todo item.
3589
3590         * tramp-efs.el:
3591         * tramp-ftp.el:
3592         * tramp-gvfs.el:
3593         * tramp-gw.el:
3594         * tramp-imap.el:
3595         * tramp-smb.el: Fix regexps added to `tramp-default-method-alist'
3596         and `tramp-default-user-alist', respectively.
3597
3598         * tramp-gw.el (tramp-gw-open-connection): Use
3599         `tramp-get-connection-name' and `tramp-get-connection-buffer'.
3600
3601         * tramp-imap.el (tramp-imap-make-iht): Use just
3602         `tramp-file-name-port'.
3603
3604         * tramp-sh.el (tramp-compute-multi-hops): Remove port
3605         determination.
3606         (tramp-maybe-open-connection): Use `tramp-get-connection-name'.
3607
3608 2010-11-21  Michael Albinus  <michael.albinus@gmx.de>
3609
3610         * tramp.el (tramp-handle-insert-file-contents): Do not set
3611         `backup-by-copying-when-mismatch'.
3612
3613 2010-11-20  Michael Albinus  <michael.albinus@gmx.de>
3614
3615         Version 2.2.0 released.
3616
3617         * tramp.el (tramp-handle-insert-file-contents): Don't use
3618         `file-remote-p' (due to compatibility).
3619
3620         * tramp-sh.el (tramp-do-copy-or-rename-file-directly)
3621         (tramp-do-copy-or-rename-file-out-of-band): Use `ignore-errors'.
3622
3623 2010-11-13  Michael Albinus  <michael.albinus@gmx.de>
3624
3625         * tramp-compat.el (tramp-compat-line-beginning-position)
3626         (tramp-compat-line-end-position): Remove them.
3627
3628         * tramp.el (tramp-parse-rhosts-group, tramp-parse-shosts-group)
3629         (tramp-parse-sconfig-group, tramp-parse-passwd-group)
3630         (tramp-parse-netrc-group, tramp-parse-putty-group)
3631         * tramp-cmds.el (tramp-append-tramp-buffers)
3632         * tramp-sh.el (tramp-do-file-attributes-with-ls)
3633         (tramp-sh-handle-file-selinux-context)
3634         (tramp-sh-handle-file-name-all-completions)
3635         (tramp-sh-handle-insert-directory)
3636         (tramp-sh-handle-expand-file-name, tramp-find-executable)
3637         (tramp-wait-for-output, tramp-send-command-and-read)
3638         * tramp-smb.el (tramp-smb-read-file-entry)
3639         (tramp-smb-get-cifs-capabilities)
3640         * tramp-util.el (tramp-PC-expand-many-files): Use `point-at-eol'.
3641
3642         * tramp-sh.el (tramp-sh-handle-insert-directory) Use `point-at-bol'.
3643         (tramp-remote-coding-commands): Add an alternative using "base64
3644         -d -i".  This is needed for older base64 versions from GNU
3645         coreutils.  Reported by Klaus Reichl
3646         <Klaus.Reichl@thalesgroup.com>.
3647
3648 2010-11-09  Michael Albinus  <michael.albinus@gmx.de>
3649
3650         * tramp.el (tramp-handle-insert-file-contents): Do not set
3651         `permanent-local' property for `backup-by-copying-when-mismatch'.
3652
3653 2010-10-30  Michael Albinus  <michael.albinus@gmx.de>
3654
3655         * tramp.el (tramp-handle-insert-file-contents): For root, preserve
3656         owner and group when editing files.  (Bug#7289)
3657
3658 2010-10-28  Michael Albinus  <michael.albinus@gmx.de>
3659
3660         * Makefile.in (autoloads): Use $(builddir) prefix.
3661
3662 2010-10-21  Michael Albinus  <michael.albinus@gmx.de>
3663
3664         * Makefile.in (builddir): New variable, used instead of srcdir.
3665         (INSTALL_FILES, xemacs): Add tramp-loaddefs.el.
3666         (autoloads): Do not use $(srcdir) prefix.
3667         Reported by David Rothenberger <daveroth@acm.org>.
3668
3669         * tramp-sh.el (tramp-get-inline-coding): Return `nil' in case of
3670         errors.
3671
3672 2010-10-20  Michael Albinus  <michael.albinus@gmx.de>
3673
3674         * tramp-sh.el (tramp-send-command): Simplify last patch, and
3675         restrict it to here documents.
3676
3677 2010-10-19  Michael Albinus  <michael.albinus@gmx.de>
3678
3679         * tramp-sh.el (tramp-do-file-attributes-with-stat)
3680         (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
3681         order to make stat results a float.  Patch by Andreas Schwab
3682         <schwab@linux-m68k.org>.
3683         (tramp-send-command): Unset $PS1 in a subshell, in order not to
3684         get several prompts when there are commands separated by ";".
3685
3686         * tramp-util.el (tramp-advice-executable-find): Do not check for
3687         `tramp-fish-file-name-handler'.  Use
3688         `tramp-sh-handle-executable-find'.
3689         (tramp-advice-process-file): Do
3690         not check for `tramp-fish-file-name-handler'.
3691         (tramp-advice-call-process-region): Do not check for
3692         `tramp-fish-file-name-handler'.  Use
3693         `tramp-sh-handle-call-process-region.
3694
3695 2010-10-15  Michael Albinus  <michael.albinus@gmx.de>
3696
3697         * tramp-sh.el (tramp-open-connection-setup-interactive-shell):
3698         Suppress expansion of tabs to spaces.  Reported by Dale Sedivec
3699         <dale@codefu.org>.
3700
3701 2010-10-06  Michael Albinus  <michael.albinus@gmx.de>
3702
3703         * tramp-sh.el (tramp-sh-file-name-handler-alist): Use
3704         `tramp-handle-find-backup-file-name'.
3705
3706 2010-10-05  Michael Albinus  <michael.albinus@gmx.de>
3707
3708         * tramp.el (tramp-handle-directory-files-and-attributes)
3709         (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p):
3710         New defuns, taken from tramp-smb.el.
3711         (tramp-coding-system-change-eol-conversion)
3712         (tramp-set-process-query-on-exit-flag): Removed.
3713
3714         * tramp-compat.el (top): Do not check for byte-compiler objects.
3715         (tramp-compat-coding-system-change-eol-conversion)
3716         (tramp-compat-set-process-query-on-exit-flag): New defuns, taken
3717         from tramp.el.
3718
3719         * tramp-gvfs.el:
3720         * tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag' by
3721         `tramp-compat-set-process-query-on-exit-flag'.
3722
3723         * tramp-imap.el (tramp-imap-file-name-handler-alist): Use
3724         `tramp-handle-directory-files-and-attributes',
3725         `tramp-handle-file-exists-p' and
3726         `tramp-handle-file-newer-than-file-p'.
3727         (tramp-imap-handle-file-exists-p)
3728         (tramp-imap-handle-file-executable-p)
3729         (tramp-imap-handle-file-readable-p)
3730         (tramp-imap-handle-directory-files-and-attributes)
3731         (tramp-imap-handle-file-newer-than-file-p): Removed.
3732
3733         * tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag' by
3734         `tramp-compat-set-process-query-on-exit-flag' and
3735         `tramp-coding-system-change-eol-conversion' by
3736         `tramp-compat-coding-system-change-eol-conversion'.
3737
3738         * tramp-smb.el (tramp-smb-file-name-handler-alist): Use
3739         `tramp-handle-directory-files-and-attributes',
3740         `tramp-handle-file-exists-p' and
3741         `tramp-handle-file-newer-than-file-p'.
3742         (tramp-smb-handle-directory-files-and-attributes)
3743         (tramp-smb-handle-file-exists-p)
3744         (tramp-smb-handle-file-newer-than-file-p): Removed.
3745         (tramp-smb-maybe-open-connection): Replace
3746         `tramp-set-process-query-on-exit-flag' by
3747         `tramp-compat-set-process-query-on-exit-flag'.
3748
3749 2010-10-04  Glenn Morris  <rgm@gnu.org>
3750
3751         * tramp-compat.el: Don't mess about with the byte-compiler unless
3752         it is "necessary".
3753
3754 2010-10-04  Michael Albinus  <michael.albinus@gmx.de>
3755
3756         Continue reorganization of load dependencies.  (Bug#7156)
3757
3758         * tramp.el (tramp-handle-file-local-copy-hook)
3759         (tramp-delete-temp-file-function): Move down.
3760         (tramp-exists-file-name-handler): Move up.
3761         (tramp-register-file-name-handlers): Simplify autoload.
3762         (tramp-handle-write-region-hook, tramp-handle-directory-file-name)
3763         (tramp-handle-directory-files, tramp-handle-dired-uncache)
3764         (tramp-handle-file-modes, tramp-handle-file-name-as-directory)
3765         (tramp-handle-file-name-completion)
3766         (tramp-handle-file-name-directory)
3767         (tramp-handle-file-name-nondirectory, tramp-handle-file-regular-p)
3768         (tramp-handle-file-remote-p, tramp-handle-file-symlink-p)
3769         (tramp-handle-find-backup-file-name)
3770         (tramp-handle-insert-file-contents, tramp-handle-load)
3771         (tramp-handle-substitute-in-file-name)
3772         (tramp-handle-unhandled-file-name-directory)
3773         (tramp-mode-string-to-int, tramp-local-host-p)
3774         (tramp-make-tramp-temp-file): Moved from tramp-sh.el.
3775
3776         * tramp-gvfs.el (top):
3777         * tramp-smb.el (top): Do not require 'tramp-sh.
3778
3779         * tramp-sh.el (all): Move several objects to tramp.el, see there.
3780         Rename `tramp-handle-*' to `tramp-sh-handle-*'.
3781
3782         * tramp-vc.el (tramp-vc-user-login-name, tramp-vc-file-owner): Use
3783         `file-attributes'.
3784
3785 2010-10-02  Michael Albinus  <michael.albinus@gmx.de>
3786
3787         * tramp.el (tramp-completion-reread-directory-timeout): Fix
3788         docstring.
3789
3790         * tramp-cache.el (tramp-cache-inhibit-cache): Remove.
3791         (tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by
3792         `remote-file-name-inhibit-cache'.  Check also for an integer
3793         value.  Add/increase counter when `tramp-verbose' >= 10.
3794         (tramp-set-file-property): Add/increase counter when
3795         `tramp-verbose' >= 10.
3796
3797         * tramp-cmds.el (tramp-cleanup-all-connections)
3798         (tramp-cleanup-all-buffers): Set tramp-autoload cookie.
3799         (tramp-bug): Set tramp-autoload cookie.  Report all interned
3800         tramp-* variables.  Report also `remote-file-name-inhibit-cache'.
3801         (tramp-reporter-dump-variable): Fix docstring.  Mask non-7bit
3802         characters only in strings.
3803
3804         * tramp-compat.el (remote-file-name-inhibit-cache): Define due to
3805         backward compatibility.
3806
3807         * tramp-sh.el (tramp-handle-verify-visited-file-modtime)
3808         (tramp-handle-file-name-all-completions)
3809         (tramp-handle-vc-registered): Use
3810         `remote-file-name-inhibit-cache'.
3811         (tramp-open-connection-setup-interactive-shell): Call
3812         `tramp-cleanup-connection' directly.
3813
3814 2010-09-17  Michael Albinus  <michael.albinus@gmx.de>
3815
3816         * tramp-compat.el (tramp-compat-with-temp-message): Make it a defmacro.
3817
3818 2010-09-16  Michael Albinus  <michael.albinus@gmx.de>
3819
3820         * Makefile.in (autoloads): Renamed from tramp-autoloads.
3821         (tramp-loaddefs.el): Revert check for XEmacs.
3822
3823         * tramp-cmds.el (tramp-cleanup-connection): Set tramp-autoload cookie.
3824
3825 2010-09-15  Michael Albinus  <michael.albinus@gmx.de>
3826
3827         Ensure XEmacs compatibility.
3828
3829         * Makefile.in (tramp-loaddefs.el): Adapt `autoload-trim-file-name'
3830         and feature name.
3831         (distclean): Remove trampver.el, it is handled by the upper Makefile.
3832
3833         * tramp-compat.el (tramp-compat-with-temp-message)
3834         (tramp-compat-font-lock-add-keywords, tramp-compat-process-get)
3835         (tramp-compat-process-put): New defuns.
3836
3837         * tramp.el (top):
3838         * tramp-gvfs.el (top):
3839         * tramp-cache.el (top): Use `tramp-compat-font-lock-add-keywords'.
3840
3841         * tramp.el (tramp-progress-reporter-update): Use
3842         `tramp-compat-funcall'.
3843
3844         * tramp.el (tramp-process-actions):
3845         * tramp-gvfs.el (tramp-handle-vc-registered):
3846         * tramp-sh.el (tramp-gvfs-handler-askquestion)
3847         (tramp-get-remote-stat, tramp-get-remote-readlink): Use
3848         `tramp-compat-with-temp-message'.
3849
3850         * tramp-sh.el (top): Require 'cl.
3851         (tramp-handle-start-file-process): Use `tramp-compat-process-get'.
3852         (tramp-open-connection-setup-interactive-shell): Use
3853         `tramp-compat-process-put'.
3854
3855         * tramp-util.el (top): Require 'tramp-sh.
3856
3857 2010-09-13  Michael Albinus  <michael.albinus@gmx.de>
3858
3859         Major code cleanup.  Split tramp.el into tramp.el and tramp-sh.el.
3860
3861         * Makefile.in (LISP_FILES): Remove tramp-fish.el.  Add tramp-sh.el.
3862
3863         * tramp.el (top): Don't show loading message.  Require just
3864         'tramp-compat, everything else is required there.  Use
3865         `ignore-errors' where appropriate.
3866         (tramp-inline-compress-start-size, tramp-copy-size-limit)
3867         (tramp-terminal-type, tramp-end-of-output)
3868         (tramp-initial-end-of-output, tramp-completion-function-alist-rsh)
3869         (tramp-completion-function-alist-ssh)
3870         (tramp-completion-function-alist-telnet)
3871         (tramp-completion-function-alist-su)
3872         (tramp-completion-function-alist-putty, tramp-remote-path)
3873         (tramp-remote-process-environment, tramp-sh-extra-args)
3874         (tramp-actions-before-shell, tramp-uudecode)
3875         (tramp-perl-file-truename, tramp-perl-file-name-all-completions)
3876         (tramp-perl-file-attributes)
3877         (tramp-perl-directory-files-and-attributes)
3878         (tramp-perl-encode-with-module, tramp-perl-decode-with-module)
3879         (tramp-perl-encode, tramp-perl-decode)
3880         (tramp-vc-registered-read-file-names, tramp-file-mode-type-map)
3881         (tramp-file-name-handler-alist, tramp-make-tramp-temp-file)
3882         (tramp-handle-make-symbolic-link, tramp-handle-load)
3883         (tramp-handle-file-name-as-directory)
3884         (tramp-handle-file-name-directory)
3885         (tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
3886         (tramp-handle-file-exists-p, tramp-handle-file-attributes)
3887         (tramp-do-file-attributes-with-ls)
3888         (tramp-do-file-attributes-with-perl)
3889         (tramp-do-file-attributes-with-stat)
3890         (tramp-handle-set-visited-file-modtime)
3891         (tramp-handle-verify-visited-file-modtime)
3892         (tramp-handle-set-file-modes, tramp-handle-set-file-times)
3893         (tramp-set-file-uid-gid, tramp-remote-selinux-p)
3894         (tramp-handle-file-selinux-context)
3895         (tramp-handle-set-file-selinux-context)
3896         (tramp-handle-file-executable-p, tramp-handle-file-readable-p)
3897         (tramp-handle-file-newer-than-file-p, tramp-handle-file-modes)
3898         (tramp-handle-file-directory-p, tramp-handle-file-regular-p)
3899         (tramp-handle-file-symlink-p, tramp-handle-file-writable-p)
3900         (tramp-handle-file-ownership-preserved-p)
3901         (tramp-handle-directory-file-name, tramp-handle-directory-files)
3902         (tramp-handle-directory-files-and-attributes)
3903         (tramp-do-directory-files-and-attributes-with-perl)
3904         (tramp-do-directory-files-and-attributes-with-stat)
3905         (tramp-handle-file-name-all-completions)
3906         (tramp-handle-file-name-completion, tramp-handle-add-name-to-file)
3907         (tramp-handle-copy-file, tramp-handle-copy-directory)
3908         (tramp-handle-rename-file, tramp-do-copy-or-rename-file)
3909         (tramp-do-copy-or-rename-file-via-buffer)
3910         (tramp-do-copy-or-rename-file-directly)
3911         (tramp-do-copy-or-rename-file-out-of-band)
3912         (tramp-handle-make-directory, tramp-handle-delete-directory)
3913         (tramp-handle-delete-file)
3914         (tramp-handle-dired-recursive-delete-directory)
3915         (tramp-handle-dired-compress-file, tramp-handle-dired-uncache)
3916         (tramp-handle-insert-directory)
3917         (tramp-handle-unhandled-file-name-directory)
3918         (tramp-handle-expand-file-name)
3919         (tramp-handle-substitute-in-file-name)
3920         (tramp-handle-executable-find, tramp-process-sentinel)
3921         (tramp-handle-start-file-process, tramp-handle-process-file)
3922         (tramp-handle-call-process-region, tramp-handle-shell-command)
3923         (tramp-handle-file-local-copy, tramp-handle-file-remote-p)
3924         (tramp-handle-insert-file-contents)
3925         (tramp-handle-insert-file-contents-literally)
3926         (tramp-handle-find-backup-file-name)
3927         (tramp-handle-make-auto-save-file-name, tramp-handle-write-region)
3928         (tramp-vc-registered-file-names, tramp-handle-vc-registered)
3929         (tramp-sh-file-name-handler, tramp-vc-file-name-handler)
3930         (tramp-maybe-send-script, tramp-set-auto-save, tramp-run-test)
3931         (tramp-run-test2, tramp-find-executable, tramp-set-remote-path)
3932         (tramp-find-file-exists-command, tramp-open-shell)
3933         (tramp-find-shell, tramp-barf-if-no-shell-prompt)
3934         (tramp-open-connection-setup-interactive-shell)
3935         (tramp-local-coding-commands, tramp-remote-coding-commands)
3936         (tramp-find-inline-encoding, tramp-call-local-coding-command)
3937         (tramp-inline-compress-commands, tramp-find-inline-compress)
3938         (tramp-compute-multi-hops, tramp-maybe-open-connection)
3939         (tramp-send-command , tramp-wait-for-output)
3940         (tramp-send-command-and-check, tramp-barf-unless-okay)
3941         (tramp-send-command-and-read, tramp-mode-string-to-int)
3942         (tramp-convert-file-attributes, tramp-check-cached-permissions)
3943         (tramp-file-mode-from-int, tramp-file-mode-permissions)
3944         (tramp-shell-case-fold, tramp-make-copy-program-file-name)
3945         (tramp-method-out-of-band-p, tramp-local-host-p)
3946         (tramp-get-remote-path, tramp-get-remote-tmpdir)
3947         (tramp-get-ls-command, tramp-get-ls-command-with-dired)
3948         (tramp-get-test-command, tramp-get-test-nt-command)
3949         (tramp-get-file-exists-command, tramp-get-remote-ln)
3950         (tramp-get-remote-perl, tramp-get-remote-stat)
3951         (tramp-get-remote-readlink, tramp-get-remote-trash)
3952         (tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid)
3953         (tramp-get-local-uid, tramp-get-local-gid)
3954         (tramp-get-inline-compress, tramp-get-inline-coding, ): Move to
3955         tramp-sh.el.
3956         (tramp-methods, tramp-default-method-alist)
3957         (tramp-default-user-alist, tramp-foreign-file-name-handler-alist):
3958         Move initialization to tramp-sh.el.
3959         (tramp-temp-name-prefix): Make it a defconst.
3960         (tramp-dissect-file-name): Don't check anymore for multi-hop
3961         methods.
3962         (tramp-debug-outline-regexp): Add a docstring.
3963         (tramp-debug-outline-level): Renamed from `tramp-outline-level'.
3964         (tramp-get-debug-buffer): Use it.
3965
3966         * tramp-cache.el (top): Set tramp-autoload cookie for
3967         initialization forms.
3968         (tramp-set-connection-property): Don't protect `tramp-message'
3969         call, it isn't necessary any longer.
3970         (tramp-dump-connection-properties): Use `ignore-errors'.
3971
3972         * tramp-compat.el (top): Require 'advice, 'format-spec,
3973         'password-cache and 'auth-source.
3974
3975         * tramp-gvfs.el (top):
3976         * tramp-smb.el (top): Require 'tramp-sh.
3977
3978         * tramp-gw.el (tramp-gw-open-network-stream): Use `ignore-errors'.
3979
3980         * tramp-sh.el: New file, derived from tramp.el.
3981         (top): Initialize `tramp-methods', `tramp-default-method-alist',
3982         `tramp-default-user-alist', `tramp-foreign-file-name-handler-alist'.
3983         Remove "scp1_old", "scp2_old", "ssh1_old", "ssh2_old".  Use
3984         `ignore-errors' where appropriate.
3985         (tramp-sh-file-name-handler-alist): Renamed from
3986         `tramp-file-name-handler-alist'.
3987         (tramp-send-command-and-check): Return t or nil.  Remove all
3988         `zerop' checks, where called.
3989         (tramp-handle-set-file-modes)
3990         (tramp-do-copy-or-rename-file-directly)
3991         (tramp-handle-delete-directory, tramp-handle-delete-file)
3992         (tramp-maybe-send-script, ): Use `tramp-barf-unless-okay'.
3993         (tramp-sh-file-name-handler, tramp-send-command-and-check)
3994         (tramp-get-remote-ln): Set tramp-autoload cookie.
3995
3996         * tramp-fish.el: Remove file.
3997
3998 2010-09-09  Michael Albinus  <michael.albinus@gmx.de>
3999
4000         * tramp-cache.el (tramp-parse-connection-properties): Set
4001         tramp-autoload cookie.
4002
4003 2010-09-08  Michael Albinus  <michael.albinus@gmx.de>
4004
4005         Rearrange load dependencies.  (Bug#1529, Bug#5448, Bug#5705)
4006
4007         * Makefile.in (tramp-bug-report-address): New variable.
4008         (EVAL): Remove variable.
4009         (EM): Adapt variable.
4010         (tramp-autoloads, tramp-loaddefs.el): New entries
4011         (all): Depend on tramp-autoloads.
4012         (%.elc): Change call of $(EM).
4013         (distclean): Remove also trampver.el and tramp-loaddefs.el.
4014
4015         * tramp.el (top): Remove all other tramp-* loads except
4016         tramp-compat.el.  Remove all changes to tramp-unload-hook for
4017         other tramp-* packages.  Rearrange defun order.  Change calls of
4018         `tramp-compat-call-process', `tramp-compat-decimal-to-octal',
4019         `tramp-compat-octal-to-decimal' to new function names.
4020         (tramp-terminal-type, tramp-initial-end-of-output)
4021         (tramp-methods, tramp-foreign-file-name-handler-alist)
4022         (tramp-tramp-file-p, tramp-completion-mode-p)
4023         (tramp-send-command-and-check, tramp-get-remote-path)
4024         (tramp-get-remote-tmpdir, tramp-get-remote-ln)
4025         (tramp-shell-quote-argument): Set tramp-autoload cookie.
4026         (with-file-property, with-connection-property): Move to
4027         tramp-cache.el.
4028         (tramp-local-call-process, tramp-decimal-to-octal)
4029         (tramp-octal-to-decimal): Move to tramp-compat.el.
4030         (tramp-handle-shell-command): Do not require 'shell.
4031         (tramp-compute-multi-hops): No special handling for tramp-gw-*
4032         symbols.
4033         (tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
4034
4035         * tramp-cache.el (top): Require 'tramp.  Add to `tramp-unload-hook'.
4036         (tramp-cache-data, tramp-get-file-property)
4037         (tramp-set-file-property, tramp-flush-file-property)
4038         (tramp-flush-directory-property, tramp-get-connection-property)
4039         (tramp-set-connection-property, tramp-flush-connection-property)
4040         (tramp-cache-print, tramp-list-connections): Set tramp-autoload
4041         cookie.
4042         (with-file-property, with-connection-property): New defuns, moved
4043         from tramp.el.
4044         (tramp-flush-file-function): Use `with-parsed-tramp-file-name'
4045         macro.
4046
4047         * tramp-cmds.el (top): Add to `tramp-unload-hook'.
4048         (tramp-version): Set tramp-autoload cookie.
4049
4050         * tramp-compat.el (top): Require 'tramp-loaddefs.  Remove all
4051         changes to tramp-unload-hook for other tramp-* packages.  Add to
4052         `tramp-unload-hook'.
4053         (tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
4054         (tramp-compat-call-process): New defuns, moved from tramp.el.
4055
4056         * tramp-efs.el (top) Add objects to `tramp-methods' and
4057         `tramp-foreign-file-name-handler-alist'.  Add to
4058         `tramp-unload-hook'.
4059         (tramp-efs-method): Make it a defconst.
4060         (tramp-efs-file-name-p): Make it a defsubst.
4061         (tramp-efs-method, tramp-efs-file-name-handler)
4062         (tramp-efs-file-name-p): Set tramp-autoload cookie.
4063
4064         * tramp-fish.el (top) Require just 'tramp.  Add objects to
4065         `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
4066         to `tramp-unload-hook'.  Change call of
4067         `tramp-compat-decimal-to-octal' to new function name.
4068         (tramp-fish-method): Make it a defconst.
4069         (tramp-fish-file-name-p): Make it a defsubst.
4070         (tramp-fish-method, tramp-fish-file-name-handler)
4071         (tramp-fish-file-name-p): Set tramp-autoload cookie.
4072
4073         * tramp-ftp.el (top) Add objects to `tramp-methods' and
4074         `tramp-foreign-file-name-handler-alist'.  Add to
4075         `tramp-unload-hook'.
4076         (tramp-ftp-method): Make it a defconst.
4077         (tramp-ftp-file-name-p): Make it a defsubst.
4078         (tramp-ftp-method, tramp-ftp-file-name-handler)
4079         (tramp-ftp-file-name-p): Set tramp-autoload cookie.
4080
4081         * tramp-gvfs.el (top) Add objects to `tramp-methods' and
4082         `tramp-foreign-file-name-handler-alist'.  Add to
4083         `tramp-unload-hook'.  Change checks, whether package can be
4084         loaded.
4085         (tramp-gvfs-file-name-p): Make it a defsubst.
4086         (tramp-gvfs-methods, tramp-gvfs-file-name-handler)
4087         (tramp-gvfs-file-name-p): Set tramp-autoload cookie.
4088         (tramp-gvfs-handle-file-directory-p): New defun.
4089         (tramp-gvfs-file-name-handler-alist): Use it.
4090
4091         * tramp-gw.el (top) Add objects to `tramp-methods' and
4092         `tramp-foreign-file-name-handler-alist'.  Add to
4093         `tramp-unload-hook'.
4094         (tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
4095         (tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
4096         defconst.
4097         (tramp-gw-tunnel-method, tramp-gw-socks-method)
4098         (tramp-gw-open-connection): Set tramp-autoload cookie.
4099
4100         * tramp-imap.el (top) Require just 'tramp.  Add objects to
4101         `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
4102         to `tramp-unload-hook'.  Change checks, whether package can be
4103         loaded.
4104         (tramp-imap-file-name-p): Make it a defsubst.
4105         (tramp-imap-method, tramp-imaps-method)
4106         (tramp-imap-file-name-handler)
4107         (tramp-imap-file-name-p): Set tramp-autoload cookie.
4108
4109         * tramp-smb.el (top) Require just 'tramp.  Add objects to
4110         `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
4111         to `tramp-unload-hook'.  Change checks, whether package can be
4112         loaded.  Change call of `tramp-compat-decimal-to-octal' to new
4113         function name.
4114         (tramp-smb-tunnel-method): Make it a defconst.
4115         (tramp-smb-file-name-p): Make it a defsubst.
4116         (tramp-smb-method, tramp-smb-file-name-handler)
4117         (tramp-smb-file-name-p): Set tramp-autoload cookie.
4118
4119         * tramp-util.el (top) Require just 'tramp.  Add to
4120         `tramp-unload-hook'.
4121
4122         * tramp-uu.el (top) Add to `tramp-unload-hook'.
4123         (tramp-uuencode-region): Set tramp-autoload cookie.
4124
4125         * tramp-vc.el (top) Require just 'tramp.  Add to
4126         `tramp-unload-hook'.
4127
4128         * trampver.el.in (top) Add to `tramp-unload-hook'.
4129         (tramp-version, tramp-bug-report-address): Set tramp-autoload cookie.
4130
4131         * .cvsignore: Add tramp-loaddefs.el.
4132
4133 2010-08-23  Michael Albinus  <michael.albinus@gmx.de>
4134
4135         Version 2.1.19 released.
4136
4137 2010-08-17  Michael Albinus  <michael.albinus@gmx.de>
4138
4139         * tramp.el (tramp-handle-make-symbolic-link): Flush file
4140         properties.
4141         (tramp-handle-process-file): Call the program in a subshell, in
4142         order to preserve working directory.
4143         (tramp-action-password): Hide password prompt before next run.
4144         (tramp-process-actions): Widen connection buffer for the trace.
4145
4146 2010-08-10  Michael Albinus  <michael.albinus@gmx.de>
4147
4148         * tramp.el (tramp-vc-registered-read-file-names): Read input as
4149         here-document, otherwise the command could exceed maximum length
4150         of command line.
4151         (tramp-handle-vc-registered): Call script accordingly.  Reported
4152         by Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>.
4153
4154 2010-08-06  Michael Albinus  <michael.albinus@gmx.de>
4155
4156         * tramp.el (tramp-handle-start-file-process ): Set connection
4157         property "vec".
4158         (tramp-process-sentinel): Use it for flushing the cache.  We
4159         cannot do it via the process buffer, the buffer could be deleted
4160         already when running the sentinel.
4161
4162 2010-08-05  Michael Albinus  <michael.albinus@gmx.de>
4163
4164         * tramp.el (tramp-handle-dired-uncache): Flush directory cache,
4165         not only file cache.
4166         (tramp-process-sentinel): New defun.
4167         (tramp-handle-start-file-process): Use it, in order to invalidate
4168         file caches.
4169
4170 2010-07-29  Michael Albinus  <michael.albinus@gmx.de>
4171
4172         * tramp.el (tramp-handle-start-file-process): Check only for
4173         `remote-tty' process property.
4174         (tramp-open-shell): Don't check for tty.
4175         (tramp-open-connection-setup-interactive-shell): Set `remote-tty'
4176         process property.
4177
4178 2010-07-28  Michael Albinus  <michael.albinus@gmx.de>
4179
4180         * tramp.el (tramp-methods): Move hostname to the end in all ssh
4181         `tramp-login-args'.
4182         (tramp-verbose): Describe verbose level 9.
4183         (tramp-open-shell): Check for tty if `tramp-verbose' >= 9.
4184         (tramp-open-connection-setup-interactive-shell): Trace stty
4185         settings if `tramp-verbose' >= 9.
4186         (tramp-handle-start-file-process): Implement tty setting.
4187         (Bug#4604, Bug#6360)
4188
4189         * tramp-cmds.el (tramp-bug): Recommend setting of `tramp-verbose'
4190         to 9.
4191
4192 2010-07-23  Michael Albinus  <michael.albinus@gmx.de>
4193
4194         * tramp.el (tramp-methods): Move hostname to the end in all plink
4195         `tramp-login-args'.
4196         (tramp-file-name-regexp-unified)
4197         (tramp-completion-file-name-regexp-unified): On W32 systems, do
4198         not regard the volume letter as remote filename.  (Bug#5447)
4199         (tramp-open-shell): New defun.
4200         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
4201         Use it.
4202
4203 2010-07-21  Michael Albinus  <michael.albinus@gmx.de>
4204
4205         * tramp.el (tramp-get-ls-command)
4206         (tramp-get-ls-command-with-dired): Run tests on "/dev/null"
4207         instead of "/".
4208
4209 2010-07-20  Michael Albinus  <michael.albinus@gmx.de>
4210
4211         * tramp.el (tramp-file-name-handler): Trace 'quit.
4212         (tramp-open-connection-setup-interactive-shell): Apply
4213         workaround for IRIX64 bug.  Move argument of last
4214         `tramp-send-command' where it belongs to.
4215
4216 2010-07-20  Michael Albinus  <michael.albinus@gmx.de>
4217
4218         * tramp.el (tramp-perl-file-attributes)
4219         (tramp-perl-directory-files-and-attributes): Don't pass "$3".
4220         (tramp-maybe-open-connection): Use `async-args' and `gw-args' in
4221         front of `login-args'.
4222
4223 2010-07-17  Michael Albinus  <michael.albinus@gmx.de>
4224
4225         * tramp.el (tramp-get-ls-command-with-dired): Make test for
4226         "--dired" stronger.
4227
4228 2010-07-16  Michael Albinus  <michael.albinus@gmx.de>
4229
4230         * tramp.el (tramp-handle-shell-command): Don't use hard-wired
4231         "/bin/sh" but `tramp-remote-sh' from `tramp-methods'.
4232         (tramp-find-shell): Simplify setting connection property.
4233         (tramp-get-ls-command): Make test for "--color=never" stronger.
4234
4235 2010-07-11  Magnus Henoch  <magnus.henoch@gmail.com>
4236
4237         * tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass empty
4238         argument to gvfs-copy.
4239
4240 2010-06-12  Michael Albinus  <michael.albinus@gmx.de>
4241
4242         * tramp.el (tramp-remote-process-environment): Protect version
4243         string by apostroph.
4244         (tramp-shell-prompt-pattern): Do not use a shy group in case of
4245         XEmacs.
4246         (tramp-file-name-for-operation): Add `call-process-region'.
4247         (tramp-set-process-query-on-exit-flag): Fix wrong parentheses.
4248
4249         * tramp-compat.el (top): Do not autoload
4250         `tramp-handle-file-remote-p'.  Load tramp-util.el and tramp-vc.el
4251         only when `start-file-process' is not bound.
4252         (tramp-advice-file-expand-wildcards): Do not use
4253         `tramp-handle-file-remote-p'.
4254         (tramp-compat-make-temp-file): Handle the case, that
4255         `make-temp-file' has no third argument EXTENSION.
4256
4257         * tramp-util.el (top): Apply advices only when there are no file
4258         name handlers for `start-file-process' and `process-file'.
4259
4260 2010-06-04  Michael Albinus  <michael.albinus@gmx.de>
4261
4262         * tramp-gvfs.el (tramp-gvfs-handle-expand-file-name): Expand "~/".
4263         (tramp-gvfs-handler-mounted-unmounted)
4264         (tramp-gvfs-connection-mounted-p): Handle default-location.
4265
4266         * tramp-smb.el (tramp-smb-handle-delete-directory): Don't try to
4267         move files to trash.
4268
4269 2010-06-02  Michael Albinus  <michael.albinus@gmx.de>
4270
4271         * tramp-gvfs.el (top): Require url-util.
4272         (tramp-gvfs-mount-point): Removed.
4273         (tramp-gvfs-stringify-dbus-message, tramp-gvfs-send-command): New
4274         defuns.
4275         (with-tramp-dbus-call-method): Format trace message.
4276         (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file):
4277         Implement backup call when operation on local files fails.  Use
4278         progress reporter.  Flush properties of changed files.
4279         (tramp-gvfs-handle-make-directory): Make more traces.
4280         (tramp-gvfs-url-file-name): Hexify file name in url.
4281         (tramp-gvfs-fuse-file-name): Take also prefix (like dav shares)
4282         into account for the resulting file name.
4283         (tramp-gvfs-handler-askquestion): Return dummy mountpoint, when
4284         the answer is "no".  See `tramp-gvfs-maybe-open-connection'.
4285         (tramp-gvfs-handler-mounted-unmounted)
4286         (tramp-gvfs-connection-mounted-p): Test also for new mountspec
4287         attribute "default_location".  Set "prefix" property.
4288         (tramp-gvfs-mount-spec): Return both prefix and mountspec.
4289         (tramp-gvfs-maybe-open-connection): Test, whether mountpoint
4290         exists.  Raise an error, if not (due to a corresponding answer
4291         "no" in interactive questions, for example).
4292
4293 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
4294
4295         * tramp.el (tramp-debug-message): Add `tramp-compat-funcall' to
4296         ignored backtrace functions.
4297         (with-progress-reporter): Expand docstring.
4298         (tramp-handle-delete-file): Implement TRASH argument.
4299         (tramp-get-remote-trash): New defun.
4300
4301 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
4302
4303         * tramp-compat.el (tramp-compat-delete-file): Use `symbol-value'
4304         for backward compatibility.
4305
4306         * tramp.el (tramp-handle-make-symbolic-link, tramp-handle-load)
4307         (tramp-do-copy-or-rename-file-via-buffer)
4308         (tramp-do-copy-or-rename-file-directly)
4309         (tramp-do-copy-or-rename-file-out-of-band)
4310         (tramp-handle-process-file, tramp-handle-call-process-region)
4311         (tramp-handle-shell-command, tramp-handle-file-local-copy)
4312         (tramp-handle-insert-file-contents, tramp-handle-write-region)
4313         (tramp-delete-temp-file-function): Use `delete-file' instead
4314         of `tramp-compat-delete-file'.
4315
4316         * tramp-fish.el (tramp-fish-handle-delete-directory)
4317         (tramp-fish-handle-make-symbolic-link)
4318         (tramp-fish-handle-process-file): Use `delete-file' instead
4319         of `tramp-compat-delete-file'.
4320
4321         * tramp-ftp.el (tramp-ftp-file-name-handler): Use `delete-file'
4322         instead of `tramp-compat-delete-file'.
4323
4324         * tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
4325         (tramp-gvfs-handle-write-region): Use `delete-file' instead of
4326         `tramp-compat-delete-file'.
4327
4328         * tramp-imap.el (tramp-imap-do-copy-or-rename-file): Use
4329         `delete-file' instead of `tramp-compat-delete-file'.
4330
4331         * tramp-smb.el (tramp-smb-handle-copy-file)
4332         (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
4333         (tramp-smb-handle-write-region): Use `delete-file' instead of
4334         `tramp-compat-delete-file'.
4335         (tramp-smb-handle-delete-directory): Use 'trash as arg.
4336
4337         * tramp-vc.el (tramp-vc-user-login-name): Use `delete-file'
4338         instead of `tramp-compat-delete-file'.
4339
4340 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
4341
4342         * tramp-compat.el (tramp-compat-delete-file): Rewrite to handle
4343         new TRASH arg of `delete-file'.
4344
4345         * tramp.el (tramp-handle-delete-file): Change FORCE arg to TRASH.
4346         (tramp-handle-make-symbolic-link, tramp-handle-load)
4347         (tramp-do-copy-or-rename-file-via-buffer)
4348         (tramp-do-copy-or-rename-file-directly)
4349         (tramp-do-copy-or-rename-file-out-of-band)
4350         (tramp-handle-process-file, tramp-handle-call-process-region)
4351         (tramp-handle-shell-command, tramp-handle-file-local-copy)
4352         (tramp-handle-insert-file-contents, tramp-handle-write-region)
4353         (tramp-delete-temp-file-function): Use null TRASH arg in
4354         tramp-compat-delete-file call.
4355
4356         * tramp-fish.el (tramp-fish-handle-delete-directory)
4357         (tramp-fish-handle-delete-file)
4358         (tramp-fish-handle-make-symbolic-link)
4359         (tramp-fish-handle-process-file): Use null TRASH arg in
4360         `tramp-compat-delete-file' call.
4361
4362         * tramp-ftp.el (tramp-ftp-file-name-handler): Use null TRASH arg
4363         in `tramp-compat-delete-file' call.
4364
4365         * tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
4366         (tramp-gvfs-handle-write-region): Use null TRASH arg in
4367         `tramp-compat-delete-file' call.
4368
4369         * tramp-imap.el (tramp-imap-handle-delete-file): Rename arg.
4370         (tramp-imap-do-copy-or-rename-file): Use null TRASH arg in
4371         `tramp-compat-delete-file' call.
4372
4373         * tramp-smb.el (tramp-smb-handle-copy-file)
4374         (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
4375         (tramp-smb-handle-write-region): Use null TRASH arg in
4376         tramp-compat-delete-file call.
4377         (tramp-smb-handle-delete-directory): Use tramp-compat-delete-file.
4378         (tramp-smb-handle-delete-file): Rename arg.
4379
4380 2010-05-25  Christian Lynbech  <christian.lynbech@tieto.com>  (tiny change)
4381
4382         * tramp.el (tramp-handle-insert-directory): Don't use
4383         `forward-word', it's default syntax could be changed.
4384
4385 2010-05-25  Michael Albinus  <michael.albinus@gmx.de>
4386
4387         * tramp.el (tramp-progress-reporter-update): New defun.
4388         (with-progress-reporter): Use it.
4389         (tramp-process-actions):
4390         * tramp-gvfs.el (tramp-gvfs-handler-askquestion): Preserve current
4391         message, in order to let progress reporter continue
4392         afterwards.  (Bug#6257)
4393
4394 2010-05-21  Michael Albinus  <michael.albinus@gmx.de>
4395
4396         * tramp.el (tramp-do-copy-or-rename-file)
4397         (tramp-handle-file-local-copy, tramp-maybe-open-connection): Tune
4398         `with-progress-reporter' messages.
4399         (tramp-handle-vc-registered):
4400         * tramp-fish.el (tramp-fish-handle-file-local-copy)
4401         (tramp-fish-handle-insert-file-contents)
4402         (tramp-fish-maybe-open-connection):
4403         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
4404         * tramp-imap.el (tramp-imap-do-copy-or-rename-file)
4405         (tramp-imap-handle-insert-file-contents)
4406         (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
4407
4408 2010-05-19  Michael Albinus  <michael.albinus@gmx.de>
4409
4410         * tramp.el (tramp-methods): Add `tramp-async-args' attribute where
4411         appropriate.
4412         (tramp-maybe-open-connection): Use it.
4413
4414 2010-05-13  Michael Albinus  <michael.albinus@gmx.de>
4415
4416         * tramp.el (with-progress-reporter): Create reporter object only
4417         when the message would be displayed.  Handle nested calls.
4418         (tramp-handle-load, tramp-handle-file-local-copy)
4419         (tramp-handle-insert-file-contents, tramp-handle-write-region)
4420         (tramp-maybe-send-script, tramp-find-shell): Use
4421         `with-progress-reporter'.
4422         (tramp-handle-dired-compress-file, tramp-maybe-open-connection):
4423         Fix message text.
4424
4425         * tramp-smb.el (tramp-smb-handle-copy-file)
4426         (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
4427         (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
4428         Use `with-progress-reporter'.
4429
4430 2010-05-10  Michael Albinus  <michael.albinus@gmx.de>
4431
4432         * tramp.el (tramp-do-file-attributes-with-stat): Add space in
4433         format string, in order to work around a bug in pdksh.  Reported
4434         by Gilles Pion <gpion@lfdj.com>.
4435         (tramp-handle-verify-visited-file-modtime): Do not send a command
4436         when the connection is not established.
4437         (tramp-handle-set-file-times): Simplify the check for utc.
4438
4439 2010-05-09  Michael Albinus  <michael.albinus@gmx.de>
4440
4441         * tramp-compat.el (byte-compile-not-obsolete-vars): Define if not
4442         bound.
4443         (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
4444         (tramp-compat-funcall): New defmacro.
4445         (tramp-compat-line-beginning-position)
4446         (tramp-compat-line-end-position)
4447         (tramp-compat-temporary-file-directory)
4448         (tramp-compat-make-temp-file, tramp-compat-file-attributes)
4449         (tramp-compat-copy-file, tramp-compat-copy-directory)
4450         (tramp-compat-delete-file, tramp-compat-delete-directory)
4451         (tramp-compat-number-sequence, tramp-compat-process-running-p)
4452         * tramp.el (top, with-progress-reporter)
4453         (tramp-rfn-eshadow-setup-minibuffer)
4454         (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
4455         (tramp-handle-dired-compress-file, tramp-handle-shell-command)
4456         (tramp-completion-mode-p, tramp-check-for-regexp)
4457         (tramp-open-connection-setup-interactive-shell)
4458         (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
4459         (tramp-time-diff, tramp-coding-system-change-eol-conversion)
4460         (tramp-set-process-query-on-exit-flag, tramp-unload-tramp)
4461         * tramp-cmds.el (tramp-cleanup-all-connections)
4462         (tramp-reporter-dump-variable, tramp-load-report-modules)
4463         (tramp-append-tramp-buffers)
4464         * tramp-gvfs.el (tramp-gvfs-handle-file-selinux-context)
4465         * tramp-util.el (tramp-gud-file-name): Use it.
4466
4467         * tramp-imap.el (top): Autoload `epg-make-context'.
4468
4469 2010-05-06  Michael Albinus  <michael.albinus@gmx.de>
4470
4471         * tramp.el (top, with-progress-reporter): Use `symbol-function'
4472         inside `funcall'.
4473
4474         * tramp-compat.el (tramp-compat-file-attributes)
4475         (tramp-compat-delete-file, tramp-compat-delete-directory): Handle
4476         only `wrong-number-of-arguments' error.
4477
4478         * tramp-gvfs.el (tramp-gvfs-handle-copy-file): Fix typo.
4479         (tramp-gvfs-handle-file-selinux-context): Use `symbol-function'
4480         inside `funcall'.
4481
4482 2010-05-05  Michael Albinus  <michael.albinus@gmx.de>
4483
4484         Add FORCE argument to `delete-file'.
4485
4486         * tramp-compat.el (tramp-compat-delete-file): New defun.
4487
4488         * tramp.el (tramp-handle-delete-file): Add FORCE arg.
4489         (tramp-handle-make-symbolic-link, tramp-handle-load)
4490         (tramp-do-copy-or-rename-file-via-buffer)
4491         (tramp-do-copy-or-rename-file-directly)
4492         (tramp-do-copy-or-rename-file-out-of-band)
4493         (tramp-handle-process-file, tramp-handle-call-process-region)
4494         (tramp-handle-shell-command, tramp-handle-file-local-copy)
4495         (tramp-handle-insert-file-contents, tramp-handle-write-region)
4496         (tramp-delete-temp-file-function): Use `tramp-compat-delete-file'.
4497
4498         * tramp-fish.el (tramp-fish-handle-delete-file): Add FORCE arg.
4499         (tramp-fish-handle-make-symbolic-link)
4500         (tramp-fish-handle-process-file): Use `tramp-compat-delete-file'.
4501
4502         * tramp-ftp.el (tramp-ftp-file-name-handler): Use
4503         `tramp-compat-delete-file'.
4504
4505         * tramp-gvfs.el (tramp-gvfs-handle-delete-file): Add FORCE arg.
4506         (tramp-gvfs-handle-write-region): Use `tramp-compat-delete-file'.
4507
4508         * tramp-imap.el (tramp-imap-handle-delete-file): Add FORCE arg.
4509         (tramp-imap-do-copy-or-rename-file): Use `tramp-compat-delete-file'.
4510
4511         * tramp-smb.el (tramp-smb-handle-delete-file): Add FORCE arg.
4512         (tramp-smb-handle-copy-file, tramp-smb-handle-file-local-copy)
4513         (tramp-smb-handle-rename-file, tramp-smb-handle-write-region): Use
4514         `tramp-compat-delete-file'.
4515
4516         * tramp-vc.el (tramp-vc-user-login-name): Use
4517         `tramp-compat-delete-file'.
4518
4519 2010-05-04  Michael Albinus  <michael.albinus@gmx.de>
4520
4521         * tramp.el (tramp-methods): Remove "-q" from `tramp-login-args' in
4522         order to see error messages for failed logins.
4523
4524 2010-05-01  Toru TSUNEYOSHI  <t_tuneyosi@hotmail.com>
4525             Michael Albinus  <michael.albinus@gmx.de>
4526
4527         Implement compression for inline methods.
4528
4529         * tramp.el (tramp-inline-compress-start-size): New defcustom.
4530         (tramp-copy-size-limit): Allow also nil.
4531         (tramp-inline-compress-commands): New defconst.
4532         (tramp-find-inline-compress, tramp-get-inline-compress)
4533         (tramp-get-inline-coding): New defuns.
4534         (tramp-get-remote-coding, tramp-get-local-coding): Removed,
4535         replaced by `tramp-get-inline-coding'.
4536         (tramp-handle-file-local-copy, tramp-handle-write-region)
4537         (tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.
4538
4539 2010-04-28  Michael Albinus  <michael.albinus@gmx.de>
4540
4541         * tramp.el (tramp-remote-selinux-p): New defun.
4542         (tramp-handle-file-selinux-context)
4543         (tramp-handle-set-file-selinux-context): Use it.
4544
4545 2010-04-23  Michael Albinus  <michael.albinus@gmx.de>
4546
4547         Implement SELINUX backends.
4548
4549         * tramp.el (tramp-file-name-handler-alist): Add
4550         `file-selinux-context' and `set-file-selinux-context'.
4551         (tramp-handle-file-selinux-context)
4552         (tramp-handle-set-file-selinux-context): New defuns.
4553         (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
4554         PRESERVE-SELINUX-CONTEXT.
4555
4556         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
4557         `file-selinux-context' and `set-file-selinux-context'.
4558         (tramp-gvfs-handle-file-selinux-context)
4559         (tramp-gvfs-handle-set-file-selinux-context): New defuns.
4560         (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
4561
4562         * tramp-fish.el (tramp-fish-handle-copy-file):
4563         * tramp-imap.el (tramp-imap-handle-copy-file):
4564         * tramp-smb.el (tramp-smb-handle-copy-file): Add
4565         PRESERVE-SELINUX-CONTEXT.
4566
4567 2010-04-22  Noah Lavine  <noah549@gmail.com>  (tiny change)
4568
4569         Detect ssh 'ControlMaster' argument automatically in some cases.
4570
4571         * tramp.el (tramp-detect-ssh-controlmaster): New defun.
4572         (tramp-default-method): Use it.
4573
4574 2010-04-22  Michael Albinus  <michael.albinus@gmx.de>
4575
4576         * tramp.el (tramp-error-with-buffer): Don't show the connection
4577         buffer when we are in completion mode.
4578         (with-connection-property, tramp-completion-mode-p)
4579         (tramp-action-process-alive, tramp-action-out-of-band)
4580         (tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
4581         (tramp-exists-file-name-handler): Fix docstring.
4582         (with-progress-reporter): New defmacro.
4583         (tramp-do-copy-or-rename-file, tramp-handle-dired-compress-file)
4584         (tramp-maybe-open-connection): Use it.
4585         (tramp-handle-copy-file): Add new optional parameter
4586         `preserve-selinux-context'.
4587         (tramp-file-name-for-operation): Add `set-file-selinux-context'.
4588         (tramp-connectable-p): New defun.
4589         (tramp-handle-expand-file-name)
4590         (tramp-completion-handle-file-name-all-completions)
4591         (tramp-completion-handle-file-name-completion): Use it.
4592         (tramp-file-name-handler): Catch the error for some operations
4593         when we are in completion mode.  This gives the user the chance to
4594         correct the file name in the minibuffer.
4595         (tramp-completion-mode-p): Use `non-essential'.
4596
4597 2010-04-21  Karel Klíč  <kklic@redhat.com>
4598
4599         * tramp.el (tramp-file-name-for-operation):
4600         Add file-selinux-context.
4601
4602 2010-04-10  Michael Albinus  <michael.albinus@gmx.de>
4603
4604         * tramp.el (tramp-do-copy-or-rename-file): Add progress reporter.
4605
4606 2010-03-19  Michael Albinus  <michael.albinus@gmx.de>
4607
4608         Discard GNU Emacs 21 compatibility.
4609
4610         * tramp.el (tramp-handle-directory-files-and-attributes)
4611         (tramp-get-remote-path): Use `copy-tree'.
4612         (tramp-set-auto-save-file-modes): Adapt version check.
4613
4614         * tramp-compat.el (tramp-advice-file-expand-wildcards): No need to
4615         protect `featurep' call anymore.
4616         (tramp-compat-make-temp-file): Simplify fallback implementation.
4617         (tramp-compat-copy-tree): Remove function.
4618
4619         * tramp-fish.el (tramp-fish-handle-directory-files-and-attributes):
4620         Use `tramp-compat-file-attributes'.
4621
4622         * tramp-util.el (tramp-advice-dired-insert-directory): Remove advice.
4623
4624 2010-03-18  Michael Albinus  <michael.albinus@gmx.de>
4625
4626         * tramp.el (tramp-do-copy-or-rename-file-out-of-band)
4627         (tramp-compute-multi-hops, tramp-maybe-open-connection): Use
4628         `format-spec-make'.
4629         (tramp-debug-outline-regexp): New defconst.
4630         (tramp-get-debug-buffer): Use it.
4631
4632 2010-03-15  Michael Albinus  <michael.albinus@gmx.de>
4633
4634         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Use
4635         `tramp-compat-delete-directory'.
4636
4637         * tramp-compat.el (tramp-compat-delete-directory): Provide
4638         implementation for older Emacsen.
4639
4640 2010-03-14  Chong Yidong  <cyd@stupidchicken.com>
4641
4642         * tramp.el (tramp): Put in comm group.
4643
4644         * tramp-imap.el (tramp-imap): Put in tramp group.
4645
4646 2010-03-14  Michael Albinus  <michael.albinus@gmx.de>
4647
4648         Version 2.1.18 released.
4649
4650         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Make call
4651         of `delete-directory' backwards compatible.
4652
4653 2010-03-13  Michael Albinus  <michael.albinus@gmx.de>
4654
4655         * tramp.el (tramp-find-executable): Use
4656         `tramp-get-connection-buffer'.  Make the regexp for checking
4657         output of "wc -l" more robust.
4658         (tramp-find-shell): Use another shell but /bin/sh on OpenSolaris.
4659         (tramp-open-connection-setup-interactive-shell): Remove workaround
4660         for OpenSolaris bug, it is not needed anymore.
4661
4662 2010-03-02  Michael Albinus  <michael.albinus@gmx.de>
4663
4664         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Fix an
4665         error when FILENAME and NEWNAME are existing remote directories.
4666
4667         * tramp-compat.el (tramp-compat-make-temp-file): Add optional
4668         parameter DIR-FLAG.
4669
4670 2010-02-28  Michael Albinus  <michael.albinus@gmx.de>
4671
4672         * tramp.el (tramp-handle-write-region): START can be a string.
4673         Take care in the checks.  Reported by Dan Davison
4674         <davison@stats.ox.ac.uk>.
4675
4676 2010-02-22  Michael Albinus  <michael.albinus@gmx.de>
4677
4678         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Protect
4679         setting the modes by `ignore-errors'.  It might fail, for example
4680         if the file is not owned by the user but the group.
4681         (tramp-handle-write-region): Ensure that `tmpfile' is always readable.
4682
4683 2010-02-18  Michael Albinus  <michael.albinus@gmx.de>
4684
4685         * tramp.el (tramp-handle-directory-files): When FULL, do not
4686         expand "." and "..".  Reported by Thierry Volpiatto
4687         <thierry.volpiatto@gmail.com>.
4688
4689 2010-02-17  Michael Albinus  <michael.albinus@gmx.de>
4690
4691         * tramp.el (tramp-handle-insert-file-contents): Set always the
4692         permissions of the temporary file to "0600".  In case the remote
4693         file has no read permissions for the owner, there might be
4694         problems otherwise.  Reported by Ole Laursen <olau@iola.dk>.
4695
4696 2010-02-16  Michael Albinus  <michael.albinus@gmx.de>
4697
4698         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Fix errors
4699         in copying directories.
4700         (tramp-handle-add-name-to-file, tramp-handle-copy-directory)
4701         (tramp-do-copy-or-rename-file, tramp-handle-delete-directory)
4702         (tramp-handle-delete-file)
4703         (tramp-handle-dired-recursive-delete-directory)
4704         (tramp-handle-write-region): Flush also the cache for the upper
4705         directory.
4706
4707 2010-02-15  Michael Albinus  <michael.albinus@gmx.de>
4708
4709         * tramp.el (tramp-process-actions, tramp-read-passwd):
4710         * tramp-gvfs.el (tramp-gvfs-maybe-open-connection): Use VEC
4711         instead of PROC for caching "first-password-request".  Otherwise,
4712         new processes would not profit from passwords already entered.
4713
4714         * tramp-cache.el (tramp-dump-connection-properties): Don't save
4715         "first-password-request" property.
4716
4717 2010-02-05  Michael Albinus  <michael.albinus@gmx.de>
4718
4719         * tramp-imap.el (tramp-imap-handle-insert-directory):
4720         * tramp-smb.el (tramp-smb-handle-insert-directory):
4721         Handle also directories.  (Bug#5478)
4722
4723 2010-02-04  Michael Albinus  <michael.albinus@gmx.de>
4724
4725         * tramp.el (tramp-handle-dired-uncache): When DIR is not a
4726         directory, handle its directory component.
4727         (tramp-handle-file-remote-p): Let-bind `tramp-verbose' to 3; this
4728         function is called permanently and creates noise, otherwise.
4729
4730         * tramp-imap.el (tramp-imap-handle-insert-directory):
4731         * tramp-smb.el (tramp-smb-handle-insert-directory):
4732         Handle the case, FILENAME is not in `default-directory'.  (Bug#5478)
4733
4734 2010-01-29  Michael Albinus  <michael.albinus@gmx.de>
4735
4736         * tramp.el (tramp-handle-insert-directory): Handle also symlinks,
4737         when FILENAME is not in `default-directory'.
4738
4739 2010-01-28  Michael Albinus  <michael.albinus@gmx.de>
4740
4741         * tramp.el (tramp-handle-insert-directory): Handle the case,
4742         FILENAME is not in `default-directory'.  (Bug#5478)
4743         (tramp-register-file-name-handlers): Add safe-magic property.
4744
4745 2010-01-27  Michael Albinus  <michael.albinus@gmx.de>
4746
4747         * tramp.el (tramp-remote-process-environment): Use `format'
4748         instead of `concat'.
4749         (tramp-check-for-regexp): Use (forward-line 1).
4750         (tramp-open-connection-setup-interactive-shell): Handle "=" in
4751         variable values properly.
4752         (tramp-find-inline-encoding): Raise an error when no encoding is
4753         found.
4754         (tramp-wait-for-output): Remove spurious " ^H" sequences, sent by
4755         busybox.
4756         (tramp-get-ls-command): Suppress coloring, if possible.
4757
4758 2010-01-23  Michael Albinus  <michael.albinus@gmx.de>
4759
4760         * tramp.el (tramp-completion-function-alist)
4761         (tramp-file-name-regexp, tramp-chunksize)
4762         (tramp-local-coding-commands, tramp-remote-coding-commands):
4763         Fix docstring.
4764         (tramp-do-copy-or-rename-file-directly): Do not use
4765         `tramp-handle-file-remote-p'.
4766         (tramp-find-foreign-file-name-handler)
4767         (tramp-advice-make-auto-save-file-name)
4768         (tramp-set-auto-save-file-modes): Remove superfluous check for
4769         `stringp'.  This is done inside `tramp-tramp-file-p'.
4770         (tramp-find-foreign-file-name-handler)
4771         (tramp-advice-make-auto-save-file-name)
4772         (tramp-set-auto-save-file-modes): Remove superfluous check for
4773         `stringp'.  This is done inside `tramp-tramp-file-p'.
4774
4775
4776         * tramp-fish.el (tramp-fish-handle-directory-files-and-attributes):
4777         Do not use `tramp-fish-handle-file-attributes.
4778
4779         * tramp-smb.el (tramp-smb-conf): New defcustom.
4780         (tramp-smb-maybe-open-connection): Use it.
4781
4782 2010-01-22  Michael Albinus  <michael.albinus@gmx.de>
4783
4784         * tramp-imap.el (top): Autoload needed packages.  (Bug#5448)
4785
4786 2010-01-19  Michael Albinus  <michael.albinus@gmx.de>
4787
4788         * tramp.el (tramp-wrong-passwd-regexp): Add "Timeout, server not
4789         responding." string.
4790
4791 2010-01-18  Juanma Barranquero  <lekktu@gmail.com>
4792
4793         * tramp.el (tramp-remote-coding-commands): Fix typo in docstring.
4794
4795 2010-01-12  Michael Albinus  <michael.albinus@gmx.de>
4796
4797         * tramp.el (tramp-perl-encode, tramp-perl-decode):
4798         Update copyrights for 2010.
4799         (tramp-handle-insert-directory): Simplify handling of SWITCHES.
4800         (tramp-wait-for-output): Check, whether PROC buffer is available.
4801
4802         * tramp-compat.el (tramp-advice-file-expand-wildcards): Wrap call
4803         of `featurep' for 2nd argument.
4804
4805 2009-12-26  Michael Albinus  <michael.albinus@gmx.de>
4806
4807         * tramp.el (tramp-handle-insert-directory): Quote "'" in the
4808         switches.
4809         (tramp-open-connection-setup-interactive-shell): Dump stty
4810         settings.  Enable "neveropen" arg for all `tramp-send-command' calls.
4811
4812 2009-12-23  Michael Albinus  <michael.albinus@gmx.de>
4813
4814         * tramp.el (tramp-handle-file-name-all-completions): Backward/
4815         XEmacs compatibility: Use `completion-ignore-case' if
4816         `read-file-name-completion-ignore-case' does not exist.
4817         (tramp-handle-dired-uncache): Add optional parameter DIR-P for
4818         XEmacs compatibility.  Reported by Pete Forman
4819         <petef4+usenet@gmail.com>.
4820         (tramp-handle-insert-directory): Check also for //SUBDIRED// line.
4821
4822 2009-12-17  Michael Albinus  <michael.albinus@gmx.de>
4823
4824         * tramp.el (tramp-handle-file-remote-p): Expand file name only if
4825         there is already an established connection.
4826         (tramp-advice-file-expand-wildcards): Remove it.
4827
4828         * tramp-compat.el (top): Autoload `tramp-handle-file-remote-p'.
4829         (tramp-advice-file-expand-wildcards): Moved from tramp.el.
4830         Activate advice for older GNU Emacs versions.  (Bug#5237)
4831
4832 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
4833
4834         * tramp.el (tramp-echo-mark-marker-length): New defconst.
4835         (tramp-echo-mark, tramp-echoed-echo-mark-regexp): Use it.
4836         (tramp-check-for-regexp): Check also when an echoing shell stops
4837         to echo sent commands.
4838
4839 2009-12-09  Michael Albinus  <michael.albinus@gmx.de>
4840
4841         * tramp.el (tramp-handle-insert-directory): Suppress error messages.
4842
4843 2009-12-07  Michael Albinus  <michael.albinus@gmx.de>
4844
4845         Handle prompt rules of ksh in OpenBSD 4.5.  Reported by Raphaël
4846         Berbain <raphael.berbain@gmail.com>.
4847
4848         * tramp.el (tramp-end-of-output): Move up.  Use `#' and `$'
4849         characters.
4850         (tramp-initial-end-of-output): New defconst.
4851         (tramp-methods, tramp-find-shell)
4852         (tramp-open-connection-setup-interactive-shell)
4853         (tramp-maybe-open-connection): Use it.
4854         (tramp-shell-prompt-pattern, tramp-wait-for-output): Handle
4855         existence of `#' and `$'.
4856
4857         * tramp-fish.el (tramp-fish-maybe-open-connection): Use
4858         `tramp-initial-end-of-output'.
4859
4860 2009-12-03  Michael Albinus  <michael.albinus@gmx.de>
4861
4862         * tramp.el (tramp-handle-file-remote-p): Expand FILENAME for the
4863         benefit of returning an expanded localname.
4864         (tramp-tramp-file-p): Handle the case NAME is not a string.
4865
4866 2009-11-29  Michael Albinus  <michael.albinus@gmx.de>
4867
4868         * tramp.el (tramp-maybe-open-connection): Open the remote shell
4869         with "exec" when possible.  This prevents trailing prompts in
4870         `start-file-process'.
4871
4872 2009-11-24  Michael Albinus  <michael.albinus@gmx.de>
4873
4874         * tramp.el (tramp-eshell-directory-change): New defun.  Add it to
4875         `eshell-directory-change-hook'.
4876
4877 2009-11-23  Michael Albinus  <michael.albinus@gmx.de>
4878
4879         * tramp.el (tramp-shell-prompt-pattern): Use \r for carriage
4880         return.
4881         (tramp-handle-make-symbolic-link)
4882         (tramp-handle-dired-compress-file, tramp-handle-expand-file-name):
4883         Quote file names.
4884         (tramp-send-command-and-check): New argument DONT-SUPPRESS-ERR.
4885         (tramp-handle-process-file): Use it.
4886
4887 2009-11-19  Michael Albinus  <michael.albinus@gmx.de>
4888
4889         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Set
4890         variables for computing the prompt for reading password.
4891
4892 2009-11-17  Michael Albinus  <michael.albinus@gmx.de>
4893
4894         * tramp.el (tramp-advice-file-expand-wildcards): Simplify.  Don't
4895         set `ad-return-value' if `ad-do-it' doesn't.
4896
4897         * tramp-gvfs.el (tramp-gvfs-handle-write-region): Set file
4898         modification time.
4899
4900 2009-11-16  Michael Albinus  <michael.albinus@gmx.de>
4901
4902         * tramp-gvfs.el (tramp-gvfs-dbus-event-error): Raise only an error
4903         when `tramp-gvfs-dbus-event-vector' is set.
4904         (tramp-gvfs-maybe-open-connection): Loop over `read-event'.
4905
4906 2009-11-11  Michael Albinus  <michael.albinus@gmx.de>
4907
4908         * tramp.el (tramp-advice-minibuffer-electric-separator)
4909         (tramp-advice-minibuffer-electric-tilde): Unload advices via
4910         `tramp-unload'.
4911         (tramp-advice-make-auto-save-file-name)
4912         (tramp-advice-file-expand-wildcards): Apply also `ad-activate'
4913         after removing the advice.
4914
4915 2009-11-08  Michael Albinus  <michael.albinus@gmx.de>
4916
4917         * tramp.el (tramp-advice-make-auto-save-file-name)
4918         (tramp-advice-file-expand-wildcards): Unload via
4919         `ad-remove-advice'.
4920
4921 2009-11-08  Kevin Ryde <user42@zip.com.au>
4922
4923         * tramp.el (tramp-advice-file-expand-wildcards): Don't rely on
4924         `ad-do-it'.
4925
4926 2009-11-08  Andr <m00naticus@gmail.com>  (tiny change)
4927
4928         * tramp.el (tramp-handle-write-region): Copy but rename temp file,
4929         in order to keep context in SELinux.
4930
4931 2009-11-07  Michael Albinus  <michael.albinus@gmx.de>
4932
4933         Version 2.1.17 released.
4934
4935         * tramp.el (tramp-handle-copy-directory): Don't use
4936         `file-remote-p' (due to compatibility).
4937
4938         * tramp-compat.el (tramp-compat-copy-directory)
4939         (tramp-compat-delete-directory): New defuns.
4940
4941         * tramp-fish.el (tramp-fish-handle-delete-directory):
4942         * tramp-gvfs.el (tramp-gvfs-handle-delete-directory): Use
4943         `tramp-compat-delete-directory'.
4944
4945         * tramp-smb.el (tramp-smb-handle-copy-directory)
4946         (tramp-smb-handle-delete-directory ): Use
4947         `tramp-compat-copy-directory' and `tramp-compat-delete-directory'.
4948
4949 2009-10-27  Michael Albinus  <michael.albinus@gmx.de>
4950
4951         * tramp-imap.el (top): Add `X-Size' to `imap-hash-headers'.
4952         (tramp-imap-do-copy-or-rename-file): Don't use the inode, when
4953         calling `tramp-imap-put-file'.  Add file size to the call.
4954         (tramp-imap-get-file-entries): Compute also user name, file size,
4955         and date.
4956         (tramp-imap-handle-insert-directory): Insert uid and gid.
4957         (tramp-imap-handle-file-attributes): Transform uid and gid
4958         according to `id-format'.
4959         (tramp-imap-put-file): New optional parameter SIZE.  Encode file
4960         size in header X-Size.
4961
4962 2009-10-26  Michael Albinus  <michael.albinus@gmx.de>
4963
4964         * tramp.el (tramp-handle-write-region): In case of APPEND, reuse
4965         the tmpfile name.
4966
4967         * tramp-imap.el (tramp-imap-file-name-handler-alist): Ignore
4968         `dired-call-process'.
4969         (tramp-imap-make-iht): Use `user' and `ssl' with `imap-hash-make'.
4970
4971 2009-10-23  Michael Albinus  <michael.albinus@gmx.de>
4972
4973         * tramp.el (top): Remove `tramp-rfn-eshadow-update-overlay' from
4974         `rfn-eshadow-update-overlay-hook' when unloading.
4975         (tramp-methods): Add `tramp-copy-keep-tmpfile' for "rsync" and
4976         "rsyncc".  Adjust doc string.
4977         (tramp-temp-buffer-file-name) New buffer-local defvar.
4978         (tramp-handle-insert-file-contents, tramp-handle-write-region):
4979         Keep temporary file when indicated by method ("rsync" and
4980         "rsyncc").
4981         (tramp-handle-write-region): Handle APPEND.
4982         (tramp-delete-temp-file-function): New defun.  Added to
4983         `kill-buffer-hook'.
4984
4985 2009-10-21  Michael Albinus  <michael.albinus@gmx.de>
4986
4987         * tramp-smb.el (tramp-smb-get-stat-capability): New defun.
4988         (tramp-smb-handle-file-attributes): Use it.
4989         (tramp-smb-do-file-attributes-with-stat): Don't raise an error.
4990         (tramp-smb-handle-insert-directory): Use `mapc' rather than
4991         `mapcar'.  Use `tramp-smb-get-stat-capability'.  Add
4992         `dired-filename' text properties.
4993         (tramp-smb-get-cifs-capabilities): Apply `save-match-data'.
4994         (tramp-smb-maybe-open-connection): Simplify check for smbclient
4995         version.
4996
4997 2009-10-16  Michael Albinus  <michael.albinus@gmx.de>
4998
4999         * tramp-smb.el (tramp-smb-version): New defvar.
5000         (tramp-smb-maybe-open-connection): Use it, in order to avoid
5001         repeated checks.
5002
5003 2009-10-15  Michael Albinus  <michael.albinus@gmx.de>
5004
5005         * tramp.el (tramp-replace-environment-variables): Do not fail if
5006         the environment variable does not exist.
5007
5008         * tramp-smb.el (tramp-smb-errors): Add error messages.
5009         (tramp-smb-get-share, tramp-smb-get-localname): Use only VEC as
5010         parameter.
5011         (tramp-smb-handle-add-name-to-file)
5012         (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
5013         (tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
5014         (tramp-smb-handle-file-attributes)
5015         (tramp-smb-do-file-attributes-with-stat)
5016         (tramp-smb-handle-file-local-copy)
5017         (tramp-smb-handle-insert-directory)
5018         (tramp-smb-handle-make-directory)
5019         (tramp-smb-handle-make-directory-internal)
5020         (tramp-smb-handle-make-symbolic-link)
5021         (tramp-smb-handle-rename-file, tramp-smb-handle-set-file-modes)
5022         (tramp-smb-handle-write-region, tramp-smb-get-file-entries)
5023         (tramp-smb-maybe-open-connection): Apply the changed parameters.
5024         (tramp-smb-read-file-entry): Read Disk names in compressed format.
5025         Handle long file names.
5026         (tramp-smb-get-cifs-capabilities): Check, whether the connection
5027         process is running.
5028         (tramp-smb-maybe-open-connection): Trace "smbclient -V" command.
5029         Read share names with "-g" option.
5030
5031 2009-10-12  Glenn Morris  <rgm@gnu.org>
5032
5033         * tramp-smb.el (tramp-smb-do-file-attributes-with-stat): Let-bind
5034         `size'.
5035
5036 2009-10-11  Michael Albinus  <michael.albinus@gmx.de>
5037
5038         * tramp.el (tramp-local-host-p): Function shall return nil for
5039         connection methods like smb.
5040
5041         * tramp-cache.el (tramp-flush-connection-property): The hash can
5042         be empty.
5043
5044         * tramp-smb.el (tramp-smb-errors): Add error messages.
5045         (tramp-smb-file-name-handler-alist): Add handlers for
5046         `add-name-to-file', `make-symbolic-link'.
5047         (tramp-smb-handle-add-name-to-file)
5048         (tramp-smb-do-file-attributes-with-stat)
5049         (tramp-smb-handle-make-symbolic-link)
5050         (tramp-smb-get-cifs-capabilities): New defuns.
5051         (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
5052         (tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
5053         (tramp-smb-handle-file-local-copy)
5054         (tramp-smb-handle-make-directory-internal)
5055         (tramp-smb-handle-rename-file, tramp-smb-handle-write-region): The
5056         file name syntax depends on cifs capabilities.
5057         (tramp-smb-handle-file-attributes); Call
5058         `tramp-smb-do-file-attributes-with-stat' if possible.
5059         (tramp-smb-handle-insert-directory): Use posix attributes if
5060         possible.
5061         (tramp-smb-handle-set-file-modes): It is applicable for posix
5062         only.
5063
5064 2009-10-08  Michael Albinus  <michael.albinus@gmx.de>
5065
5066         * tramp.el (tramp-file-name-real-user, tramp-file-name-domain)
5067         (tramp-file-name-real-host, tramp-file-name-port): Apply
5068         `save-match-data'.
5069
5070         * tramp-smb.el (tramp-smb-handle-copy-directory): Handle the case
5071         both directories are remote.
5072         (tramp-smb-handle-expand-file-name): Implement "~" expansion.
5073         (tramp-smb-maybe-open-connection): Flush the cache only if
5074         necessary.
5075
5076 2009-10-07  Michael Albinus  <michael.albinus@gmx.de>
5077
5078         * tramp-cache.el (tramp-flush-connection-property): Add trace
5079         message.
5080
5081         * tramp-smb.el (tramp-smb-errors): Add error messages.
5082         (tramp-smb-file-name-handler-alist): Add handler for
5083         `copy-directory', `expand-file-name', `set-file-modes'.
5084         (tramp-smb-handle-copy-directory)
5085         (tramp-smb-handle-expand-file-name)
5086         (tramp-smb-handle-set-file-modes): New defuns.
5087         (tramp-smb-handle-copy-file): Handle KEEP-DATE.
5088         (tramp-smb-handle-file-attributes): Simplify check for retrieving
5089         entry.
5090         (tramp-smb-handle-insert-directory): Don't flush the cache.
5091         (tramp-smb-maybe-open-connection): Check for samba client and
5092         server versions.
5093
5094 2009-10-06  Sam Steingold  <sds@gnu.org>
5095
5096         * tramp-compat.el (tramp-compat-process-running-p): Check that the
5097         comm attribute is present before calling regexp-quote.
5098
5099 2009-10-06  Glenn Morris  <rgm@gnu.org>
5100
5101         * tramp.el (tramp-handle-start-file-process): Move tramp-error
5102         call inside with-parsed...  macro so that `v' is defined.
5103
5104 2009-10-05  Michael Albinus  <michael.albinus@gmx.de>
5105
5106         * tramp.el (tramp-verbose): Fix docstring.
5107         (tramp-default-method): Check also for
5108         `auth-source-user-or-password'.
5109         (tramp-file-name-handler-alist, tramp-file-name-for-operation):
5110         Add handler for `copy-directory'.  Remove handler for
5111         `dired-copy-file-recursive'.
5112         (tramp-handle-copy-directory): New defun.
5113         (tramp-do-copy-or-rename-file-out-of-band): Handle directory case.
5114         (tramp-handle-dired-copy-file-recursive): Remove function.
5115         (tramp-handle-start-file-process): Raise an error when PROGRAM is
5116         nil.  Optimize sent command.
5117
5118 2009-10-03  Michael Albinus  <michael.albinus@gmx.de>
5119
5120         * tramp-ftp.el (tramp-ftp-file-name-handler): Disable
5121         `file-name-handler-alist' when loading 'ange-ftp.  Otherwise,
5122         there could be recursive loading when `default-directory' is a
5123         remote file name.  (Bug#4614)
5124
5125 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
5126
5127         * tramp-smb.el (tramp-smb-handle-make-directory-internal): Flush
5128         file properties of created directory.
5129
5130 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
5131
5132         * tramp.el (tramp-file-name-handler-alist)
5133         (tramp-file-name-for-operation): Remove
5134         `dired-delete-file-recursive'.
5135         (tramp-handle-make-directory): Flush upper directory's file
5136         properties.
5137         (tramp-handle-delete-directory): Handle optional parameter
5138         RECURSIVE.
5139         (tramp-handle-dired-delete-file-recursive): Delete.
5140
5141         * tramp-fish.el (tramp-fish-handle-delete-directory): Handle
5142         optional parameter RECURSIVE.
5143
5144         * tramp-gvfs.el (tramp-gvfs-handle-delete-directory): Handle
5145         optional parameter RECURSIVE.
5146
5147         * tramp-smb.el (tramp-smb-errors): Add error message for
5148         connection timeout.
5149         (tramp-smb-handle-delete-directory): Handle optional parameter
5150         RECURSIVE.
5151
5152 2009-09-29  Michael Albinus  <michael.albinus@gmx.de>
5153
5154         * tramp.el (tramp-file-name-handler-alist)
5155         (tramp-file-name-for-operation): Add entry for
5156         `dired-delete-file-recursive'.
5157         (tramp-handle-dired-delete-file-recursive): New defalias.
5158         (tramp-handle-dired-recursive-delete-directory): Flush directory
5159         properties after the remove command only.
5160
5161 2009-09-29  Glenn Morris  <rgm@gnu.org>
5162
5163         * tramp-smb.el (tramp-smb-handle-directory-files-and-attributes):
5164         Use tramp-compat-file-attributes rather than nonexistent
5165         tramp-compat-handle-file-attributes.
5166
5167 2009-09-28  Michael Albinus  <michael.albinus@gmx.de>
5168
5169         * tramp-imap.el (tramp-imap-file-name-handler-alist): Add handlers
5170         for `directory-files-and-attributes' and `file-local-copy'.
5171         (tramp-imap-handle-directory-files-and-attributes)
5172         (tramp-imap-handle-file-local-copy): New defuns.
5173
5174         * tramp-smb.el (tramp-smb-handle-directory-files-and-attributes):
5175         Use `tramp-compat-handle-file-attributes'.
5176
5177 2009-09-27  Michael Albinus  <michael.albinus@gmx.de>
5178
5179         * tramp-imap.el (top): Require 'assoc.
5180         (tramp-imap-file-name-handler-alist): Add handlers for
5181         `copy-file', `insert-directory' and `rename-file'.  Fix change for
5182         `file-local-copy'.
5183         (tramp-imap-handle-copy-file, tramp-imap-handle-rename-file)
5184         (tramp-imap-do-copy-or-rename-file)
5185         (tramp-imap-handle-insert-directory): New defuns.
5186         (tramp-imap-get-file-entries): Compute device info with
5187         `tramp-get-device'.
5188         (tramp-imap-handle-file-directory-p)
5189         (tramp-imap-handle-file-writable-p): Improve implementation.
5190         (tramp-imap-put-file, tramp-imap-get-file): New optional parameter
5191         ENCODE or DECODE, respectively.  Adapt calls accordingly.
5192
5193 2009-09-27  Teodor Zlatanov  <tzz@lifelogs.com>
5194
5195         * tramp-imap.el (tramp-imap-file-name-handler-alist): Remove
5196         file-local-copy handler.
5197
5198 2009-09-24  Michael Albinus  <michael.albinus@gmx.de>
5199
5200         * Makefile.in: Add tramp-imap.el.
5201
5202         * tramp.el (top): Require tramp-imap.
5203         (tramp-methods): Add recursive option to `tramp-copy-args'.  Add
5204         `tramp-copy-recursive'.  Valid for "rcp", "scp", "scp1", "scp2",
5205         "scp1_old", "scp2_old", "rsync", "rsyncc".
5206         (tramp-file-name-handler-alist, tramp-file-name-for-operation):
5207         Add entry for `dired-copy-file-recursive'.
5208         (tramp-handle-dired-copy-file-recursive): New defun.
5209
5210 2009-09-24  Teodor Zlatanov  <tzz@lifelogs.com>
5211
5212         * tramp-imap.el: New package.
5213
5214 2009-09-16  Glenn Morris  <rgm@gnu.org>
5215
5216         * tramp-compat.el (byte-compile-not-obsolete-vars): Set if bound.
5217
5218 2009-09-08  Michael Albinus  <michael.albinus@gmx.de>
5219
5220         * tramp.el (tramp-handle-file-truename, tramp-get-remote-perl):
5221         Check also for "perl-file-spec" and "perl-cwd-realpath"
5222         properties.
5223
5224 2009-09-04  Michael Albinus  <michael.albinus@gmx.de>
5225
5226         * tramp.el (tramp-handle-insert-directory): Handle "--dired" also
5227         when adding a new directory.
5228
5229         * tramp-compat.el (tramp-compat-line-beginning-position): New defun.
5230
5231 2009-09-02  Michael Albinus  <michael.albinus@gmx.de>
5232
5233         * tramp.el (tramp-handle-file-name-all-completions): Use
5234         `tramp-compat-number-sequence' instead of `number-sequence' and
5235         symbol value of `read-file-name-completion-ignore-case'.  Both
5236         symbols do not exist in Emacs 21.
5237         (tramp-handle-insert-directory): Use "?\ " for compatibility
5238         reasons.
5239         (tramp-handle-vc-registered): Check, whether the first run did
5240         return files to be tested.
5241
5242         * tramp-compat.el (tramp-compat-number-sequence): New defun.
5243
5244 2009-09-01  Michael Albinus  <michael.albinus@gmx.de>
5245
5246         * tramp.el (tramp-handle-file-attributes-with-ls)
5247         (tramp-do-file-attributes-with-perl)
5248         (tramp-do-file-attributes-with-stat): Rename from
5249         `tramp-handle-file-attributes-with-*'.
5250         (tramp-handle-file-attributes): Use them.
5251         (tramp-do-directory-files-and-attributes-with-perl)
5252         (tramp-do-directory-files-and-attributes-with-stat): Rename from
5253         `tramp-handle-directory-files-and-attributes-with-*'.
5254         (tramp-handle-directory-files-and-attributes): Use them.
5255         (tramp-method-out-of-band-p): Additional parameter SIZE.
5256         (tramp-do-copy-or-rename-file, tramp-handle-file-local-copy)
5257         (tramp-handle-write-region): Use it.
5258         (tramp-advice-make-auto-save-file-name): Do not call directly
5259         `tramp-handle-make-auto-save-file-name', because this would bypass
5260         the locking mechanism.
5261
5262         * tramp-compat.el (top): Autoload used functions from tramp.el.
5263         (file-remote-p, process-file, start-file-process, set-file-times)
5264         (tramp-compat-file-attributes): Compatibility functions shall not
5265         call directly `tramp-handle-*', because this would bypass the
5266         locking mechanism.
5267
5268 2009-08-28  Michael Albinus  <michael.albinus@gmx.de>
5269
5270         * tramp.el (all): Replace "'(lambda" by "(lambda".
5271         (tramp-handle-file-local-copy): Unset `file-name-handler-alist'
5272         when writing the temp file.  Otherwise, epa-file gets confused.
5273         (tramp-register-file-name-handlers): Make it a defun.  Move also
5274         `epa-file-handler' to the front of `file-name-handler-alist'.
5275
5276 2009-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
5277
5278         * tramp.el (tramp-shell-prompt-pattern): Allow a prompt to start
5279         right after a ^M.
5280         (tramp-root-regexp, tramp-completion-file-name-regexp-unified)
5281         (tramp-completion-file-name-regexp-separate)
5282         (tramp-completion-file-name-regexp-url): Use \\` and \\'.
5283         (tramp-handle-file-attributes, tramp-set-file-uid-gid): Don't
5284         modify last-coding-system-used by accident.
5285         (tramp-completion-file-name-handler): Apply the checks here,
5286         instead during registration.
5287         (tramp-register-file-name-handlers) Renamed from
5288         `tramp-register-file-name-handler'.  Register both
5289         `tramp-file-name-handler' and `tramp-completion-file-name-handler'.
5290         (tramp-register-completion-file-name-handler): Removed.  (Bug#4260)
5291
5292 2009-08-27  Michael Albinus  <michael.albinus@gmx.de>
5293
5294         * tramp.el (tramp-do-copy-or-rename-file-directly): Extend check
5295         for direct remote copying.
5296
5297         * tramp-gvfs.el (top): Replace ping by checking for running
5298         service for bluez and zeroconf.  (Bug#4239)
5299
5300 2009-08-19  Julian Scheid  <julians37@gmail.com>
5301
5302         * tramp.el (tramp-handle-process-file): Merge three remote ops
5303         into one.  Do not flush all caches when
5304         `process-file-side-effects' is set.
5305         (tramp-vc-registered): Unset `process-file-side-effects'.
5306
5307 2009-08-18  Julian Scheid  <julians37@gmail.com>
5308
5309         * tramp.el (tramp-check-cached-permissions) New defun.
5310         (tramp-handle-file-readable-p): Use it.
5311         (tramp-handle-file-writable-p): Likewise.
5312         (tramp-handle-file-executable-p): Likewise.
5313
5314 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
5315
5316         * tramp.el (tramp-handle-file-name-all-completions): Use `mapc'
5317         instead of `mapcar'.
5318         (tramp-do-copy-or-rename-file-out-of-band): Declare `copy-env'.
5319
5320 2009-08-18  Julian Scheid  <julians37@gmail.com>
5321
5322         * tramp.el (tramp-perl-file-name-all-completions): New defconst.
5323         (tramp-handle-file-name-all-completions): Try using Perl to get
5324         partial completions.  When perl not available, combine `cd' and
5325         `ls' into single remote operation and use shell expansion to get
5326         partial remote directory contents.  Set `file-exists-p' cache for
5327         directory and any files returned by ls.  Change cache handling to
5328         support partial directory contents.  Use error message emitted by
5329         remote `cd' or Perl code for local tramp-error.
5330
5331 2009-08-17  Michael Albinus  <michael.albinus@gmx.de>
5332
5333         * tramp.el (tramp-methods): New method "rsyncc".
5334         (top): Add completion function for "rsyncc".
5335         (tramp-do-copy-or-rename-file-out-of-band): Handle new
5336         `tramp-methods' entry `copy-env' of "rsyncc".
5337         (tramp-register-completion-file-name-handler): Check also
5338         for (member 'partial-completion completion-styles).
5339
5340 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
5341
5342         * tramp-cache.el (top): Autoload `tramp-time-less-p'.
5343
5344 2009-08-16  Julian Scheid  <julians37@gmail.com>
5345
5346         * tramp.el (tramp-perl-file-attributes): Print "nil" when lstat
5347         fails.
5348         (tramp-handle-file-attributes): Removed `file-exists-p' call.
5349         (tramp-handle-file-attributes-with-ls): Check for file existence
5350         at remote end.
5351         (tramp-handle-file-attributes-with-stat): Likewise.
5352         (tramp-handle-file-readable-p): Don't use file attribute cache
5353         when file is a symlink.
5354         (tramp-handle-file-writable-p): Likewise.
5355         (tramp-handle-vc-registered): Use `tramp-get-file-exists-command'
5356         instead of `tramp-find-file-exists-command'.
5357         (tramp-convert-file-attributes): Return nil when attr is nil.
5358
5359 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
5360
5361         * tramp.el (tramp-handle-vc-registered): Embed the code in
5362         `with-parsed-tramp-file-name'.  Don't use `caddr', we havent't
5363         required 'cl.
5364
5365 2009-08-15  Julian Scheid  <julians37@gmail.com>
5366
5367         * tramp.el (tramp-handle-file-exists-p): Check file-attributes
5368         cache, assume file exists if cache value present.
5369         (tramp-handle-file-readable-p): Examine file-attributes cache to
5370         see if request can be satisfied without remote operation.
5371         (tramp-handle-file-writable-p): Likewise.
5372         (tramp-do-copy-or-rename-file-directly): Avoid separate
5373         tramp-send-command-and-check call.
5374         (tramp-handle-write-region): Avoid tramp-set-file-uid-gid if
5375         file-attributes shows uid/gid to be set already.
5376
5377 2009-08-14  Michael Albinus  <michael.albinus@gmx.de>
5378
5379         * tramp.el (tramp-message-show-message): New defvar.
5380         (tramp-message, tramp-error): Use it.
5381
5382 2009-08-14  Julian Scheid  <julians37@gmail.com>
5383
5384         * tramp.el (tramp-handle-file-truename): Use readlink
5385         --canonicalize-missing instead of --canonicalize.
5386         (tramp-get-remote-readlink) Check for --canonicalize-missing
5387         instead of --canonicalize.
5388         (tramp-perl-file-truename) Updated to support non-existing paths.
5389
5390 2009-08-09  Michael Albinus  <michael.albinus@gmx.de>
5391
5392         * tramp.el (tramp-get-ls-command-with-dired): New defun.
5393         (tramp-handle-insert-directory): Handle "--dired".  (Bug#4075)
5394         (tramp-get-ls-command, tramp-get-test-command)
5395         (tramp-get-file-exists-command, tramp-get-remote-ln)
5396         (tramp-get-remote-perl, tramp-get-remote-stat)
5397         (tramp-get-remote-readlink, tramp-get-remote-id): Remove
5398         superfluous `with-current-buffer'.
5399
5400 2009-08-07  Michael Albinus  <michael.albinus@gmx.de>
5401
5402         * tramp.el (tramp-perl-file-truename): New defconst.  Perl code
5403         contributed by yary <not.com@gmail.com> (tiny change).
5404         (tramp-handle-file-truename): Use it.
5405
5406 2009-08-06  Julian Scheid <julians37@googlemail.com>
5407
5408         * tramp.el (tramp-get-remote-readlink): New defun.
5409         (tramp-handle-file-truename): Use it.
5410
5411 2009-08-06  Michael Albinus  <michael.albinus@gmx.de>
5412
5413         * tramp.el (tramp-vc-registered-read-file-names): New defconst.
5414         (tramp-handle-vc-registered): Use it.
5415         (tramp-vc-file-name-handler): Remember `localname' but `filename'.
5416
5417 2009-08-05  Michael Albinus  <michael.albinus@gmx.de>
5418
5419         * tramp.el (tramp-vc-registered-file-names): New defvar.
5420         (tramp-vc-file-name-handler): New defun.
5421         (tramp-run-real-handler): Add `tramp-vc-file-name-handler'.
5422         (tramp-handle-vc-registered): Implement optimization strategy.
5423         Suggested by Julian Scheid <julians37@googlemail.com>.
5424
5425         * tramp-cache.el (tramp-cache-inhibit-cache): Extend doc string.
5426         It allows also timestamps.
5427         (tramp-get-file-property): Check for timestamps in
5428         `tramp-cache-inhibit-cache'.
5429         (tramp-set-file-property): Write timestamp.
5430
5431 2009-08-04  Michael Albinus  <michael.albinus@gmx.de>
5432
5433         * tramp.el (top): Make check for tramp-gvfs loading more
5434         robust.  (Bug#3977)
5435
5436         * tramp-gvfs.el (top): Remove superfluous message when loading
5437         fails.
5438
5439 2009-08-03  Michael Albinus  <michael.albinus@gmx.de>
5440
5441         * tramp.el (tramp-rfn-eshadow-update-overlay-regexp) New defconst.
5442         (tramp-rfn-eshadow-update-overlay): Use it.  (Bug#4004)
5443         (tramp-handle-insert-file-contents): `unwind-protect' must be
5444         inside `with-parsed-tramp-file-name'.
5445
5446 2009-08-02  Julian Scheid <julians37@googlemail.com>  (tiny change)
5447
5448         * tramp.el (tramp-debug-message): Print also microseconds.
5449
5450 2009-08-02  Michael Albinus  <michael.albinus@gmx.de>
5451
5452         * tramp.el (tramp-handle-insert-file-contents): Optimize when BEG
5453         or END is non-nil.
5454         (tramp-handle-vc-registered): Use `tramp-cache-inhibit-cache'.
5455         (tramp-get-debug-buffer): Change `outline-regexp' according to new
5456         format.
5457
5458         * tramp-cache.el (tramp-cache-inhibit-cache ): New defvar.
5459         (tramp-get-file-property): Use it.
5460
5461 2009-07-28  Michael Albinus  <michael.albinus@gmx.de>
5462
5463         * tramp.el (tramp-do-copy-or-rename-file): Add messages.  Simplify
5464         check for out-of-band methods.
5465         (tramp-do-copy-or-rename-file-out-of-band): Allow both files to be
5466         remote.  Remove messages which are in `tramp-do-copy-or-rename-file'.
5467
5468 2009-07-16  Michael Albinus  <michael.albinus@gmx.de>
5469
5470         * tramp.el (tramp-wait-for-output): Handle the case when commands
5471         do not return a newline but a null byte before the shell
5472         prompt.  (Bug#3858)
5473
5474 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
5475
5476         * tramp.el (tramp-set-file-uid-gid): Handle the case the remote
5477         user is root, on the local host.
5478         (tramp-local-host-p): Either the local user or the remote user
5479         must be root.  (Bug#3771)
5480
5481 2009-07-06  Michael Albinus  <michael.albinus@gmx.de>
5482
5483         * tramp.el (tramp-handle-write-region): Flush file properties in
5484         case of short track.
5485
5486 2009-07-03  Michael Albinus  <michael.albinus@gmx.de>
5487
5488         * tramp-gvfs.el (tramp-gvfs-methods, tramp-gvfs-zeroconf-domain)
5489         (tramp-bluez-discover-devices-timeout): Add version flag.
5490         (tramp-gvfs-handler-mounted-unmounted)
5491         (tramp-gvfs-connection-mounted-p): Polish handling of
5492         incompatibilities between GVFS 0.2 and 1.0.
5493
5494 2009-07-02  Juri Linkov  <juri@jurta.org>
5495
5496         * tramp-gvfs.el (tramp-gvfs-connection-mounted-p): Use `elt'
5497         instead of `mount-info'.
5498
5499 2009-07-02  Michael Albinus  <michael.albinus@gmx.de>
5500
5501         * tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted)
5502         (tramp-gvfs-connection-mounted-p): Handle changed mount-info
5503         interface.
5504
5505 2009-07-01  Michael Albinus  <michael.albinus@gmx.de>
5506
5507         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
5508         for `process-file', `shell-command' and `start-file-process'.
5509         (tramp-gvfs-handle-shell-command)
5510         (tramp-gvfs-handle-start-file-process)
5511         (tramp-gvfs-handle-process-file): New defuns.
5512         (tramp-synce-list-devices): Simplify check for existence of
5513         property.
5514
5515 2009-06-30  Michael Albinus  <michael.albinus@gmx.de>
5516
5517         * tramp.el (tramp-do-copy-or-rename-file-directly): Handle also
5518         the 'rename case when setting file modes.  (Bug#3712)
5519         (tramp-default-file-modes) Remove execute permissions.
5520
5521         * tramp-gvfs.el (tramp-gvfs-methods): Add "synce" method.
5522         (top): Add a default for "synce" in `tramp-default-user-alist'.
5523         Add completion function for "synce" method.
5524         (tramp-hal-service, tramp-hal-path-manager)
5525         (tramp-hal-interface-manager, tramp-hal-interface-device): New
5526         defconst.
5527         (tramp-gvfs-connection-mounted-p): Handle empty user name for
5528         synce.
5529         (tramp-synce-list-devices, tramp-synce-parse-device-names): New
5530         defuns.
5531
5532 2009-06-29  Michael Albinus  <michael.albinus@gmx.de>
5533
5534         * tramp.el (tramp-do-copy-or-rename-file-directly): Set file modes
5535         mandatory.  (Bug#3712)
5536
5537 2009-06-24  Michael Albinus  <michael.albinus@gmx.de>
5538
5539         * tramp-gvfs.el (top): Declare used Lisp symbols from `dbusbind'.
5540         Require 'cl and 'custom when byte-compiling.
5541         (tramp-gvfs-handle-make-directory): Use `dir' but `filename'.
5542         Reported by Glenn Morris <rgm@gnu.org>.
5543
5544 2009-06-22  Michael Albinus  <michael.albinus@gmx.de>
5545
5546         Version 2.1.16 released.
5547
5548 2009-06-21  Michael Albinus  <michael.albinus@gmx.de>
5549
5550         * tramp.el (tramp-debug-message): Insert header line in debug buffer.
5551
5552 2009-06-17  Michael Albinus  <michael.albinus@gmx.de>
5553
5554         * tramp.el (tramp-handle-insert-file-contents): Improve error
5555         handling.
5556
5557         * tramp-smb.el (tramp-smb-handle-file-local-copy): Cleanup in case
5558         of error.
5559
5560 2009-06-15  Michael Albinus  <michael.albinus@gmx.de>
5561
5562         * tramp-gvfs.el (tramp-gvfs-handler-askpassword): Handle USER
5563         correctly.
5564
5565 2009-06-13  Michael Albinus  <michael.albinus@gmx.de>
5566
5567         * tramp.el
5568         (tramp-handle-directory-files-and-attributes-with-stat): Care
5569         about filenames with spaces, or starting with "-".  Reported by
5570         Alexey Lebedeff <binarin@binarin.ru>.
5571
5572 2009-06-07  Michael Albinus  <michael.albinus@gmx.de>
5573
5574         * tramp.el (tramp-do-copy-or-rename-file-directly): Make direct
5575         copy more robust, especially when "chown" is not applicable.
5576
5577         * tramp-cmds.el (tramp-bug): Recommend
5578         `tramp-cleanup-all-connections' in the bug mail.
5579
5580 2009-06-06  Michael Albinus  <michael.albinus@gmx.de>
5581
5582         * tramp.el (top): Improve check for tramp-gvfs loading.
5583         (all): Replace all calls of `split-string' and
5584         `tramp-split-string' by `tramp-compat-split-string'.
5585         (tramp-default-method): Use `tramp-compat-process-running-p'.
5586         (tramp-file-name-handler-alist): Add handler for `dired-uncache'.
5587         (tramp-handle-dired-uncache): New defun.
5588         (tramp-handle-insert-directory): Don't flush the directory from
5589         cache, this is handled by `dired-uncache' now.
5590         (tramp-action-password): Improve trace message.
5591         (tramp-open-connection-setup-interactive-shell): Apply
5592         workaround for OpenSolaris bug.
5593         (tramp-split-string): Remove function.  It is handled in
5594         tramp-compat now.
5595
5596         * tramp-compat.el (tramp-compat-split-string)
5597         (tramp-compat-process-running-p): New defuns.
5598
5599         * tramp-fish.el (tramp-fish-file-name-handler-alist):
5600         * tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
5601         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
5602         for `dired-uncache'.
5603
5604 2009-04-24  Michael Albinus  <michael.albinus@gmx.de>
5605
5606         * tramp.el (tramp-handle-directory-files-and-attributes-with-stat)
5607         (tramp-handle-file-name-all-completions): Revert patch from
5608         2009-04-21.  It is "-b", which does not work on OpenBSD.
5609
5610 2009-04-23  Michael Albinus  <michael.albinus@gmx.de>
5611
5612         * tramp.el (tramp-domain-regexp): Allow also "-", "_" and ".".
5613         Suggested by Simo Melenius <simo.melenius@iki.fi>.
5614
5615 2009-04-21  Michael Albinus  <michael.albinus@gmx.de>
5616
5617         * tramp.el (tramp-default-proxies-alist): Allow also Lisp forms.
5618         (tramp-compute-multi-hops): Eval cons cells of
5619         `tramp-default-proxies-alist'.
5620         (tramp-handle-directory-files-and-attributes-with-stat)
5621         (tramp-handle-file-name-all-completions): Don't use "-a" as ls
5622         arg.  It does not work on OpenBSD.  Reported by Taylor Venable
5623         <taylor@metasyntax.net>.
5624
5625 2009-04-19  Michael Albinus  <michael.albinus@gmx.de>
5626
5627         * tramp.el (top): Completion function for "rsync" is
5628         `tramp-completion-function-alist-ssh'.
5629
5630 2009-04-14  Michael Albinus  <michael.albinus@gmx.de>
5631
5632         * tramp.el (tramp-handle-dired-recursive-delete-directory):
5633         Fix an error in flushing cache data.
5634         (tramp-handle-process-file): Flush all file cache values for the
5635         connection, because the remote process could have changed them.
5636         Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
5637         Handle QUIT.
5638
5639         * tramp-cmds.el (tramp-cleanup-connection): Flush cache data of
5640         directory "".
5641
5642 2009-04-12  Michael Albinus  <michael.albinus@gmx.de>
5643
5644         * tramp.el (tramp-do-copy-or-rename-file-directly): Overwrite
5645         always the tmpfile.  (Bug#2962).
5646
5647 2009-04-09  Michael Albinus  <michael.albinus@gmx.de>
5648
5649         * tramp.el (tramp-file-name-handler-alist): Add `vc-registered'.
5650         (tramp-handle-vc-registered ): New defun.  (Bug#1741).
5651
5652         * tramp-cache.el (tramp-flush-directory-property): Use the
5653         localname of KEY for check.
5654
5655 2009-04-05  Michael Albinus  <michael.albinus@gmx.de>
5656
5657         * tramp.el (tramp-default-file-modes) New defun.  Replace all
5658         calls of `file-modes' by this.
5659         (tramp-handle-find-backup-file-name): Use `symbol-value' instead
5660         of `boundp'.
5661
5662         * tramp-fish.el (tramp-fish-do-copy-or-rename-file-directly): Use
5663         `tramp-default-file-modes'.
5664
5665 2009-03-23  Michael Albinus  <michael.albinus@gmx.de>
5666
5667         * tramp.el (tramp-find-shell)
5668         (tramp-open-connection-setup-interactive-shell): Don't use quotes
5669         for `tramp-end-of-output'.
5670         (tramp-open-connection-setup-interactive-shell): Trace coding system.
5671
5672 2009-03-22  Michael Albinus  <michael.albinus@gmx.de>
5673
5674         * tramp.el (top): Catch `tramp-loading' when a loading of a
5675         package fails.
5676         (tramp-end-of-output): Remove newlines, and add "$" at the end.
5677         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
5678         Quote `tramp-end-of-output'.
5679         (tramp-wait-for-output): Remove handling of newlines.
5680
5681         * tramp-gvfs.el (top): Add methods to `tramp-methods' after
5682         loading only.  Throw `tramp-loading' when GVFS daemon does not run.
5683
5684 2009-03-17  Michael Albinus  <michael.albinus@gmx.de>
5685
5686         * tramp.el (tramp-remote-path): Add choice "Private Directories".
5687         (tramp-check-for-regexp): Both echoes must be present, before
5688         removing.
5689         (tramp-get-remote-path): Handle also `tramp-own-remote-path'.
5690
5691 2009-03-15  Michael Albinus  <michael.albinus@gmx.de>
5692
5693         * tramp.el (tramp-wrong-passwd-regexp): Remove "Tramp connection
5694         closed" option.
5695         (tramp-maybe-open-connection): Use the same command pattern for
5696         first hop and further hops.
5697
5698 2009-02-26  Michael Albinus  <michael.albinus@gmx.de>
5699
5700         * tramp.el (tramp-remote-coding-commands): Add "base64".  (Bug#2463)
5701
5702 2009-02-22  Michael Albinus  <michael.albinus@gmx.de>
5703
5704         * tramp.el (top): Require tramp-gvfs.
5705         (tramp-handle-process-file): Handle QUIT.
5706
5707         * tramp-gvfs.el (tramp-gvfs-handle-write-region): Fix scoping error.
5708
5709 2009-02-17  Michael Albinus  <michael.albinus@gmx.de>
5710
5711         * tramp-gvfs.el (tramp-gvfs-zeroconf-domain): New defcustom.
5712         (top): Use it for zeroconf initialization.
5713         (tramp-gvfs-handle-make-directory): Use GVFS utilities in error
5714         case.
5715         (tramp-gvfs-handle-set-file-modes): Surround with
5716         `with-tramp-gvfs-error-message filename'.
5717         (tramp-gvfs-handle-write-region): Add trace messages.
5718
5719 2009-02-15  Michael Albinus  <michael.albinus@gmx.de>
5720
5721         * tramp-gvfs.el (top): Require also 'url-parse and 'zeroconf.  Add
5722         completion function for "dav" and "davs" methods.
5723         (tramp-gvfs-url-file-name)
5724         (tramp-zeroconf-parse-workstation-device-names)
5725         (tramp-zeroconf-parse-webdav-device-names): New defuns.
5726         (with-tramp-gvfs-error-message): New defmacro.
5727         (tramp-gvfs-handle-make-directory): Use it.
5728         (tramp-gvfs-handle-insert-file-contents): Protect setting
5729         `buffer-file-name' with `unwind-protect'.
5730         (tramp-gvfs-handle-write-region): Use GVFS utilities in error
5731         case.
5732         (tramp-gvfs-handler-mounted-unmounted): Ignore errors.
5733
5734 2009-02-11  Michael Albinus  <michael.albinus@gmx.de>
5735
5736         * tramp-gvfs.el (top): Don't raise an error when "org.bluez" is
5737         not answering.  Add completion function only when "org.bluez" is
5738         reachable.
5739         (tramp-gvfs-maybe-open-connection): Set "started" property.
5740
5741 2009-02-06  Michael Albinus  <michael.albinus@gmx.de>
5742
5743         * Makefile.in: Add tramp-gvfs.el.
5744
5745         * tramp-gvfs.el: New package.
5746
5747 2009-02-01  Michael Albinus  <michael.albinus@gmx.de>
5748
5749         Version 2.1.15 released.
5750
5751         * tramp.el (tramp-read-passwd): Cached passwords shall still be
5752         used.
5753
5754         * tramp-cache.el (top): Autoload `tramp-run-real-handler'.
5755
5756 2009-01-29  Michael Albinus  <michael.albinus@gmx.de>
5757
5758         * tramp.el (tramp-process-actions, tramp-read-passwd): Allow
5759         correction of passwords.
5760
5761 2009-01-19  Michael Albinus  <michael.albinus@gmx.de>
5762
5763         * tramp.el (tramp-ipv6-regexp): The regexp shall cover also IPv4
5764         mapped IPv6 addresses.
5765
5766 2009-01-06  Michael Albinus  <michael.albinus@gmx.de>
5767
5768         * tramp.el (tramp-do-copy-or-rename-file-directly)
5769         (tramp-handle-file-local-copy, tramp-handle-write-region)
5770         * tramp-smb.el (tramp-smb-handle-copy-file)
5771         (tramp-smb-handle-rename-file): Delete temporary file in case of
5772         quit.
5773
5774 2009-01-05  Michael Albinus  <michael.albinus@gmx.de>
5775
5776         * tramp.el (tramp-handle-load)
5777         (tramp-do-copy-or-rename-file-directly)
5778         (tramp-handle-file-local-copy, tramp-handle-insert-file-contents)
5779         (tramp-handle-write-region)
5780         * tramp-smb.el (tramp-smb-handle-copy-file)
5781         (tramp-smb-handle-rename-file, tramp-smb-handle-write-region):
5782         Delete temporary file in case of error.
5783
5784 2009-01-05  Glenn Morris  <rgm@gnu.org>
5785
5786         * tramp.el (tramp-perl-encode, tramp-perl-decode):
5787         Update copyrights for 2009.
5788
5789 2009-01-03  Michael Albinus  <michael.albinus@gmx.de>
5790
5791         * tramp.el (tramp-local-host-regexp, tramp-prefix-domain-format)
5792         (tramp-prefix-domain-regexp, tramp-domain-regexp)
5793         (tramp-user-with-domain-regexp, tramp-prefix-ipv6-format)
5794         (tramp-prefix-ipv6-regexp, tramp-ipv6-regexp)
5795         (tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp): New
5796         defconst.
5797         (tramp-file-name-structure, tramp-file-name-regexp-unified)
5798         (tramp-completion-dissect-file-name, tramp-parse-hosts-group)
5799         (tramp-dissect-file-name, tramp-make-tramp-file-name)
5800         (tramp-completion-make-tramp-file-name): Handle IPv6 addresses.
5801         (tramp-handle-insert-file-contents): Fix setting of
5802         `buffer-read-only'.
5803         (tramp-compute-multi-hops, tramp-local-host-p): Use
5804         `tramp-local-host-regexp'.
5805         (tramp-file-name-real-user, tramp-file-name-domain): Use
5806         `tramp-user-with-domain-regexp'.
5807
5808         * tramp-smb.el (top): Use `tramp-prefix-domain-regexp'.
5809         (tramp-smb-maybe-open-connection): Use `tramp-file-name-*'
5810         methods.
5811
5812 2008-12-22  Michael Albinus  <michael.albinus@gmx.de>
5813
5814         * tramp.el (tramp-rfn-eshadow-update-overlay): Move overlay to
5815         end, before updating.
5816         (tramp-convert-file-attributes): Add "l" indicator to file modes.
5817         (tramp-file-name-real-user, tramp-file-name-domain): New defuns.
5818
5819 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
5820
5821         * tramp.el (top): Don't fail if there is no current message.
5822
5823 2008-12-04  Michael Albinus  <michael.albinus@gmx.de>
5824
5825         * tramp.el (top): Write a message when loading Tramp.
5826
5827         * tramp-cache.el (tramp-dump-connection-properties): Polish the
5828         check, whether to dump the data.
5829
5830 2008-12-01  Michael Albinus  <michael.albinus@gmx.de>
5831
5832         * tramp-cache.el (tramp-cache-data-changed): New defvar.
5833         (tramp-set-connection-property, tramp-flush-connection-property)
5834         (tramp-dump-connection-properties): Use it.
5835
5836 2008-11-26  Michael Albinus  <michael.albinus@gmx.de>
5837
5838         * tramp.el (tramp-handle-write-region): Improve the check for
5839         calling direct copy.
5840         (tramp-find-inline-encoding): Don't raise an error but a warning,
5841         when no inline encoding is found.
5842         (tramp-get-remote-coding): Check for a symbol.  The negative check
5843         for a string fails when there is an empty string.
5844
5845 2008-11-16  Michael Albinus  <michael.albinus@gmx.de>
5846
5847         * tramp.el (tramp-handle-file-name-as-directory): New defun.
5848         (tramp-file-name-handler-alist): Handle `file-name-as-directory'.
5849
5850         * tramp-fish.el (tramp-fish-file-name-handler-alist)
5851         * tramp-smb.el (tramp-smb-file-name-handler-alist): Handle
5852         `file-name-as-directory'.
5853
5854 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
5855
5856         * tramp.el (tramp-set-completion-function): Fix typo in docstring.
5857
5858 2008-10-14  Michael Albinus  <michael.albinus@gmx.de>
5859
5860         * tramp.el (tramp-process-one-action): Embed regexp in
5861         parentheses, before adding end-of-buffer construct.  Suggested by
5862         Markus Triska <markus.triska@gmx.at>.
5863
5864 2008-09-04  Juanma Barranquero  <lekktu@gmail.com>
5865
5866         * tramp-cache.el (tramp-flush-file-function): Fix typo in docstring.
5867         (tramp-parse-connection-properties): Reflow docstring.
5868
5869 2008-08-22  Michael Albinus  <michael.albinus@gmx.de>
5870
5871         * tramp.el (tramp-remote-process-environment): Add "EMACS=t" and
5872         "INSIDE_EMACS=...".  Reported by Tassilo Horn
5873         <tassilo@member.fsf.org>.
5874
5875 2008-08-13  Andreas Schwab  <schwab@suse.de>
5876
5877         * tramp.el (tramp-handle-shell-command): Handle output going to
5878         current buffer like shell-command.  Don't disable undo.
5879
5880 2008-07-27  Michael Albinus  <michael.albinus@gmx.de>
5881
5882         Version 2.1.14 released.
5883
5884         * tramp.el (tramp-perl-directory-files-and-attributes)
5885         (tramp-get-device): Make device number a cons cell.
5886         (tramp-convert-file-attributes): Make inode a cons cell.
5887
5888 2008-07-26  Michael Albinus  <michael.albinus@gmx.de>
5889
5890         * tramp.el (tramp-handle-start-file-process): Set query-on-exit
5891         flag. Kill temporary buffer.
5892         (tramp-process-sentinel): Remove defun.
5893         (tramp-do-copy-or-rename-file-out-of-band)
5894         (tramp-maybe-open-connection): Don't call it.
5895
5896         * tramp-fish.el (tramp-fish-maybe-open-connection): Don't call
5897         `tramp-process-sentinel'.
5898
5899         * tramp-smb.el (tramp-smb-maybe-open-connection): Don't call
5900         `tramp-process-sentinel'.
5901
5902 2008-07-24  Michael Albinus  <michael.albinus@gmx.de>
5903
5904         * tramp.el (tramp-handle-start-file-process): Make NAME a unique
5905         process name.  Reported by Markus Triska <markus.triska@gmx.at>.
5906
5907 2008-07-23  Michael Albinus  <michael.albinus@gmx.de>
5908
5909         * tramp.el (tramp-methods): Add "-q" for "scp", "scp1", "scp2",
5910         "ssh", "ssh1", "ssh2", "scpc", "scpx", "sshx".
5911         (tramp-temp-buffer-name): New defconst.
5912         (tramp-handle-start-file-process): Use it.  Apply "exec", for the
5913         command.  No trailing prompt.
5914         (tramp-process-sentinel): Remove temporary buffer, if existing.
5915         Don't handle trailing prompt.
5916         (tramp-open-connection-setup-interactive-shell): Use
5917         `tramp-temp-buffer-name'.
5918
5919 2008-06-29  Michael Albinus  <michael.albinus@gmx.de>
5920
5921         * tramp-ftp.el (tramp-ftp-file-name-handler): Revert patch from
5922         2008-06-28.  It does not work on W32.
5923
5924 2008-06-28  Michael Albinus  <michael.albinus@gmx.de>
5925
5926         * tramp.el (tramp-handle-file-modes): Handle symlinks.
5927         (tramp-convert-file-attributes): Convert symlinks only when
5928         returned from `tramp-handle-file-attributes-with-stat'.
5929
5930         * tramp-ftp.el (top): Delete 'ange-ftp property from
5931         `substitute-in-file-name' when unloading.
5932         (tramp-ftp-file-name-handler): Set `tramp-mode' to nil.
5933
5934 2008-06-21  Glenn Morris  <rgm@gnu.org>
5935
5936         * tramp-smb.el: Require 'cl when compiling.
5937
5938 2008-06-15  Michael Albinus  <michael.albinus@gmx.de>
5939
5940         * tramp.el (tramp-handle-start-file-process): Clear modification
5941         time of the connection buffer.
5942         (tramp-sh-file-name-handler): Reset `tramp-locked' in case of error.
5943         (tramp-open-connection-setup-interactive-shell): Flush cache, and
5944         restart `tramp-maybe-open-connection' when the remote system has
5945         been changed. Throw 'uname-changed event.
5946         (tramp-maybe-open-connection): Catch it.
5947
5948         * tramp-cmds.el (tramp-cleanup-all-connections): Reset `tramp-locked'.
5949
5950 2008-05-25  Michael Albinus  <michael.albinus@gmx.de>
5951
5952         * tramp.el (top): Quote feature names.  Remove
5953         `tramp-rfn-eshadow-setup-minibuffer' from
5954         `rfn-eshadow-setup-minibuffer-hook' when unloading.
5955         (tramp-read-passwd): There is only one call to
5956         `auth-source-user-or-password' needed.  Pacify byte compiler.
5957
5958 2008-05-17  Glenn Morris  <rgm@gnu.org>
5959
5960         * tramp.el (top-level): Load auth-source when compiling.
5961
5962 2008-05-16  Michael Albinus  <michael.albinus@gmx.de>
5963
5964         * tramp.el (tramp-handle-write-region): Fix check for short
5965         track.  Reported by Glenn Morris <rgm@gnu.org>.
5966
5967 2008-05-15  Michael Albinus  <michael.albinus@gmx.de>
5968
5969         * tramp.el (tramp-file-name-for-operation): Add `make-temp-name'.
5970
5971 2008-05-14  Teodor Zlatanov  <tzz@lifelogs.com>
5972
5973         * tramp.el: Load auth-source library.
5974         (tramp-read-passwd): Use it for password, not login.
5975
5976 2008-05-14  Michael Albinus  <michael.albinus@gmx.de>
5977
5978         * tramp.el (tramp-echo-mark): Update docstring.
5979         (tramp-echo-mark-marker): New defconst.
5980         (tramp-check-for-regexp): Use it.
5981
5982 2008-04-28  Michael Albinus  <michael.albinus@gmx.de>
5983
5984         * tramp.el (tramp-mode): New defcustom.
5985         (tramp-file-name-handler, tramp-completion-file-name-handler): Use
5986         it.
5987         (tramp-replace-environment-variables): Handle "$$".
5988
5989 2008-04-27  Michael Albinus  <michael.albinus@gmx.de>
5990
5991         * tramp.el (tramp-handle-make-symbolic-link)
5992         (tramp-handle-file-name-directory)
5993         (tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
5994         (tramp-do-copy-or-rename-file-directly)
5995         (tramp-handle-insert-directory, tramp-handle-expand-file-name)
5996         (tramp-handle-substitute-in-file-name)
5997         (tramp-handle-insert-file-contents, tramp-handle-write-region)
5998         * tramp-cache.el (tramp-get-file-property)
5999         (tramp-set-file-property, tramp-flush-file-property)
6000         (tramp-flush-directory-property)
6001         * tramp-compat.el (tramp-compat-make-temp-file)
6002         * tramp-fish.el (tramp-fish-handle-expand-file-name): Disable
6003         `file-name-handler-alist' when handling localname.  It could have
6004         a remote file syntax, like a VMS file name.
6005
6006 2008-04-27  Michael Albinus  <michael.albinus@gmx.de>
6007
6008         * tramp.el (tramp-replace-environment-variables): New defun.
6009         (tramp-handle-substitute-in-file-name, tramp-file-name-handler):
6010         Use it.
6011
6012 2008-04-24  Michael Albinus  <michael.albinus@gmx.de>
6013
6014         * tramp.el (tramp-get-remote-stat): Test whether stat supports %s.
6015         Reported by Loris Bennett <loris.bennett@fu-berlin.de>.
6016
6017 2008-04-09  Michael Albinus  <michael.albinus@gmx.de>
6018
6019         * tramp.el (tramp-find-file-name-coding-system-alist): New defun.
6020         (tramp-handle-insert-file-contents, tramp-handle-write-region):
6021         Use it.
6022
6023 2008-04-07  Michael Albinus  <michael.albinus@gmx.de>
6024
6025         * tramp.el (tramp-methods): Fix again tramp-copy-args of "pscp"
6026         and "psftp".  Reported by Gilles Pion <gpion@lfdj.com>.
6027
6028 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
6029
6030         * tramp.el (after-init-hook): Don't wrap a lambda around
6031         tramp-register-completion-file-name-handler.
6032
6033 2008-04-03  Glenn Morris  <rgm@gnu.org>
6034
6035         * tramp.el (tramp-drop-volume-letter): Move definition before use.
6036
6037 2008-04-02  Michael Albinus  <michael.albinus@gmx.de>
6038
6039         * tramp.el (tramp-make-tramp-temp-file): Use
6040         `tramp-drop-volume-letter' for the local file name part.
6041
6042 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
6043
6044         * tramp.el (tramp-do-copy-or-rename-file): Fix check for
6045         overwriting when NEWNAME is a local file.
6046
6047 2008-03-29  Michael Albinus  <michael.albinus@gmx.de>
6048
6049         Version 2.1.13 released.
6050
6051         * tramp-ftp.el: Require 'cl when byte-compiling.
6052
6053 2008-03-21  Michael Albinus  <michael.albinus@gmx.de>
6054
6055         * tramp.el (tramp-methods): Fix tramp-copy-args of "pscp" and
6056         "psftp".
6057
6058 2008-03-19  Michael Albinus  <michael.albinus@gmx.de>
6059
6060         * tramp.el (tramp-let-maybe): Removed.
6061         (tramp-drop-volume-letter): Don't use `replace-regexp-in-string'.
6062         It does not exist under XEmacs.
6063         (tramp-handle-file-truename, tramp-handle-expand-file-name)
6064         (tramp-completion-file-name-handler): Let-bind `directory-sep-char'.
6065
6066         * tramp-fish.el (tramp-fish-handle-expand-file-name): Let-bind
6067         `directory-sep-char'.
6068
6069 2008-03-19  Glenn Morris  <rgm@gnu.org>
6070
6071         * tramp.el (tramp-drop-volume-letter): Evaluate when compiling.
6072         (tramp-handle-shell-command): Use condition-case rather than
6073         ignore-errors.
6074
6075 2008-03-17  Michael Albinus  <michael.albinus@gmx.de>
6076
6077         * tramp.el (tramp-root-regexp): Simplify.
6078         (tramp-completion-file-name-regexp-separate): Don't insist on
6079         leading "[".  This prevents method or user or host completion.
6080         (tramp-let-maybe): Autoload it.
6081         (tramp-drop-volume-letter): Don't autoload.  When not on W32, it
6082         is an alias for `identity'.
6083         (tramp-handle-write-region): Protect `last-coding-system-used'
6084         over the trailing statements.
6085         (tramp-completion-file-name-handler-post-function): Removed.
6086         (tramp-completion-file-name-handler): Let-bind
6087         `directory-sep-char' instead of calling
6088         `tramp-drop-volume-letter'.
6089
6090         * tramp.el (top):
6091         * tramp-efs.el (top):
6092         * tramp-util.el (top):
6093         * tramp-uu.el (top):
6094         * trampver.el.in (top): Move coding cookie at the end.
6095
6096 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
6097
6098         * tramp.el (tramp-completion-mode-p): Don't use char-equal for
6099         elements which may be something else than characters.
6100
6101 2008-03-15  Michael Albinus  <michael.albinus@gmx.de>
6102
6103         * tramp.el (tramp-root-regexp): New defconst.
6104         (tramp-completion-file-name-regexp-unified)
6105         (tramp-completion-file-name-regexp-separate)
6106         (tramp-completion-file-name-regexp-url): Use it.
6107         (tramp-do-copy-or-rename-file-via-buffer): Set
6108         `enable-multibyte-characters' to nil.  Set `jka-compr-inhibit' to
6109         t for `insert-file-contents-literally'.
6110         (tramp-drop-volume-letter): Rewrite, using `tramp-root-regexp'.
6111         Autoload it.
6112         (tramp-completion-file-name-handler-post-function): New defconst.
6113         (tramp-completion-file-name-handler): Use it.
6114         (tramp-maybe-open-connection): Update calls to
6115         `tramp-flush-connection-property' for removed 2nd argument.
6116
6117         * tramp-util.el (tramp-advice-file-remote-p): Protect by
6118         `save-match-data'.
6119
6120 2008-02-09  Michael Olson  <mwolson@gnu.org>
6121
6122         * tramp.el (tramp-process-sentinel): Avoid error when process
6123         buffer has been killed, such as by
6124         `tramp-cleanup-all-connections'.
6125
6126 2008-02-05  Glenn Morris  <rgm@gnu.org>
6127
6128         * tramp-cmds.el (tramp-cleanup-connection): Update calls to
6129         tramp-flush-connection-property for removed 2nd argument.
6130
6131 2008-02-03  Michael Albinus  <michael.albinus@gmx.de>
6132
6133         * tramp.el (tramp-process-sentinel): New defun.
6134         (tramp-do-copy-or-rename-file-out-of-band)
6135         (tramp-maybe-open-connection): Use it as process sentinel.
6136         (tramp-handle-delete-directory): Don't use the "-f" option; it
6137         isn't portable.
6138         (tramp-handle-start-file-process): Echo `tramp-end-of-output'
6139         after the command.
6140         (tramp-handle-shell-command): Set `mode-line-process' in the
6141         asynchronous case.
6142
6143         * tramp-cache.el (tramp-flush-connection-property): Remove EVENT.
6144
6145         * tramp-fish.el (tramp-fish-maybe-open-connection):
6146         * tramp-smb.el (tramp-smb-maybe-open-connection): Use
6147         `tramp-process-sentinel' as process sentinel.
6148
6149 2008-01-29  Michael Albinus  <michael.albinus@gmx.de>
6150
6151         * tramp.el (tramp-methods): Use "-H" option for "sudo".  Suggested
6152         by Trent W. Buck <trentbuck@gmail.com>.  Make ("%h") a single
6153         element in "plinkx".
6154         (tramp-handle-shell-command): Reuse "*Async Shell Command*" or
6155         "*Shell Command Output*" buffers.  Check, whether there is already
6156         an asynchronous process running.  Display always the buffer of the
6157         asynchronous process.
6158         (tramp-compute-multi-hops): Adapt error message.
6159
6160 2008-01-28  Michael Albinus  <michael.albinus@gmx.de>
6161
6162         * tramp.el (tramp-handle-shell-command): Use "/bin/sh -c" for the
6163         command.
6164
6165 2008-01-27  Michael Albinus  <michael.albinus@gmx.de>
6166
6167         * tramp.el (tramp-compute-multi-hops): In case of su(do)? methods,
6168         the host name must be a local host.
6169
6170 2008-01-26  Michael Albinus  <michael.albinus@gmx.de>
6171
6172         * tramp.el (tramp-dissect-file-name): Raise an error when Tramp
6173         2.0 syntax is used.  Suggested by Trent W. Buck <trentbuck@gmail.com>.
6174
6175 2008-01-24  Michael Albinus  <michael.albinus@gmx.de>
6176
6177         * tramp.el (tramp-do-copy-or-rename-file): Flush the cache of the
6178         source file in case of `rename'.  Reported by Pete Forman
6179         <pete.forman@westerngeco.com>.
6180
6181 2008-01-23  Michael Albinus  <michael.albinus@gmx.de>
6182
6183         * tramp.el (tramp-end-of-output): Add `tramp-rsh-end-of-line' into
6184         the regexp.
6185         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
6186         Don't send `tramp-rsh-end-of-line' additionally when setting the
6187         prompt.
6188         (tramp-wait-for-output): Distinguish different prompt formats.
6189         (tramp-get-test-nt-command): Don't check for "\n" in the prompt.
6190         (tramp-local-host-p): Check whether temp directory is writable.
6191
6192 2008-01-17  Michael Albinus  <michael.albinus@gmx.de>
6193
6194         * tramp.el (tramp-remote-process-environment): Set "LC_ALL=C".
6195
6196 2008-01-14  Michael Albinus  <michael.albinus@gmx.de>
6197
6198         * tramp.el (tramp-local-host-p): Use `tramp-file-name-host'
6199         instead of `tramp-file-name-real-host'.
6200
6201 2008-01-12  Michael Albinus  <michael.albinus@gmx.de>
6202
6203         Update copyrights.
6204
6205 2008-01-08  Michael Albinus  <michael.albinus@gmx.de>
6206
6207         * tramp.el (tramp-handle-process-file): Handle the case where
6208         DESTINATION is a consp with t as car.
6209         (tramp-wait-for-output): We shall remove exactly what has been
6210         find by the search.
6211
6212 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
6213
6214         * tramp.el (tramp-remote-process-environment): Add "LC_CTYPE=C".
6215         Reported by Pete Forman <pete.forman@westerngeco.com>.
6216         (tramp-perl-encode, tramp-perl-decode): Update copyrights.
6217
6218 2008-01-04  Glenn Morris  <rgm@gnu.org>
6219
6220         * tramp-smb.el (tramp-smb-handle-insert-directory): Use mapc
6221         rather than mapcar.
6222
6223 2007-12-23  Michael Albinus  <michael.albinus@gmx.de>
6224
6225         Version 2.1.12 released.
6226
6227         * tramp.el: New todo item.
6228
6229         * tramp-smb.el (tramp-smb-handle-insert-directory): Handle "-F"
6230         switch.  Reported by Mark T. Kennedy <mkennedy@diamondbackcap.com>.
6231
6232 2007-12-06  D. Goel  <deego3@gmail.com>
6233
6234         * trampver.el.in (x): Fix buggy call to `error'.
6235
6236 2007-12-18  Michael Albinus  <michael.albinus@gmx.de>
6237
6238         * tramp-compat.el (top): Require cl only when compiling.
6239         Reported by Glenn Morris <rgm@gnu.org>.
6240
6241 2007-12-17  Michael Albinus  <michael.albinus@gmx.de>
6242
6243         * tramp.el (tramp-open-connection-setup-interactive-shell)
6244         (tramp-find-shell): Send only single prompt setting commands, in
6245         order to avoid double-prompt.
6246
6247 2007-12-04  Glenn Morris  <rgm@gnu.org>
6248
6249         * tramp.el: Require password-cache or password.
6250
6251 2007-11-19  Michael Albinus  <michael.albinus@gmx.de>
6252
6253         * tramp.el (tramp-open-connection-setup-interactive-shell): Still
6254         some tuning in case of an echoing shell.
6255         (tramp-send-command): Connection property "remote-echo" is not
6256         persistent; cache key is the process therefore.
6257
6258 2007-11-18  Dan Nicolaescu  <dann@ics.uci.edu>
6259
6260         * tramp.el (tramp-terminal-type): Remove duplicated definition.
6261
6262 2007-11-18  Michael Albinus  <michael.albinus@gmx.de>
6263
6264         * tramp.el (tramp-completion-reread-directory-timeout): New
6265         defcustom.
6266         (tramp-handle-file-name-all-completions): Flush directory contents
6267         from cache regularly.
6268         (tramp-set-auto-save-file-modes): Check also for
6269         `buffer-modified-p'.
6270         (tramp-open-connection-setup-interactive-shell): Call
6271         `tramp-cleanup-connection' via funcall.
6272
6273         * tramp-ftp.el (tramp-ftp-file-name-handler): Temp file is already
6274         created when copying.
6275
6276 2007-11-12  Michael Albinus  <michael.albinus@gmx.de>
6277
6278         * tramp.el (tramp-open-connection-setup-interactive-shell): Check
6279         whether the output of "uname -sr" has been changed.
6280
6281 2007-11-08  Michael Albinus  <michael.albinus@gmx.de>
6282
6283         * tramp.el (tramp-maybe-open-connection): Use a local copy of
6284         `process-environment'.
6285
6286 2007-11-07  Michael Albinus  <michael.albinus@gmx.de>
6287
6288         * tramp.el (tramp-handle-substitute-in-file-name): Don't expand
6289         the remote connection identification.
6290         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
6291         Set also $PS2 and $PS3 when setting $PS1.  Check for shell echoing
6292         before calling stty.
6293
6294         * tramp-cache.el (tramp-cache-print)
6295         (tramp-dump-connection-properties): Fix docstring.
6296         (tramp-list-connections): Renamed from
6297         `tramp-cache-list-connections'.
6298
6299         * tramp-cmds.el (tramp-cleanup-connection): Apply it.
6300
6301         * tramp-ftp.el (tramp-ftp-file-name-handler): Don't expand the
6302         remote connection identification when setting connection property.
6303
6304         * tramp-smb.el (tramp-smb-handle-substitute-in-file-name): "//"
6305         substitutes only in the local filename part.
6306
6307 2007-11-06  Michael Albinus  <michael.albinus@gmx.de>
6308
6309         * tramp.el (top): Don't autoload `tramp-cache-print'.
6310
6311         * tramp-cache (tramp-cache-print): Move down.
6312         (tramp-cache-list-connections): New defun.
6313
6314         * tramp-cmds.el (tramp-cleanup-connection): Use it.
6315
6316 2007-11-05  Michael Albinus  <michael.albinus@gmx.de>
6317
6318         * tramp.el (tramp-wait-for-output): Ignore escape sequences in the
6319         prompt.
6320
6321 2007-10-31  Michael Albinus  <michael.albinus@gmx.de>
6322
6323         * tramp.el (tramp-handle-shell-command): Call `start-file-process'
6324         directly.  Fix bug in deleting temp file.
6325
6326 2007-10-30  Michael Albinus  <michael.albinus@gmx.de>
6327
6328         * tramp.el (tramp-maybe-open-connection): Set $LC_ALL to "C".
6329
6330         * tramp-cache.el (tramp-flush-file-function): Check also
6331         `default-directory' if `buffer-file-name' does not return a
6332         string.  Added to `eshell-pre-command-hook'.
6333
6334 2007-10-27  Michael Albinus  <michael.albinus@gmx.de>
6335
6336         * tramp.el (tramp-wrong-passwd-regexp): Tune regexp.
6337         (tramp-get-remote-tmpdir): New defun.
6338         (tramp-make-tramp-temp-file): Use it.
6339         (tramp-local-call-process): New defun.  Replace all calls of
6340         `call-process' by this when appropriate.
6341         (tramp-handle-write-region): Replace calls of `file-attributes' by
6342         `tramp-compat-file-attributes'.
6343         (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
6344         Make the first command a `tramp-send-command' call, with let-bind
6345         of `tramp-end-of-output'.
6346         (tramp-version, tramp-bug, tramp-reporter-dump-variable)
6347         (tramp-load-report-modules, tramp-append-tramp-buffers): Move to
6348         tramp-cmds.el.
6349
6350         * tramp-fish.el (tramp-fish-handle-copy-file)
6351         (tramp-fish-do-copy-or-rename-file)
6352         (tramp-fish-do-copy-or-rename-file-directly):
6353         * tramp-smb.el (tramp-smb-handle-copy-file):
6354         Add parameter PRESERVE-UID-GID.
6355
6356 2007-10-23  Michael Albinus  <michael.albinus@gmx.de>
6357
6358         * tramp.el (tramp-set-file-uid-gid): Protect `call-process' when
6359         we are local.
6360
6361 2007-10-22  Michael Albinus  <michael.albinus@gmx.de>
6362
6363         * tramp.el (tramp-find-shell)
6364         (tramp-open-connection-setup-interactive-shell): Improve sending
6365         initial commands.
6366         (tramp-action-terminal): Send debug message.
6367         (tramp-wait-for-shell-prompt, tramp-send-command-internal): Removed.
6368         (tramp-barf-if-no-shell-prompt): Insert code of
6369         `tramp-wait-for-shell-prompt'.
6370
6371         * tramp-util.el (tramp-PC-expand-many-files): New defun.
6372         (tramp-advice-PC-expand-many-files): Defadvice moved from tramp.el.
6373
6374 2007-10-22  Sean O'Rourke  <sorourke@cs.ucsd.edu>  (tiny change)
6375
6376         * tramp.el (tramp-handle-expand-many-files): Remove.
6377         (PC-expand-many-files): Remove advice.
6378
6379 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
6380
6381         * tramp.el (tramp-do-copy-or-rename-file-directly): Make more
6382         rigid checks.
6383         (tramp-handle-insert-file-contents): Don't raise a tramp-error but
6384         a signal, in order to give the callee a chance to suppress.
6385         (tramp-handle-write-region): Set owner also in case of short
6386         track.  Don't use compatibility calls for `write-region' anymore.
6387
6388 2007-10-18  Johan Bockgård  <bojohan@gnu.org>
6389
6390         * tramp.el (tramp-rfn-eshadow-update-overlay): Save excursion.
6391         Use `save-restriction' rather than `widen'.
6392
6393 2007-10-17  Michael Albinus  <michael.albinus@gmx.de>
6394
6395         * Makefile.in (LISP_FILES): Add tramp-cmds.el.
6396
6397         * tramp.el (top): Put load of all tramp-* files into a dolist.
6398         Require tramp-cmds.el.
6399         (tramp-clear-passwd): Add parameter VEC.  Adapt all callees.
6400         (tramp-append-tramp-buffers): Apply `tramp-list-tramp-buffers'.
6401
6402         * tramp-cmds.el: New file.
6403
6404         * tramp-gw.el (tramp-gw-basic-authentication): Apply VEC to
6405         `tramp-clear-passwd'.
6406
6407 2007-10-15  Michael Albinus  <michael.albinus@gmx.de>
6408
6409         * tramp.el (tramp-handle-file-name-all-completions): Expand
6410         DIRECTORY.
6411         (tramp-handle-dired-recursive-delete-directory): Call "rm -rf".
6412
6413 2007-10-14  Michael Albinus  <michael.albinus@gmx.de>
6414
6415         * tramp.el (tramp-make-tramp-temp-file): We can get rid of
6416         DONT-CREATE.
6417         (tramp-do-copy-or-rename-file-out-of-band)
6418         (tramp-maybe-open-connection): Use `make-temp-name'.  This is
6419         possible, because we don't need to create the temporary file, but
6420         we need a prefix for ssh, which has its own temporary file
6421         handling.
6422         (tramp-handle-delete-directory): Add "-f" to rmdir.
6423
6424         * tramp-util.el (top): Check for `tramp-handle-start-file-process',
6425         not its symbol-function.
6426
6427 2007-10-10  Michael Albinus  <michael.albinus@gmx.de>
6428
6429         Version 2.1.11 released.
6430
6431         * tramp.el (tramp-open-connection-setup-interactive-shell): Pacify
6432         byte compiler.
6433
6434 2007-10-08  Michael Albinus  <michael.albinus@gmx.de>
6435
6436         * tramp.el (tramp-find-foreign-file-name-handler): Check also
6437         host.
6438         (tramp-maybe-send-script): Apply `member' but `memq'.
6439         (tramp-advice-file-expand-wildcards): Simplify implementation.
6440
6441 2007-10-06  Michael Albinus  <michael.albinus@gmx.de>
6442
6443         * tramp.el (top): Move loading of tramp-util.el and tramp-vc.el to
6444         tramp-compat.el.
6445         (tramp-make-tramp-temp-file): Complete rewrite.  Create remote
6446         temporary file if possible, in order to avoid a security hole.
6447         (tramp-do-copy-or-rename-file-out-of-band)
6448         (tramp-maybe-open-connection): Call `tramp-make-tramp-temp-file'
6449         with DONT-CREATE, because the connection is not setup yet.
6450         (tramp-handle-process-file): Rewrite temporary file handling.
6451         (tramp-completion-mode): New defvar.
6452         (tramp-completion-mode-p): Use it.
6453
6454         * tramp-compat.el (top):  Load tramp-util.el and tramp-vc.el.
6455
6456         * tramp-fish.el (tramp-fish-handle-process-file): Rewrite
6457         temporary file handling.
6458
6459 2007-10-04  Michael Albinus  <michael.albinus@gmx.de>
6460
6461         * tramp.el (tramp-make-temp-file): Move to tramp-compat.el.
6462         (tramp-do-copy-or-rename-file-directly): Handle tmpfile only in
6463         the cond clauses where needed.
6464         (tramp-handle-write-region): Rearrange code for proper handling of
6465         tmpfile.
6466
6467         * tramp-compat.el (tramp-compat-make-temp-file): New defsubst.
6468
6469         * tramp.el:
6470         * tramp-fish.el:
6471         * tramp-ftp.el:
6472         * tramp-smb.el: Rename `tramp-make-temp-file' to
6473         `tramp-compat-make-temp-file'.
6474
6475 2007-10-03  Michael Albinus  <michael.albinus@gmx.de>
6476
6477         * tramp.el (top): Add tramp-compat to `tramp-unload-hook'.
6478         (tramp-file-name-handler-alist): Add
6479         `tramp-handle-insert-file-contents-literally'.  Needed for XEmacs.
6480         (tramp-make-temp-file): Use `make-temp-name'. `make-temp-file',
6481         used before, creates the file already, which is not desired.
6482         (tramp-do-copy-or-rename-file-directly): Simplify handling of
6483         temporary file.
6484         (tramp-handle-insert-file-contents): Assign the result in the
6485         short track case.
6486         (tramp-handle-insert-file-contents-literally): New defun.
6487         (tramp-completion-mode-p): Revert change from 2007-09-24.
6488         Checking for `return' etc as last character is not sufficient, for
6489         example in dired-mode when entering <g> (revert-buffer) or
6490         <s> (dired-sort).
6491
6492         * tramp-compat.el (top): Add also compatibility code for loading
6493         appropriate timer package.
6494         (tramp-compat-copy-tree): Check for `subrp' and `symbol-file' in
6495         order to avoid autoloading problems.
6496
6497         * tramp-efs-el:
6498         * tramp-fish.el:
6499         * tramp-smb.el: Move further compatibility code to
6500         tramp-compat.el.
6501
6502         * tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case
6503         where the second parameter of `copy-file' or `rename-file' is a
6504         remote file but not via ftp.
6505
6506         * tramp-util.el: Remove `tramp-minor-mode' and its declarations.
6507
6508 2007-09-30  Michael Albinus  <michael.albinus@gmx.de>
6509
6510         * Makefile.in (LISP_FILES): Add tramp-compat.el.
6511
6512         * tramp-compat.el: New file.
6513
6514         * tramp.el:
6515         * tramp-fish.el:
6516         * tramp-smb.el:
6517         * tramp-uu.el:
6518         * tramp-vc.el:
6519         * trampver.el.in: Move compatibility code to tramp-compat.el.
6520         Apply `mapc' instead of `mapcar' when the code needs side effects
6521         only.  Move utf-8 coding cookie to the second line.
6522
6523 2007-09-28  Michael Albinus  <michael.albinus@gmx.de>
6524
6525         * tramp.el (with-file-property, with-connection-property):
6526         Highlight as keyword.
6527         (tramp-rfn-eshadow-setup-minibuffer)
6528         (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
6529         (tramp-set-file-uid-gid, tramp-do-copy-or-rename-file-via-buffer)
6530         (tramp-do-copy-or-rename-file-directly)
6531         (tramp-do-copy-or-rename-file-out-of-band)
6532         (tramp-handle-shell-command, tramp-get-debug-buffer)
6533         (tramp-send-command-and-read, tramp-equal-remote)
6534         (tramp-get-local-gid): Pacify byte-compiler.
6535         (tramp-handle-file-name-directory): Result shall not be expanded.
6536         (tramp-find-foreign-file-name-handler): Rewrite.
6537         (tramp-dissect-file-name): Add optional parameter NODEFAULT.
6538
6539         * tramp-cache.el (tramp-cache-print): Pacify byte-compiler.
6540
6541         * tramp-fish.el (tramp-fish-handle-expand-file-name): Apply
6542         `tramp-completion-mode-p'.
6543         (tramp-fish-handle-set-file-times)
6544         (tramp-fish-handle-executable-find)
6545         (tramp-fish-handle-process-file, tramp-fish-get-file-entries)
6546         (tramp-fish-retrieve-data): Pacify byte-compiler.
6547
6548         * tramp-gw.el (tramp-gw-basic-authentication): Call
6549         `tramp-read-passwd' with first parameter `nil'.
6550
6551         * tramp-util.el (process-file): Add a defalias if function does
6552         not exist.
6553         (tramp-gud-file-name, gud-find-file): Pacify byte-compiler.
6554
6555         * tramp-vc.el (tramp-vc-user-login-name): Apply `set-file-times'
6556         instead of `tramp-touch'.
6557
6558         * Makefile.in (top): Handle `datarootdir'.
6559
6560 2007-09-27  Michael Albinus  <michael.albinus@gmx.de>
6561
6562         * tramp.el (tramp-maybe-open-connection): Make test for alive
6563         connection more robust.
6564
6565 2007-09-24  Michael Albinus  <michael.albinus@gmx.de>
6566
6567         * tramp.el (tramp-completion-mode-p): Rename from
6568         `tramp-completion-mode'. Revert logic, check `return', `newline'
6569         and such alike. Packages like Icicles tend to use other completion
6570         characters but `tab' and `space' only.
6571
6572 2007-09-21  Michael Albinus  <michael.albinus@gmx.de>
6573
6574         * tramp.el (tramp-rfn-eshadow-overlay): New defvar.
6575         (tramp-rfn-eshadow-setup-minibuffer)
6576         (tramp-rfn-eshadow-update-overlay): New defuns.
6577
6578         * tramp-smb.el (tramp-smb-errors): Add error message for call
6579         timeout.
6580
6581 2007-09-09  Michael Albinus  <michael.albinus@gmx.de>
6582
6583         * tramp.el (top): Remove declarations of `tramp-gw-*' symbols,
6584         they are useless with the byte compiler.
6585         (tramp-make-temp-file, tramp-make-tramp-temp-file): Move up.
6586         (tramp-do-copy-or-rename-file-directly): Rearrange let-bindings.
6587         (tramp-compute-multi-hops): Mask `tramp-gw-*' symbols.
6588         (tramp-file-name-real-host, tramp-file-name-port)
6589         (tramp-find-method, tramp-find-user, tramp-find-host): Make them
6590         defuns.
6591
6592 2007-09-06  Ville Skyttä  <scop@xemacs.org>  (tiny change)
6593
6594         * tramp-vc.el (tramp-vc-user-login-name): Use `vc-find-version'
6595         instead of `process-file' to check whether we have a new enough vc
6596         that doesn't need the defadvice.
6597
6598 2007-09-04  Michael Albinus  <michael.albinus@gmx.de>
6599
6600         * tramp-cache.el (top): Improve error message when
6601         `tramp-persistency-file-name' is corrupted.
6602
6603 2007-08-28  Michael Albinus  <michael.albinus@gmx.de>
6604
6605         * tramp.el (tramp-handle-set-file-times): Flush the file
6606         properties.
6607         (tramp-set-file-uid-gid, tramp-get-local-uid)
6608         (tramp-get-local-gid): New defuns.
6609         (tramp-handle-copy-file): Handle new parameter PRESERVE-UID-GID.
6610         (tramp-do-copy-or-rename-file): New parameter PRESERVE-UID-GID.
6611         Improve fast track.
6612         (tramp-do-copy-or-rename-file-directly): Sync parameter list with
6613         the other tramp-do-copy-or-rename-file-* functions.  Major
6614         rewrite.
6615         (tramp-handle-file-local-copy, tramp-handle-insert-file-contents)
6616         (tramp-handle-write-region): Improve fast track.
6617         (tramp-handle-file-remote-p): IDENTIFICATION can also be
6618         'localname.
6619         (tramp-maybe-open-connection): Let `process-adaptive-read-buffering'
6620         be nil.
6621
6622         * tramp-util.el (tramp-advice-process-file): Rename from
6623         `tramp-advice-call-process'.
6624         (tramp-advice-call-process-shell-command): Correct doc string.
6625
6626 2007-08-24  Michael Albinus  <michael.albinus@gmx.de>
6627
6628         * tramp.el (tramp-local-host-p): New defun.
6629         (tramp-handle-file-local-copy, tramp-handle-write-region):
6630         Implement fast track when being on the local host.
6631         (tramp-file-name-handler): Don't set "started" property.  It shall
6632         be reserved for the "ftp" method.
6633         (tramp-make-copy-program-file-name): Use `tramp-file-name-real-host'.
6634
6635         * tramp-ftp.el (top): Autoload `tramp-set-connection-property'.
6636         (tramp-ftp-file-name-handler): Set "started" property.
6637
6638 2007-08-22  Michael Albinus  <michael.albinus@gmx.de>
6639
6640         * tramp.el (tramp-get-remote-path): New defun.  Replace occurences
6641         of `tramp-default-remote-path' by this function.
6642         (tramp-set-remote-path): Move most of the code to
6643         `tramp-get-remote-path'.
6644         (tramp-get-ls-command, tramp-get-remote-id): Don't check for not
6645         existing directories, this is done already in
6646         `tramp-get-remote-path'.
6647
6648 2007-08-14  Michael Albinus  <michael.albinus@gmx.de>
6649
6650         * tramp.el (top): Require cl.el when `copy-tree' is not available
6651         otherwise.
6652
6653 2007-08-07  Michael Albinus  <michael.albinus@gmx.de>
6654
6655         * tramp.el (tramp-handle-shell-command): Handle OUTPUT-BUFFER and
6656         ERROR-BUFFER more robust.  Display output.
6657
6658         * tramp-cache.el (top): Read persistent connection history when
6659         cache is empty.
6660
6661 2007-08-07  Nic Ferrier  <nferrier@tapsellferrier.co.uk>  (tiny change)
6662
6663         * tramp.el (tramp-handle-process-file): Fix bug inserting
6664         resulting output.
6665
6666 2007-08-01  Michael Albinus  <michael.albinus@gmx.de>
6667
6668         * tramp.el (tramp-file-name-handler): Add a connection property
6669         when we found a foreign file name handler.  This allows backends
6670         like ftp to profit also from usr/host name completion based on
6671         connection cache.
6672
6673 2007-07-30  Michael Albinus  <michael.albinus@gmx.de>
6674
6675         * tramp.el (tramp-wrong-passwd-regexp): Make the regexp more
6676         global matching.
6677         (tramp-send-command-and-read): Search for trash after the regexp
6678         until eol only.  In XEmacs, there is a problem with \n.
6679
6680 2007-07-29  Michael Albinus  <michael.albinus@gmx.de>
6681
6682         * Makefile.in:
6683         * tramp.el:
6684         * tramp-efs.el:
6685         * tramp-util.el:
6686         * tramp-uu.el:
6687         * trampver.el.in: Use utf-8 encoding with coding cookie.
6688
6689         * tramp-cache.el:
6690         * tramp-fish.el:
6691         * tramp-ftp.el:
6692         * tramp-gw.el:
6693         * tramp-smb.el: Remove coding cookie.
6694
6695         * tramp.el (tramp-handle-verify-visited-file-modtime): Flush
6696         buffer file-name's file property.
6697         (tramp-handle-file-remote-p): The first parameter is FILENAME.
6698
6699 2007-07-23  Michael Albinus  <michael.albinus@gmx.de>
6700
6701         * tramp.el (tramp-perl-file-attributes)
6702         (tramp-perl-directory-files-and-attributes)
6703         (tramp-handle-file-attributes-with-stat)
6704         (tramp-handle-directory-files-and-attributes-with-stat)
6705         (tramp-convert-file-attributes): Handle huge file sizes.
6706
6707 2007-07-22  Michael Albinus  <michael.albinus@gmx.de>
6708
6709         Version 2.1.10 released.
6710
6711         * tramp.el (tramp-get-ls-command): Fix typo.
6712
6713 2007-07-17  Michael Albinus  <michael.albinus@gmx.de>
6714
6715         * tramp.el (tramp-handle-file-remote-p): Handle optional parameter
6716         IDENTIFICATION.
6717
6718         * tramp-util.el (tramp-advice-file-remote-p): Handle optional
6719         parameter IDENTIFICATION.
6720
6721 2007-07-16  Michael Albinus  <michael.albinus@gmx.de>
6722
6723         * tramp.el (tramp-handle-set-file-times): New defun.  Replaces
6724         `tramp-touch'.
6725         (tramp-file-name-handler-alist, tramp-file-name-for-operation):
6726         Add entry for `set-file-times'.
6727         (tramp-do-copy-or-rename-file-via-buffer)
6728         (tramp-do-copy-or-rename-file-out-of-band): Use `set-file-times'.
6729         (tramp-handle-unhandled-file-name-directory): Rewrite.
6730         (tramp-convert-file-attributes): Add error handling when inode is
6731         extraordinary big.
6732         (tramp-get-inode): Change parameter from FILE to VEC.
6733
6734         * tramp-fish.el (tramp-fish-file-name-handler-alist): Add entry
6735         for `set-file-times'.  Rename `start-process' into
6736         `start-file-process'.  Remove `call-process' entry.
6737         (tramp-fish-handle-set-file-times): New defun.
6738         (tramp-fish-handle-executable-find): Use `process-file'.
6739         (tramp-fish-handle-process-file): New defun.  Replaces
6740         `tramp-fish-handle-call-process'.
6741         (tramp-fish-do-copy-or-rename-file-directly): Use
6742         `set-file-times'.
6743         (tramp-fish-get-file-entries): Change `tramp-get-inode' parameter.
6744
6745         * tramp-smb.el (tramp-smb-handle-file-attributes): Change
6746         `tramp-get-inode' parameter.
6747
6748         * tramp-util.el (all): Change all checks to (fboundp
6749         'start-file-process).
6750         (set-file-times): Add a defalias if function does not exist.
6751
6752 2007-07-15  Michael Albinus  <michael.albinus@gmx.de>
6753
6754         * tramp.el (tramp-methods, tramp-find-shell)
6755         (tramp-open-connection-setup-interactive-shell)
6756         (tramp-maybe-open-connection): Guard against $PROMPT_COMMAND shell
6757         var.  Reported by Steve Youngs <steve@sxemacs.org>.
6758         (tramp-handle-start-file-process ): Use (current-buffer) if BUFFER
6759         is NIL.  This is according to the specification.  Goto (point-max)
6760         when ready.
6761         (tramp-handle-shell-command): Rewrite completely, using
6762         `process-file' and `start-file-process'.
6763         (tramp-touch): Don't use variable expansion when calling
6764         `shell-command'.
6765
6766 2007-07-08  Michael Albinus  <michael.albinus@gmx.de>
6767
6768         * tramp.el (tramp-handle-file-remote-p): Handle optional parameter
6769         CONNECTED.
6770
6771         * tramp-util.el (tramp-advice-file-remote-p): Handle optional
6772         parameter CONNECTED.
6773         (all): Use `unhandled-file-name-directory' where appropriate.
6774
6775 2007-07-07  Michael Albinus  <michael.albinus@gmx.de>
6776
6777         * Makefile.in (EMACS_UTILS): New variable.
6778         (LISP_FILES): Add tramp-util.el and tramp-vc.el depending on
6779         $EMACS_UTILS.
6780
6781 2007-07-01  Michael Albinus  <michael.albinus@gmx.de>
6782
6783         * Makefile.in:
6784         * tramp-cache.el:
6785         * tramp-efs.el:
6786         * tramp-fish.el:
6787         * tramp-ftp.el:
6788         * tramp-gw.el:
6789         * tramp-uu.el:
6790         * tramp-vc.el:
6791         * trampver.el.in: Migrate to GPLv3 license.
6792
6793         * tramp.el: Migrate to GPLv3 license.  Don't require base64.el.
6794         Require tramp-util.el and tramp-vc only if `start-file-process' is
6795         not fbound.
6796         (tramp-md5-function): Removed. Call `md5' directly.
6797         (tramp-file-name-handler-alist): Add `start-file-process'.  Remove
6798         `start-process' and `call-process'.
6799         (tramp-handle-start-file-process): Renamed from
6800         `tramp-handle-start-process'.
6801         (tramp-handle-process-file): Implementation taken from
6802         `tramp-handle-call-process'.
6803         (tramp-handle-call-process): Removed.
6804         (tramp-file-name-for-operation): Add `start-file-process'.
6805         (tramp-open-connection-setup-interactive-shell): Don't set
6806         "last-cmd-time" property.
6807
6808         * tramp-smb.el: Migrate to GPLv3 license.
6809         (tramp-smb-errors): Add error message for connection timeout.
6810         (tramp-smb-maybe-open-connection): Check for error messages.
6811
6812         * tramp-util.el: Migrate to GPLv3 license.
6813         (tramp-advice-start-process): Call `tramp-handle-start-file-process'.
6814
6815 2007-06-20  Michael Albinus  <michael.albinus@gmx.de>
6816
6817         * tramp.el:
6818         * tramp-cache.el:
6819         * tramp-fish.el:
6820         * tramp-smb.el:
6821         * tramp-util.el: Use `expand-file-name' instead of `concat' where
6822         appropriate.
6823
6824         * tramp.el (tramp-action-yesno, tramp-action-yn): Protect
6825         `pop-to-buffer' by `save-match-data'.
6826
6827 2007-06-17  Michael Albinus  <michael.albinus@gmx.de>
6828
6829         * tramp.el:
6830         * tramp-fish.el:
6831         * tramp-smb.el: Unify "Tramp" in strings.
6832
6833         * tramp.el (tramp-handle-substitute-in-file-name): "//" and "/~"
6834         substitute only in the local filename part.  Suggested by Peter
6835         Gordon <peter@pg-consultants.com>.
6836         (tramp-advice-minibuffer-electric-separator)
6837         (tramp-advice-minibuffer-electric-tilde): New defadvices.
6838         (tramp-append-tramp-buffers): Replace "sensible" by "sensitive" in
6839         the hint.
6840
6841 2007-06-10  Michael Albinus  <michael.albinus@gmx.de>
6842
6843         * tramp.el (tramp-handle-insert-file-contents): VISIT must be
6844         handled after insertion of the local copy.  Reported by Peter
6845         Gordon <peter@pg-consultants.com>.
6846
6847 2007-05-31  Michael Albinus  <michael.albinus@gmx.de>
6848
6849         * tramp-cache.el (tramp-persistency-file-name): Check also for
6850         `user-emacs-directory' and `user-init-directory'.
6851
6852         * tramp-gw.el (tramp-gw-open-connection): Apply `vector' instead
6853         of `make-tramp-file-name'.
6854
6855         * tramp-util.el (all): Quote the function names in
6856         `tramp-util-unload-hook' if they aren't symbols yet.
6857         (tramp-advice-before-ediff-exec-process): New defadvice.
6858
6859 2007-05-27  Michael Albinus  <michael.albinus@gmx.de>
6860
6861         * tramp.el:
6862         * tramp-ftp.el:
6863         * tramp-smb.el:
6864         * tramp-util.el:
6865         * tramp-vc.el:
6866         Don't load cl.el, because that pollutes the namespace.  Replace cl
6867         macros by their implementations where necessary.  Requested by
6868         Richard Stallman <rms@gnu.org>.
6869
6870         * tramp.el (tramp-file-name-p, tramp-file-name-method)
6871         (tramp-file-name-user, tramp-file-name-host)
6872         (tramp-file-name-localname): New defuns, replacing defstruct
6873         `tramp-file-name'.
6874         (tramp-completion-dissect-file-name1, tramp-compute-multi-hops)
6875         (tramp-dissect-file-name): Apply `vector' instead of
6876         `make-tramp-file-name'.
6877         (tramp-do-copy-or-rename-file-out-of-band): Aset 3rd index instead
6878         of 4th when setting localname.
6879         (tramp-compute-multi-hops): Aset 2nd index instead of 3rd, when
6880         setting host.
6881
6882         * tramp-cache.el (all): Aset 3rd index instead of 4th, when
6883         unifying localname.
6884
6885 2007-05-22  Michael Albinus  <michael.albinus@gmx.de>
6886
6887         * tramp.el (tramp-handle-expand-file-name):
6888         * tramp-fish.el (tramp-fish-handle-expand-file-name):
6889         Key for home directory cache entry must distinguish different
6890         users.  Reported by Gilles Pion <gpion@lfdj.com>.
6891
6892 2007-04-23  Michael Albinus  <michael.albinus@gmx.de>
6893
6894         * tramp.el: New todo items.
6895         (tramp-default-user): Mark the variable as obsolete in the docstring.
6896
6897 2007-04-22  Michael Albinus  <michael.albinus@gmx.de>
6898
6899         * tramp.el (tramp-methods): "plinkx" loads a session.  No default
6900         port.
6901         (tramp-default-user-alist): No default user for "plinkx".
6902         (tramp-completion-function-alist-putty): New defconst.
6903         (tramp-completion-function-alist): Add "plinkx" completion.
6904         (tramp-set-completion-function): Handle also registry keys.
6905         (tramp-parse-putty, tramp-parse-putty-group): New defuns.
6906         (tramp-action-login): Trace login prompt.
6907
6908 2007-04-19  Michael Albinus  <michael.albinus@gmx.de>
6909
6910         * tramp.el (tramp-methods): New method "plinkx".
6911         (tramp-default-user-alist): Add default user for "plink" methods.
6912         (tramp-action-login): Read user name interactively when nil.
6913
6914 2007-04-15  Pete Forman  <pete.forman@westerngeco.com>  (tiny change)
6915
6916         * tramp.el (tramp-default-user): Fix typo in docstring.  Value can
6917         also be nil.
6918
6919 2007-04-12  Michael Albinus  <michael.albinus@gmx.de>
6920
6921         * tramp.el (top): Make `set-buffer-multibyte' an alias if it
6922         doesn't exist.
6923         (tramp-handle-directory-files-and-attributes-with-stat)
6924         (tramp-handle-file-attributes-with-stat): Return inode as real
6925         number.
6926         (tramp-convert-file-attributes): Convert inode into a list of two
6927         integers.
6928
6929         Reported by Pete Forman <pete.forman@westerngeco.com>.
6930
6931 2007-04-08  Michael Albinus  <michael.albinus@gmx.de>
6932
6933         Version 2.1.9 released.
6934
6935         * tramp.el (tramp-buffer-name, tramp-debug-buffer-name): We must
6936         use `tramp-file-name-real-host', because for gateway methods the
6937         default port will be expanded later on, which would tamper the
6938         name.
6939         (tramp-completion-mode): `last-input-event' is nil when XEmacs is
6940         started.
6941
6942 2007-04-06  Michael Albinus  <michael.albinus@gmx.de>
6943
6944         * tramp.el (tramp-compute-multi-hops): Fix error in setting hop.
6945
6946 2007-04-03  Michael Albinus  <michael.albinus@gmx.de>
6947
6948         * tramp.el (tramp-message): Don't print "Error" in level 1, this
6949         is part of the message already.
6950         (tramp-error-with-buffer, tramp-action-yesno, tramp-action-yn):
6951         Let `enable-recursive-minibuffers' be t, in case we need
6952         `pop-to-buffer' during editing of the minibuffer.
6953         (tramp-barf-if-no-shell-prompt): Apply `tramp-error-with-buffer'.
6954
6955 2007-03-31  Michael Albinus  <michael.albinus@gmx.de>
6956
6957         * tramp.el (top): Don't require 'tramp-cache, it results in an
6958         endless loop.  Autoload needed functions instead.  Declare
6959         needed gateway symbols when tramp-gw cannot be loaded.
6960         (with-parsed-tramp-file-name): Simplify `edebug-form-spec'.
6961         (with-file-property, with-connection-property): New defmacros,
6962         moved from tramp-cache.  This was necessary, because macros cannot
6963         be autoloaded.
6964         (tramp-register-file-name-handler)
6965         (tramp-register-completion-file-name-handler): New defsubst,
6966         derived from `tramp-register-file-name-handlers'.  The split is
6967         necessary because Tramp's file name handlers must be registered at
6968         different startup places.
6969
6970         * tramp-cache.el (with-file-property, with-connection-property):
6971         Move them to tramp.el.
6972
6973 2007-03-31  Joachim Schrod  <jschrod@acm.org>  (tiny change)
6974
6975         * tramp.el (tramp-completion-mode): `last-input-event' may have no
6976         character approximation.
6977
6978 2007-03-26  Michael Albinus  <michael.albinus@gmx.de>
6979
6980         * tramp.el (tramp-handle-expand-file-name): Don't apply
6981         `tramp-drop-volume-letter' for non-Tramp files.
6982
6983 2007-03-25  Michael Albinus  <michael.albinus@gmx.de>
6984
6985         * Makefile.in: Add gateway support.
6986
6987         * tramp.el (top): Require tramp-gw conditionally only.
6988         (tramp-methods): Add port spec to "plink", "plink1" and "pscp"
6989         methods.
6990
6991 2007-03-21  Michael Albinus  <michael.albinus@gmx.de>
6992
6993         * tramp.el (tramp-handle-make-auto-save-file-name): Apply
6994         `tramp-temporary-file-directory' for compatibility reasons.
6995
6996 2007-03-19  Michael Albinus  <michael.albinus@gmx.de>
6997
6998         * tramp.el (tramp-handle-directory-files-and-attributes-with-stat)
6999         (tramp-handle-file-name-all-completions): Add "-b" to the "ls"
7000         command in order to handle file names with spaces.
7001
7002 2007-03-08  Michael Albinus  <michael.albinus@gmx.de>
7003
7004         * tramp.el (tramp-methods): Extend doc string by description of
7005         `tramp-default-port' and `tramp-gw-args'.
7006         (tramp-enter-password): Remove `inhibit-trace'.  It is handled by
7007         description in the manual now.
7008         (tramp-maybe-open-connection): Fix small error in gateway handling.
7009
7010 2007-03-07  Michael Albinus  <michael.albinus@gmx.de>
7011
7012         * tramp.el (tramp-methods): Add port spec to "telnet" method.
7013         (tramp-do-copy-or-rename-file-out-of-band): Complete gateway
7014         implementation.
7015         (tramp-handle-insert-directory): Check (featurep 'ls-lisp).
7016         (tramp-make-tramp-temp-file): Use `emacs-pid' if there is no
7017         running process yet.
7018         (tramp-compute-multi-hops): New defun.  Code extracted from
7019         `tramp-maybe-open-connection'.
7020         (tramp-maybe-open-connection): Code adapted accordingly.
7021
7022         * tramp-gw.el (tramp-gw-gw-proc-sentinel): Companion process might
7023         not exist.
7024         (tramp-gw-open-network-stream, tramp-gw-basic-authentication):
7025         Clean password cache in error case only.
7026
7027 2007-03-05  Michael Albinus  <michael.albinus@gmx.de>
7028
7029         * tramp.el (tramp-methods): Add gateway parameter to "scp",
7030         "scp1", "scp2", "scpc", "scpx", "sshx".
7031         (tramp-do-copy-or-rename-file-out-of-band): Start implementation
7032         for gateways.  It is not finished yet.
7033         (tramp-make-copy-program-file-name): Change parameter to VEC.
7034         (tramp-make-temp-file): New parameter FILENAME.  Append its
7035         extension to the resulting temporary file name.
7036         (tramp-handle-file-local-copy, tramp-handle-write-region): Apply
7037         it.
7038
7039         * tramp-smb.el (tramp-smb-handle-file-local-copy)
7040         (tramp-smb-handle-write-region): Apply it.
7041
7042         * tramp-fish.el (tramp-fish-handle-file-local-copy): Apply it.
7043
7044 2007-02-28  Michael Albinus  <michael.albinus@gmx.de>
7045
7046         * tramp.el (tramp-error-with-buffer): Use `sit-for'.
7047
7048         * tramp-gw.el (tramp-gw-vector, tramp-gw-gw-proc): Renamed from
7049         `tramp-gw-current-vector' and `tramp-gw-current-gw-proc'.
7050         (tramp-gw-gw-vector): New defvar.
7051         (tramp-gw-gw-proc-sentinel): New defun.
7052         (tramp-gw-open-connection): Use an independent buffer name for
7053         auxiliary process.  Set process sentinel for `tramp-gw-gw-proc'.
7054
7055 2007-02-27  Michael Albinus  <michael.albinus@gmx.de>
7056
7057         * tramp.el (tramp-error-with-buffer): New defsubst.  Apply it
7058         wherever there is `pop-to-buffer', followed by `tramp-error'.
7059         (tramp-maybe-open-connection): Rename `tramp-gw-http-method' to
7060         `tramp-gw-tunnel-method'.
7061
7062         * tramp-gw.el (tramp-gw-tunnel-method)
7063         (tramp-gw-default-tunnel-port): Renamed from
7064         `tramp-gw-http-method' and `tramp-gw-default-http-port',
7065         respectively.  Apply it everywhere.
7066         (tramp-gw-open-connection): Improve doc-string.  Use only type 5
7067         for `socks-server', we have our own 'http implementation.
7068         (tramp-gw-open-network-stream): Improve error handling.
7069         (tramp-gw-basic-authentication): Bind `tramp-current-*' locally
7070         because of password cache key.
7071
7072 2007-02-26  Michael Albinus  <michael.albinus@gmx.de>
7073
7074         * tramp.el (tramp-methods): Add "StrictHostKeyChecking=no" to
7075         `tramp-gw-args' of ssh, ssh1 and ssh2 methods.
7076         (tramp-maybe-open-connection): Implement changed interface of
7077         `tramp-gw-open-connection'.
7078         (tramp-send-eof): Removed.
7079         (tramp-file-name-real-host, tramp-file-name-port): New defsubst.
7080         (tramp-read-passwd): New parameter PROMPT.
7081
7082         * tramp-gw.el: Complete rewrite.  Use socks.el for SOCKS server;
7083         implement HTTP tunnels on its own.
7084
7085 2007-02-15  Michael Albinus  <michael.albinus@gmx.de>
7086
7087         * tramp-gw.el (tramp-gw-current-gw-vector)
7088         (tramp-gw-current-http-buffer): New defvars.
7089         (tramp-advice-url-http-parse-response)
7090         (tramp-advice-url-http-create-request, tramp-gw-aux-proc-sentinel)
7091         (tramp-gw-open-connection): Make them fit for proxy authentication.
7092
7093 2007-02-14  Michael Albinus  <michael.albinus@gmx.de>
7094
7095         * Makefile.in: Add tramp-gw.el
7096
7097         * tramp-gw.el: New package.
7098
7099         * tramp.el (top): Require tramp-gw.
7100         (tramp-methods): Add `tramp-gw-args' and `tramp-default-port' for
7101         ssh and telnet methods.
7102         (tramp-message): Catch errors.
7103         (tramp-action-yesno, tramp-action-yn): Trace messages.
7104         (tramp-maybe-open-connection): Handle gateways.
7105         (tramp-read-passwd): New parameter PROC. Used in order to improve
7106         password prompt. Adapt callees.
7107
7108 2007-02-01  Michael Albinus  <michael.albinus@gmx.de>
7109
7110         * tramp-cache.el (tramp-flush-file-function): Renamed from
7111         `tramp-cache-before-revert-function'.  Added to
7112         `kill-buffer-hook'.
7113
7114 2007-01-31  Michael Albinus  <michael.albinus@gmx.de>
7115
7116         * tramp-smb.el (tramp-smb-handle-insert-directory)
7117         * tramp.el (tramp-handle-insert-directory): Fix wildcard case.
7118
7119 2007-01-28  Michael Albinus  <michael.albinus@gmx.de>
7120
7121         * tramp-util.el (top): Add defadvices for `browse-url-*'.
7122
7123 2007-01-21  Glenn Morris  <rgm@gnu.org>
7124
7125         * tramp.el (tramp-perl-encode, tramp-perl-decode):
7126         Update copyrights.
7127
7128 2007-01-18  Michael Albinus  <michael.albinus@gmx.de>
7129
7130         * tramp.el (with-parsed-tramp-file-name): Protect debug spec
7131         during compilation.
7132         (tramp-handle-expand-file-name, tramp-find-method)
7133         (tramp-find-user, tramp-find-host): Don't check for
7134         `tramp-completion-mode'.
7135         (tramp-find-foreign-file-name-handler): Check also for
7136         `tramp-completion-mode' and `tramp-completion-file-name-regexp'.
7137         (tramp-completion-mode): Variable removed.  Also all occurencies.
7138         (tramp-completion-handle-file-name-all-completions): Don't call
7139         `tramp-run-real-handler'.
7140         (tramp-make-tramp-file-name): It must return always a well-formed
7141         Tramp file name.
7142         (tramp-completion-make-tramp-file-name): New defun.
7143         (tramp-get-completion-methods, tramp-get-completion-user-host):
7144         Apply it.
7145
7146 2007-01-15  Michael Albinus  <michael.albinus@gmx.de>
7147
7148         * tramp.el (tramp-handle-start-process): BUFFER can be nil.
7149
7150         * tramp-util.el (top): Add defadvice for `ispell-start-process'.
7151
7152 2007-01-14  Michael Albinus  <michael.albinus@gmx.de>
7153
7154         Version 2.1.8 released.
7155
7156 2007-01-13  Michael Albinus  <michael.albinus@gmx.de>
7157
7158         * tramp.el (top): Change declaration of `with-temp-message' if it
7159         doesn't exist.
7160         (tramp-buffer-name, tramp-debug-buffer-name)
7161         (tramp-make-tramp-file-name, tramp-make-copy-program-file-name):
7162         Check also for empty USER.
7163
7164         * tramp-smb.el (tramp-smb-actions-with-share):
7165         (tramp-smb-actions-without-share): New defconst.
7166         (tramp-smb-open-connection): Removed.  Code merged into
7167         `tramp-smb-maybe-open-connection'.  Use new defconst.
7168
7169 2007-01-12  Michael Albinus  <michael.albinus@gmx.de>
7170
7171         * tramp.el (top): Declare `with-temp-message' if it doesn't exist.
7172
7173 2007-01-11  Michael Albinus  <michael.albinus@gmx.de>
7174
7175         * tramp.el (tramp-actions-copy-out-of-band):
7176         `tramp-copy-failed-regexp' calls `tramp-action-permission-denied'.
7177         (tramp-handle-file-local-copy): Set `enable-multibyte-characters'
7178         to nil.  Reported by Chris Moore <christopher.ian.moore@gmail.com>.
7179         (tramp-handle-write-region): Compute file size as difference
7180         between END and START.
7181         (tramp-touch): In case of 'tramp-sh-file-name-handler, apply
7182         `tramp-send-command', which is more efficient.  Check, whether
7183         `format-time-string' is a primitive.
7184         (tramp-action-permission-denied, tramp-action-process-alive):
7185         Don't apply `pop-to-buffer', this is done centrally.
7186         (tramp-action-copy-failed): Removed, not needed anymore.
7187         (tramp-get-remote-stat): Hide temporary error message.
7188
7189 2007-01-10  Michael Albinus  <michael.albinus@gmx.de>
7190
7191         * tramp.el (tramp-maybe-open-connection): The sent command must
7192         ensure that the process terminates, finally.  Write the command
7193         compatible for shells and w32 COMSPEC.
7194
7195 2007-01-02  Michael Albinus  <michael.albinus@gmx.de>
7196
7197         * tramp-fish.el (tramp-fish-handle-write-region): Implement APPEND.
7198         (tramp-fish-handle-rename-file)
7199         (tramp-fish-handle-copy-file): Error handling is not necessary here,
7200         will be done centrally.  Apply `tramp-fish-do-copy-or-rename-file'.
7201         (tramp-fish-do-copy-or-rename-file)
7202         (tramp-fish-do-copy-or-rename-file-directly): New defuns.
7203
7204 2006-12-31  Michael Albinus  <michael.albinus@gmx.de>
7205
7206         * tramp.el (tramp-completion-mode): Use `natnump' instead of
7207         `wholenump' because of XEmacs.
7208
7209 2006-12-30  Michael Albinus  <michael.albinus@gmx.de>
7210
7211         * tramp.el (tramp-file-name-handler-alist): Add handler for
7212         `shell-command'.
7213         (tramp-handle-shell-command): New defun.
7214         (tramp-touch): Don't bind `shell-file-name' locally.
7215
7216         * tramp-fish.el (tramp-fish-file-name-handler-alist): Add handler
7217         for `shell-command'.
7218
7219         * tramp-util.el (tramp-advice-start-process-shell-command)
7220         (tramp-advice-call-process-shell-command): Bind
7221         `shell-command-switch' locally.
7222
7223 2006-12-29  Michael Albinus  <michael.albinus@gmx.de>
7224
7225         * tramp.el (tramp-handle-call-process-region): New defun.
7226         (tramp-touch): Use `shell-command' instead of `call-process', in
7227         order to make it usable also for the `fish' method.
7228
7229         * tramp-fish.el (tramp-fish-handle-insert-file-contents): Move
7230         point to the initial place after insertion.
7231         (tramp-fish-handle-write-region): Don't send zero length data.
7232
7233         * tramp-util.el (tramp-advice-call-process-region): New defadvice.
7234
7235 2006-12-27  Michael Albinus  <michael.albinus@gmx.de>
7236
7237         * Makefile.in: Add tramp-fish.el
7238
7239         * tramp-fish.el: New package.
7240
7241         * tramp.el (top): Require tramp-fish.
7242         (tramp-inodes): New defvar.
7243         (tramp-handle-expand-file-name): Cache "home-directory".
7244         (tramp-get-inode): New defun.
7245
7246         * tramp-smb.el (tramp-smb-no-stat, tramp-smb-inodes)
7247         (tramp-smb-get-inode): Removed.  Apply new names.
7248
7249         * tramp-util.el (tramp-advice-executable-find): Add check for
7250         `tramp-fish-file-name-handler'.
7251
7252 2006-12-26  Michael Albinus  <michael.albinus@gmx.de>
7253
7254         * tramp.el (tramp-action-process-alive)
7255         (tramp-wait-for-regexp): Pop connection buffer in case of error.
7256         (tramp-exists-file-name-handler): Handle also `default-directory'.
7257         (tramp-half-a-year, tramp-parse-time-months): New defconst.
7258         Transferred from tramp-smb.el.
7259         (tramp-time-less-p, tramp-time-subtract): New defuns.  Transferred
7260         from tramp-smb.el.
7261         (tramp-time-diff): Use them.
7262
7263         * tramp-smb.el (tramp-smb-half-a-year)
7264         (tramp-smb-parse-time-months, tramp-smb-time-less-p)
7265         (tramp-smb-time-subtract): Removed.  Apply new names.
7266
7267         * tramp-util.el (top): Don't check for file name handlers of
7268         `start-process-shell-command' and `call-process-shell-command'.
7269
7270 2006-12-21  Michael Albinus  <michael.albinus@gmx.de>
7271
7272         * tramp.el (tramp-completion-mode): Use `wholenump' instead of
7273         `integerp'.  `char-equal' could fail else in case of negative
7274         numbers.  Reported by Toby Speight <T.M.Speight.90@cantab.net>.
7275
7276 2006-12-20  Michael Albinus  <michael.albinus@gmx.de>
7277
7278         * tramp.el (tramp-handle-file-name-completion)
7279         (tramp-completion-handle-file-name-completion): PREDICATE must be
7280         applied on the expanded car's in `try-completion'.
7281
7282 2006-12-20  Michael Albinus  <michael.albinus@gmx.de>
7283
7284         * tramp.el (tramp-handle-file-name-completion)
7285         (tramp-completion-handle-file-name-completion): Handle optional
7286         parameter PREDICATE.
7287
7288 2006-12-19  Michael Albinus  <michael.albinus@gmx.de>
7289
7290         * tramp.el (tramp-methods): Introduce new method `scpc'.  Remove
7291         "ControlMaster" option from the other `scp*' methods.
7292         (tramp-default-method): Check for ssh-agent before setting to
7293         `scp'.
7294         (top): Check for `font-lock-add-keywords' before calling; it
7295         doesn't exist under XEmacs.
7296
7297 2006-12-17  Michael Albinus  <michael.albinus@gmx.de>
7298
7299         * tramp.el (tramp-default-method): Before setting to "pscp", check
7300         whether package password.el is loaded, or Pageant is running.
7301
7302         * tramp-smb.el (tramp-smb-errors): Add error messages.
7303
7304 2006-12-14  Michael Albinus  <michael.albinus@gmx.de>
7305
7306         * tramp-smb.el (tramp-smb-handle-delete-directory)
7307         (tramp-smb-handle-delete-file): Write a more comprehensive error
7308         message.  Suggested by Tom Wurgler <twurgl@goodyear.com>.
7309
7310 2006-12-13  Michael Albinus  <michael.albinus@gmx.de>
7311
7312         * tramp-smb.el (tramp-smb-errors): Add error messages.
7313         (tramp-smb-handle-directory-files): Fix check for MATCH.
7314
7315 2006-12-11  Michael Albinus  <michael.albinus@gmx.de>
7316
7317         * tramp-smb.el (tramp-smb-get-file-entries):
7318         `tramp-smb-maybe-open-connection' must still be called when share
7319         is nil.
7320
7321 2006-12-10  Michael Albinus  <michael.albinus@gmx.de>
7322
7323         * tramp.el (tramp-password-prompt-regexp): "Passphrase" is used
7324         with capital first letter by PuTTY.
7325         (tramp-message): Add message to debug buffer only when process
7326         buffer is not killed.  Otherwise, debug buffer name cannot be
7327         determined.
7328         (tramp-accept-process-output): Under Win32,
7329         `accept-process-output' doesn't return sometimes.  So we add an
7330         additional timeout around.
7331
7332         * tramp-smb.el (tramp-smb-send-command ): This is the only place
7333         to call `tramp-smb-maybe-open-connection'.  Remove all other
7334         calls.
7335         (tramp-smb-maybe-open-connection): SHARE isn't needed as
7336         parameter.  We compute it ourselves.
7337         (tramp-smb-open-connection): Set `process-connection-type', which
7338         was done in `tramp-smb-maybe-open-connection' before.  Pop up
7339         connection buffer when there are problems.
7340
7341 2006-12-09  Michael Albinus  <michael.albinus@gmx.de>
7342
7343         * tramp.el (tramp-enter-password): Inhibit function call traces in
7344         order to avoid passwords to be included there.
7345
7346         * tramp-smb.el (tramp-smb-errors): Add error messages.
7347         (tramp-smb-handle-make-directory-internal): Local file names shall
7348         carry "\\" instead of "/".  Reported by Tom Wurgler
7349         <twurgl@goodyear.com>.
7350
7351 2006-12-03  Michael Albinus  <michael.albinus@gmx.de>
7352
7353         * tramp-cache.el (tramp-flush-directory-property): Check whether
7354         KEY is a string.
7355         (tramp-flush-connection-property): Work with a copy of the key in
7356         order to avoid side effects.
7357
7358         * tramp-smb.el (tramp-smb-handle-insert-directory): Handle
7359         WILDCARD and FULL-DIRECTORY-P.
7360         (tramp-smb-handle-make-directory-internal): Flush also directory,
7361         because `file-attributes' is computed from its entries.
7362         (tramp-smb-get-file-entries): Parameter is a DIRECTORY.
7363
7364 2006-12-01  Michael Albinus  <michael.albinus@gmx.de>
7365
7366         * tramp.el (tramp-handle-write-region): Erase buffer before
7367         applying cksum.
7368         (tramp-set-remote-path): Apply `tramp-split-string' instead of
7369         `split-string', because Emacs 21 doesn't support OMIT-NULLS
7370         parameter.
7371
7372 2006-11-30  Michael Albinus  <michael.albinus@gmx.de>
7373
7374         * tramp-cache.el (tramp-get-file-property)
7375         (tramp-set-file-property, tramp-flush-file-property): Work with a
7376         copy of the vector in order to avoid side effects.
7377
7378         * tramp-smb.el (tramp-smb-errors): Add error message from Windows
7379         Server 2003.
7380         (tramp-smb-not-handled): Removed, replaced by `ignore'.
7381         (tramp-smb-handle-copy-file, tramp-smb-handle-delete-directory)
7382         (tramp-smb-handle-delete-file, tramp-smb-handle-rename-file)
7383         (tramp-smb-handle-write-region): Flush also directory, because
7384         `file-attributes' is computed from its entries.
7385         (tramp-smb-file-name-handler, tramp-smb-handle-file-attributes)
7386         (tramp-smb-handle-file-directory-p)
7387         (tramp-smb-handle-file-exists-p)
7388         (tramp-smb-handle-file-name-all-completions)
7389         (tramp-smb-handle-file-writable-p)
7390         (tramp-smb-handle-insert-directory, tramp-smb-get-file-entries)
7391         (tramp-smb-get-inode): Simplify implementation.
7392         (tramp-smb-open-connection): Add parameter "-s /dev/null".
7393
7394 2006-11-28  Michael Albinus  <michael.albinus@gmx.de>
7395
7396         * tramp-smb.el (tramp-smb-errors): Add error message from Windows
7397         Server 2003.
7398         (tramp-smb-no-stat): New constant.  Will be used later on for
7399         implementation of the stat command.
7400         (tramp-smb-open-connection): Revert change from 2006-11-23.
7401         Quoting arguments is not needed, moreover it even breaks the
7402         command.
7403         (tramp-smb-wait-for-output): Read pending output.
7404
7405 2006-11-27  Michael Albinus  <michael.albinus@gmx.de>
7406
7407         * tramp-smb.el (tramp-smb-maybe-open-connection): Erase always
7408         the connection buffer.
7409
7410 2006-11-24  Lars Hansen  <larsh@soem.dk>
7411
7412         * tramp.el (tramp-default-method): Under Windows, change from
7413         plink to pscp.
7414         (tramp-copy-failed-regexp, tramp-action-copy-failed): Add.
7415         (tramp-actions-copy-out-of-band):
7416         Add pair (tramp-copy-failed-regexp tramp-action-copy-failed).
7417         (tramp-action-out-of-band): Move "Permission denied" handling to
7418         tramp-action-copy-failed.
7419
7420 2006-11-24  Michael Albinus  <michael.albinus@gmx.de>
7421
7422         * tramp.el (tramp-yn-prompt-regexp): Fix regexp.
7423
7424 2006-11-23  Michael Albinus  <michael.albinus@gmx.de>
7425
7426         * tramp-smb.el (tramp-smb-read-file-entry): Share names can
7427         contain spaces.
7428         (tramp-smb-open-connection): Quote arguments.
7429
7430 2006-11-21  Michael Albinus  <michael.albinus@gmx.de>
7431
7432         * tramp.el (tramp-set-remote-path): `tramp-default-remote-path'
7433         contains a trailing ":" under FreeBSD.
7434
7435 2006-11-20  Michael Albinus  <michael.albinus@gmx.de>
7436
7437         * tramp-cache.el (tramp-get-connection-property)
7438         (tramp-set-connection-property): Work with a copy of the vector in
7439         order to avoid side effects.
7440
7441         * tramp-smb.el (tramp-smb-maybe-open-connection): Erase the buffer
7442         when the process is killed, because it is reused.
7443
7444 2006-11-07  Michael Albinus  <michael.albinus@gmx.de>
7445
7446         * tramp.el (tramp-copy-size-limit): New defcustom.
7447         (tramp-methods): Add "ControlPath" and "ControlMaster" to scp,
7448         scp1 and scp2 methods.  Suggested by Andreas Schwab
7449         <schwab@suse.de>.
7450         Fix error in `tramp-login-args' of psftp.
7451         Rearrange entries for better readability.
7452         Change syntax of `tramp-copy-args' to that of `tramp-login-args'.
7453         Rename `tramp-copy-keep-date-arg' to `tramp-copy-keep-date', and
7454         change meaning.  Describe "%t" and "%k" in the doc string.
7455         (tramp-default-method): scp is the default method.
7456         (tramp-do-copy-or-rename-file, tramp-handle-file-local-copy)
7457         (tramp-handle-write-region): Check for `tramp-copy-size-limit'.
7458         (tramp-do-copy-or-rename-file-out-of-band): Simplify
7459         implementation.
7460         (tramp-maybe-open-connection): Compute format spec only once.
7461
7462 2006-11-05  Lars Hansen  <larsh@soem.dk>
7463
7464         * tramp.el (with-parsed-tramp-file-name): Correct debug spec.
7465         Highlight as keyword.
7466         (tramp-do-copy-or-rename-file): Correct data for
7467         'file-already-exists.
7468         (tramp-touch): Quote file name.
7469
7470 2006-10-25  Michael Albinus  <michael.albinus@gmx.de>
7471
7472         * tramp.el (tramp-yn-prompt-regexp): Add question from plink.
7473         (tramp-message): Reduce messages in minibuffer.
7474         (tramp-handle-call-process): Fix error in error handling.
7475         (tramp-touch): UTC handling is not possible for XEmacs.
7476
7477         * tramp-cache.el (top): Don't autoload macro
7478         `with-parsed-tramp-file-name' but function
7479         `tramp-dissect-file-name'.
7480         (tramp-cache-before-revert-function): Change implementation
7481         accordingly.  Reported by Jonathan Hankins
7482         <jonathan-hankins@mindspring.com>.
7483
7484         * tramp-util.el (tramp-advice-executable-find): Check for
7485         `load-in-progress)'.
7486         (tramp-advice-call-process): Add check for
7487         `tramp-fish-file-name-handler'.
7488         (tramp-grep-setup, tramp-gud-setup, tramp-ediff-setup): Remove
7489         functions, and call defadvices directly. There is no need for
7490         `eval-after-load'.
7491         (top): Add defadvices for `gnus-1', `jka-compr-call-process' and
7492         `jka-compr-partial-uncompress'.
7493
7494 2006-09-08  Gilles Pion <gpion@lfdj.com>  (tiny change)
7495
7496         * tramp.el (tramp-open-connection-setup-interactive-shell):
7497         Simplify command checking the uname of the remote host.
7498
7499 2006-09-03  Michael Albinus  <michael.albinus@gmx.de>
7500
7501         Version 2.1.7 released.
7502
7503         * tramp.el (tramp-methods): Precise doc-string for `su' and `sudo'
7504         methods in case of non-local host name.
7505
7506 2006-08-31  Michael Albinus  <michael.albinus@gmx.de>
7507
7508         * tramp.el (tramp-default-proxies-alist): Extend doc string for %h
7509         and %u patterns.
7510         (tramp-wrong-passwd-regexp): Fix strings.
7511         (tramp-maybe-open-connection): Add handling of %h and %u
7512         patterns.  Suggested by Kirk Strauser <kirk@daycos.com>.
7513
7514 2006-08-29  Michael Albinus  <michael.albinus@gmx.de>
7515
7516         * tramp.el (tramp-get-remote-uid, tramp-get-remote-gid): Return -1
7517         when ID-FORMAT is 'integer, and the command doesn't yield an
7518         integer.
7519
7520 2006-08-27  Michael Albinus  <michael.albinus@gmx.de>
7521
7522         * tramp.el (tramp-completion-function-alist-*): Provide the
7523         constants also for the Windows case.
7524         (tramp-completion-file-name-regexp-*): Add the drive letter to the
7525         constants in the Windows case.
7526         (tramp-debug-message): Simplify regexp for function names to be
7527         ignored.
7528         (tramp-handle-expand-file-name): Act also in completion mode.
7529         Apply `tramp-drop-volume-letter' then.
7530         (tramp-file-name-handler): No special handling for
7531         `expand-file-name'.  But for `file-name-as-directory'.
7532         (tramp-completion-handle-file-name-all-completions): Apply
7533         `tramp-drop-volume-letter' where appropriate.
7534         (tramp-parse-*): Set `default-directory' to a local filename, in
7535         order to catch the files to be parsed under Windows.
7536         (tramp-open-connection-setup-interactive-shell): Move
7537         "(with-current-buffer ..." upwards; there was a wrong logic.
7538
7539 2006-08-17  Michael Albinus  <michael.albinus@gmx.de>
7540
7541         * tramp.el (tramp-completion-mode): Remove parameter, it isn't
7542         necessary anymore.  Remove check for `tramp-syntax'.
7543         (tramp-find-method, tramp-find-user, tramp-find-host): Don't
7544         expand to default values when in completion mode.
7545
7546 2006-08-12  Michael Albinus  <michael.albinus@gmx.de>
7547
7548         * tramp.el (tramp-handle-file-attributes-with-ls): Goto buffer
7549         head before reading.  Add also quotes to user and group entries
7550         when not in integer format.
7551
7552         * tramp-cache.el: Tune autoloading of functions from tramp.el.
7553         Wrap it with `eval-when-compile', because this is needed for
7554         compiler pacification only.
7555         (tramp-set-connection-property): Trap error from missing function
7556         `tramp-message' during startup, where we don't miss the debug
7557         messages.
7558
7559 2006-08-08  Peter Wagemans  <P.C.C.Wagemans@kpn.com>  (tiny change)
7560
7561         * tramp.el (tramp-handle-file-attributes-with-stat)
7562         (tramp-handle-directory-files-and-attributes-with-stat): Add
7563         quotes to the user and group elements.
7564
7565 2006-07-18  Michael Albinus  <michael.albinus@gmx.de>
7566
7567         * tramp.el (tramp-find-inline-encoding): `rem-enc' and `rem-dec'
7568         must not be cached as converted to a string.
7569
7570 2006-06-26  Michael Albinus  <michael.albinus@gmx.de>
7571
7572         * tramp.el (tramp-handle-file-local-copy): Don't evaluate
7573         `rem-dec' and `loc-enc'.
7574         (tramp-handle-write-region): Don't evaluate `rem-enc' and
7575         `loc-dec'.
7576         (tramp-find-inline-encoding): Set connection properties directly
7577         via `tramp-set-connection-property'.
7578         (tramp-set-remote-encoding, tramp-set-remote-decoding)
7579         (tramp-set-local-encoding, tramp-set-local-decoding): Removed.
7580         (tramp-get-remote-encoding, tramp-get-remote-decoding): Removed,
7581         replaced by new defun `tramp-get-remote-coding'.
7582         (tramp-get-local-encoding, tramp-get-local-decoding): Removed,
7583         replaced by new defun `tramp-get-local-coding'.
7584
7585 2006-06-25  Michael Albinus  <michael.albinus@gmx.de>
7586
7587         * tramp.el (tramp-unload-tramp): Provide a doc string.
7588
7589 2006-06-15  Katsumi Yamaoka  <yamaoka@jpl.org>  (tiny change)
7590
7591         * tramp.el (tramp-touch): Use UTC to express time.
7592
7593 2006-06-15  Michael Albinus  <michael.albinus@gmx.de>
7594
7595         * tramp.el (top): Require tramp-util also on Windows machines.
7596         (tramp-message): Process buffer might have been killed.
7597
7598 2006-06-04  Michael Albinus  <michael.albinus@gmx.de>
7599
7600         * tramp.el (tramp-process-actions): Pop connection buffer in case
7601         of error.  Modify error message depending on `tramp-action'.
7602
7603         * tramp-cache.el (tramp-persistency-file-name): Default value is
7604         "~/.emacs.d/tramp" or "~/.xemacs/tramp", respectively.  Suggested
7605         by Romain Francoise <romain@orebokech.com>.
7606         (tramp-dump-connection-properties): Suppress error when
7607         `tramp-persistency-file-name' cannot be written.
7608
7609 2006-06-01  Michael Albinus  <michael.albinus@gmx.de>
7610
7611         * tramp.el (tramp-process-one-action): Remove `with-timeout'
7612         clause.
7613         (tramp-process-actions): Add optional TIMEOUT parameter.  If set,
7614         apply it.
7615         (tramp-maybe-open-connection): Call `tramp-process-actions' with a
7616         timeout of 60".
7617
7618 2006-06-01  Matt Swift <swift@alum.mit.edu>  (tiny change)
7619
7620         * tramp.el (tramp-make-copy-program-file-name): Quote LOCALNAME.
7621
7622 2006-05-31  Michael Albinus  <michael.albinus@gmx.de>
7623
7624         * tramp.el (tramp-get-debug-buffer): `outline-mode' must be
7625         protected with a local `default-directory'.
7626
7627         * tramp-cache.el (top): When reading
7628         `tramp-persistency-file-name', discard error messages for
7629         'file-error.
7630
7631 2006-05-28  Michael Albinus  <michael.albinus@gmx.de>
7632
7633         Version 2.1.6 released.
7634
7635         * tramp.el (tramp-wrong-passwd-regexp): Add PuTTY message.
7636         (tramp-register-file-name-handlers): `partial-completion-mode' is
7637         unknown to XEmacs.
7638         (tramp-time-diff): Don't use `floor', it might fail for large
7639         differences.
7640
7641         * tramp-efs.el:
7642         * tramp-ftp.el: Parse "~/.netrc" for completion also under MS
7643         Windows.
7644
7645 2006-05-27  Michael Albinus  <michael.albinus@gmx.de>
7646
7647         * tramp.el (tramp-initial-commands): Removed.
7648         (tramp-remote-process-environment): Add the settings from
7649         `tramp-initial-commands' here.
7650         (tramp-file-name-handler-alist, tramp-file-name-for-operation):
7651         Add `executable-find' entry.
7652         (tramp-message): Apply `save-match-data'.
7653         (tramp-do-copy-or-rename-file-out-of-band): `executable-find' must
7654         be called locally.
7655         (tramp-handle-executable-find): New defun.
7656         (tramp-process-one-action)
7657         (tramp-open-connection-setup-interactive-shell): Remove some
7658         messages.  Send the "unset" commands as one bunch for
7659         optimization.
7660         (tramp-send-command-internal): Remove the MSG parameter.
7661
7662         * tramp-smb.el (tramp-smb-open-connection): `executable-find' must
7663         be called locally.
7664
7665         * tramp-util.el (tramp-advice-executable-find)
7666         (start-process-shell-command)
7667         (tramp-advice-call-process-shell-command): New defadvices.
7668         (tramp-advice-start-process, tramp-advice-call-process): Don't
7669         apply parameter lists explicitly.
7670
7671 2006-05-24  Michael Albinus  <michael.albinus@gmx.de>
7672
7673         * tramp.el (tramp-message): Write into debug buffer only if
7674         `tramp-verbose-level' is greater than or equal to 4.
7675         (tramp-get-completion-function): Add
7676         `tramp-parse-connection-properties'.
7677         (tramp-process-initial-commands, tramp-post-connection): Removed,
7678         also their respective calls..
7679         (tramp-open-connection-setup-interactive-shell) Add code from
7680         `tramp-process-initial-commands' and `tramp-post-connection'.
7681
7682         * tramp-cache.el (tramp-parse-connection-properties): New defun.
7683
7684         * tramp-util.el (tramp-ediff-setup): New defun.
7685
7686 2006-05-22  Michael Albinus  <michael.albinus@gmx.de>
7687
7688         * tramp.el (tramp-error): Don't kill the process.  There are
7689         several cases it doesn't make sense.
7690         (tramp-do-copy-or-rename-file): Flush NEWNAMEs file property.
7691         (tramp-do-copy-or-rename-file-out-of-band): Apply `tramp-error'
7692         when possible.  Make the temporary process more robust.  Use
7693         "process-name" and "process-buffer" properties.
7694         (tramp-handle-start-process): Return the process.
7695         (tramp-completion-handle-file-name-all-completions): Use
7696         `tramp-find-method'.  It was lost some day, don't know how.
7697         (tramp-action-permission-denied, tramp-action-yesno)
7698         (tramp-action-yn, tramp-find-inline-encoding): Apply `kill-process'.
7699         (tramp-append-tramp-buffers): Add a remark about attached buffers.
7700
7701         * tramp-cache.el (tramp-cache-print): Make sure processes and
7702         buffers are dumped as strings.
7703         (tramp-flush-connection-property): Don't send a debug message.
7704         Process and/or buffer might have been killed already.
7705         (tramp-dump-connection-properties): Don't save "process-name" and
7706         "process-buffer" properties.
7707
7708 2006-05-21  Michael Albinus  <michael.albinus@gmx.de>
7709
7710         Major rewrite.  Parameter lists changed from METHOD USER HOST to
7711         VEC.
7712
7713         * tramp.el (tramp-debug-buffer, tramp-buffer-file-attributes)
7714         (tramp-connection-function, tramp-remote-sh, tramp-login-program)
7715         (tramp-login-args, tramp-copy-program, tramp-copy-args)
7716         (tramp-copy-keep-date-arg, tramp-encoding-command)
7717         (tramp-decoding-command, tramp-encoding-function)
7718         (tramp-decoding-function, tramp-password-end-of-line)
7719         (tramp-current-hop-method, tramp-current-hop-user)
7720         (tramp-current-hop-host, tramp-last-cmd-time)
7721         (tramp-message-for-buffer, tramp-trace, tramp-pre-connection)
7722         (tramp-kill-process): Removed.
7723         (tramp-find-method, tramp-find-user, tramp-find-host): Changed to
7724         defsubst.
7725
7726         * tramp-cache (tramp-cache-data): New defvar.  Combines previous
7727         `tramp-file-properties' and `tramp-connection-properties'.
7728         (tramp-cache-setup): Removed.
7729         (tramp-flush-connection-property): New defun.
7730
7731         * tramp-smb.el (tramp-smb-share, tramp-smb-share-cache): Removed.
7732
7733 2006-05-11  Michael Albinus  <michael.albinus@gmx.de>
7734
7735         * tramp.el (all): Apply renamings from tramp-cache.el.
7736         (tramp-handle-start-process, tramp-get-connection-buffer)
7737         (tramp-get-connection-process, tramp-maybe-open-connection):
7738         "process-name" and "process-buffer" are handled as file property,
7739         because they shouldn't be saved in Tramp connection history.
7740         (tramp-maybe-send-script): Dito for "scripts".
7741         (tramp-check-for-regexp, tramp-send-command)
7742         (tramp-send-command-internal): Dito for "check-remote-echo".
7743         (tramp-open-connection-setup-interactive-shell): Move test for
7744         `tramp-chunksize)' down.
7745         (tramp-bug): Add `tramp-file-properties'.
7746         (tramp-append-tramp-buffers): Remove test for cache data.
7747
7748         * tramp-cache.el (tramp-file-properties): Renamed from
7749         `tramp-cache-data'.  It's not buffer local anymore.
7750         (tramp-cache-setup): Reimplementation.
7751         (tramp-get-file-property): Renamed from
7752         `tramp-cache-get-file-property'.  Reimplementation.
7753         (tramp-set-file-property): Renamed from
7754         `tramp-cache-set-file-property'.  Reimplementation.
7755         (tramp-flush-file-property): Renamed from
7756         `tramp-cache-flush-file'.  Reimplementation.
7757         (tramp-flush-directory-property): Renamed from
7758         `tramp-cache-directory-file'.  Reimplementation.
7759         (with-file-property ): Renamed from `with-cache-data'.
7760         Reimplementation.
7761         (tramp-set-connection-property): Remove parameter TRANSIENT.
7762         (tramp-dump-connection-properties): Pretty printing shall work for
7763         other Emacsen too.
7764
7765         * tramp-smb.el (all): Apply renamings from tramp-cache.el.
7766
7767 2006-05-10  Michael Albinus  <michael.albinus@gmx.de>
7768
7769         * tramp.el (all):
7770         * tramp-util.el (all): Adapt all occurencies of
7771         `tramp-set-connection-property' and
7772         `tramp-get-connection-property' according to changed parameter
7773         list.
7774
7775         * tramp-cache.el (tramp-get-connection-property): Reorder
7776         parameter list.
7777         (tramp-set-connection-property): Reorder parameter list.  Add new
7778         parameter TRANSIENT which suppresses saving that property in
7779         persistent connection history.
7780         (with-connection-property): Apply reordered parameter lists.
7781         (tramp-dump-connection-properties): Remove transient entries.
7782
7783 2006-05-09  Michael Albinus  <michael.albinus@gmx.de>
7784
7785         * tramp.el (top): Eval expression for adding tramp-(ftp|efs) to
7786         `tramp-unload-hook'.
7787         (tramp-handle-file-name-all-completions)
7788         (tramp-handle-insert-directory): Remove final "cd".
7789         (tramp-register-file-name-handlers): Enable Tramp completion also
7790         when ido is loaded.
7791         (tramp-post-connection): Don't check for (en|de)coding.  It will
7792         be done on-the-fly.
7793         (tramp-find-inline-encoding): Remove tramp-get-* checks.
7794         (tramp-get-remote-encoding, tramp-get-remote-decoding)
7795         (tramp-get-local-encoding, tramp-get-local-decoding): Add
7796         `tramp-find-inline-encoding'.
7797
7798         * tramp-cache.el (top): Add unload code to
7799         `tramp-cache-unload-hook'.  Remove also
7800         `tramp-dump-connection-properties' from `kill-emacs-hook'.  Remove
7801         "scripts" properties from connection history, they are not
7802         persistent information.
7803
7804 2006-05-08  Michael Albinus  <michael.albinus@gmx.de>
7805
7806         * tramp.el (tramp-buffer-name, tramp-debug-buffer-name): Handle
7807         the case when USER is NIL.  This was lost yesterday.
7808         (tramp-set-remote-path): Save `tramp-default-remote-path' as
7809         connection property.
7810         (all): Remove `save-excursion' inside `with-connection-property'.
7811         Will be handled there.
7812
7813         * tramp-cache.el (tramp-cache-print): Apply `prin1-to-string'.
7814         (with-connection-property): Apply `save-excursion'.
7815         (tramp-dump-connection-properties): Check for empty hash
7816         table. Prettyprint.
7817         (top): Simplify reading from connection history.
7818
7819 2006-05-07  Michael Albinus  <michael.albinus@gmx.de>
7820
7821         * tramp.el (top): cl and custom are always required.
7822         (tramp-verbose): Change description of levels.
7823         (tramp-encoding-reads-stdin, tramp-repair-jka-compr)
7824         (tramp-discard-garbage, tramp-completion-handle-file-exists-p)
7825         (tramp-completion-handle-file-name-directory)
7826         (tramp-completion-handle-file-name-nondirectory)
7827         (tramp-completion-handle-expand-file-name)
7828         (tramp-find-default-method, tramp-find-default-user)
7829         (tramp-find-default-host): Remove them.
7830         (tramp-methods): Change defcustom into defvar.
7831         (tramp-actions-before-shell, tramp-actions-copy-out-of-band):
7832         Change defcustom into defconst.
7833         (tramp-completion-file-name-handler-alist)
7834         (tramp-run-real-handler, tramp-completion-run-real-handler)
7835         (tramp-completion-handle-file-name-all-completions)
7836         (tramp-completion-handle-file-name-completion): Autoload them.
7837         (tramp-make-temp-file, tramp-make-tramp-temp-file): Move them up.
7838         (tramp-handle-file-name-directory): Return the real directory
7839         name.  Returning "/" only doesn't need to be necessary any longer.
7840         (tramp-handle-make-auto-save-file-name): For Emacs 21, set
7841         `tramp-auto-save-directory' if unset in order to guarantee unique
7842         auto-save file names.
7843         (tramp-file-name-handler): Make special attention when in hostname
7844         completion mode.
7845         (tramp-register-file-name-handlers): New defsubst.  Added with
7846         autoload cookie.  Code from `tramp-repair-jka-compr' moved here.
7847         Register `tramp-completion-file-name-handler' only when
7848         `partial-completion-mode' is enabled.
7849         (tramp-unload-file-name-handlers): Renamed from
7850         `tramp-unload-file-name-handler-alist'.
7851         (tramp-completion-handle-file-name-all-completions): Delete
7852         directory part from results.
7853         (tramp-get-completion-methods, tramp-get-completion-user-host):
7854         Discard deleting "/", it doesn't work after the change of
7855         `tramp-handle-file-name-directory' above.
7856         (tramp-do-copy-or-rename-file-out-of-band)
7857         (tramp-process-actions, tramp-wait-for-regexp)
7858         (tramp-maybe-open-connection, tramp-send-command)
7859         (tramp-send-command-internal): Trace sent command with level 6.
7860         (tramp-check-for-regexp): Trace echo with level 5.
7861         (tramp-dissect-file-name): Expand method, user, host.
7862         (tramp-find-method, tramp-find-user, tramp-find-host): Add code
7863         for default values.  Remove all calls but the one in
7864         `tramp-dissect-file-name'.
7865         (tramp-bug, tramp-reporter-dump-variable)
7866         (tramp-append-tramp-buffers): Dump also hash variables.
7867
7868         * tramp-cache.el: Trace cache commands with level 7.  Trace
7869         connection commands with level 8.
7870         (tramp-cache-print): Dump strings as such.
7871         (tramp-persistency-file-name): New defcustom.
7872         (tramp-connection-properties): New defvar.
7873         (tramp-dump-connection-properties): New defun.
7874         (tramp-get-connection-property, tramp-set-connection-property):
7875         Rewritten.
7876         (top): Dump connection history when leaving Emacs.  Read it during
7877         initialization.
7878
7879         * tramp-efs.el (tramp-efs-file-name-p): Don't use tramp-find-*
7880         functions.
7881
7882         * tramp-ftp.el (tramp-ftp-file-name-p): Don't use tramp-find-*
7883         functions.
7884
7885         * tramp-smb.el: Trace sent commands with level 6.
7886         (tramp-smb-file-name-p): Don't use tramp-find-* functions.
7887
7888 2006-04-29  Richard Stallman  <rms@gnu.org>
7889
7890         * tramp.el (tramp-completion-file-name-handler-alist): Delete
7891         expand-file-name and other operations that can cause spurious loading.
7892
7893 2006-04-16  Michael Albinus  <michael.albinus@gmx.de>
7894
7895         * tramp.el (tramp-completion-mode): ?\t has event-modifier
7896         'control.  Reported by Matthias Förste
7897         <slashdevslashnull@gmx.net>.
7898
7899 2006-03-19  Michael Albinus  <michael.albinus@gmx.de>
7900
7901         * tramp.el (tramp-remote-path): Add `tramp-default-remote-path' as
7902         first item.  Remove items which are usually returned by "getconf
7903         PATH".  Extend custom parameters accordingly.
7904         (tramp-set-remote-path): Apply "getconf PATH" in order to get
7905         default directories.  Suggested by Kevin Rodgers <ihs_4664@yahoo.com>.
7906         Remove parameters VAR and DIRLIST.
7907         (tramp-post-connection): Set remote PATH variable as first action.
7908         (tramp-handle-call-process): Add "</dev/null" when INFILE is nil.
7909
7910         * tramp-util.el (tramp-grep-setup): New defun.
7911
7912 2006-03-14  Michael Albinus  <michael.albinus@gmx.de>
7913
7914         * Makefile.in: Implement DESTDIR support.
7915
7916 2006-03-12  Michael Albinus  <michael.albinus@gmx.de>
7917
7918         * tramp-util.el (tramp-advice-dired-insert-directory): Ensure it
7919         isn't used with Emacs 22.
7920
7921 2006-03-10  Michael Albinus  <michael.albinus@gmx.de>
7922
7923         * tramp-util.el (tramp-advice-dired-insert-directory): New
7924         defadvice.
7925
7926 2006-03-09  Michael Albinus  <michael.albinus@gmx.de>
7927
7928         * tramp.el (tramp-do-copy-or-rename-file-out-of-band)
7929         (tramp-handle-write-region, tramp-touch)
7930         (tramp-call-local-coding-command): Local `call-process' and
7931         `start-process' must be applied with a local `default-directory'.
7932
7933 2006-03-08  Michael Albinus  <michael.albinus@gmx.de>
7934
7935         * tramp.el (tramp-pre-connection): The buffer must be erased.
7936         Reported by Heike C. Zimmerer <hcz@hczim.de>.
7937
7938 2006-03-05  Michael Albinus  <michael.albinus@gmx.de>
7939
7940         * tramp.el (tramp-debug-message): Don't filter for
7941         `tramp-warning', it doesn't exist.
7942         (tramp-touch): Raise a warning only if it fails.  It isn't worth
7943         an error.
7944
7945 2006-02-27  Heike C. Zimmerer  <hcz@hczim.de>
7946
7947         * tramp.el (tramp-echo-mark, tramp-echoed-echo-mark-regexp): New
7948         defconst.
7949         (tramp-check-for-regexp): New defun.
7950         (tramp-wait-for-regexp): Apply it.
7951         (tramp-open-connection-setup-interactive-shell): Check for echo
7952         suppression on remote side.
7953         (tramp-send-command, tramp-send-command-internal): Add
7954         `tramp-echo-mark' to the command if needed.
7955         (tramp-send-command-and-check): Take a more precise regexp for
7956         exit status check.
7957
7958 2006-02-20  Heike C. Zimmerer  <hcz@hczim.de>  (tiny change)
7959
7960         * tramp.el (tramp-maybe-open-connection): Fix typo in calling
7961         `tramp-wait-for-output'.
7962
7963 2006-02-12  Michael Albinus  <michael.albinus@gmx.de>
7964
7965         * tramp.el, trampver.el.in: Adapt copyright years.
7966
7967 2006-02-08  Sam Steingold  <sds@gnu.org>
7968
7969         * tramp.el (tramp-maybe-open-connection): Do not wait for
7970         output from a dead connection.
7971
7972 2006-02-07  Michael Albinus  <michael.albinus@gmx.de>
7973
7974         * tramp.el (tramp-error): Add a fmt-string to the call of
7975         `tramp-message-for-buffer'.
7976
7977 2006-01-30  Michael Albinus  <michael.albinus@gmx.de>
7978
7979         * tramp.el (tramp-unload-tramp): Don't try to unload tramp-util.
7980
7981         * tramp-smb.el (tramp-smb-wait-for-output): Wait always for the
7982         prompt.  If it returns earlier (when detecting an error message),
7983         the rest of the output will merge accidently with the output of
7984         the next command.  Reported by M Jared Finder <jared@hpalace.com>.
7985
7986 2006-01-27  Antonio Martinez  <antonio.martinez.shotton@gmail.com>  (tiny change)
7987
7988         * tramp.el (tramp-handle-call-process): All excursions must be
7989         saved correctly.
7990
7991 2006-01-27  Michael Albinus  <michael.albinus@gmx.de>
7992
7993         * tramp.el, tramp-cache.el, tramp-ftp.el, tramp-util.el:
7994         * tramp-vc.el: Add code for unloading Tramp.  See comment before
7995         `tramp-unload-tramp' for checklist.
7996
7997         * tramp.el (tramp-unload-file-name-handler-alist)
7998         (tramp-unload-tramp): New defuns.
7999         (tramp-advice-PC-expand-many-files): New defadvices.
8000         (tramp-save-PC-expand-many-files, tramp-setup-complete) Defuns
8001         removed.
8002
8003         * tramp-ftp.el (tramp-ftp-enable-ange-ftp): New defun.
8004
8005         * tramp-vc.el (vc-user-login-name): Wrap defadvice with a test for
8006         `process-file', in order to let it work for older Emacsen too.
8007
8008 2005-12-11  Michael Albinus  <michael.albinus@gmx.de>
8009
8010         Version 2.1.5 released.
8011
8012         * tramp.el (tramp-remote-path): Beautify "/usr/xpg4/bin".  Clarify
8013         docstring.
8014         (tramp-handle-expand-file-name): Remove double slash.
8015         (tramp-set-remote-path): It is sufficient to check for
8016         `file-directory-p'.
8017         (tramp-find-file-exists-command): Remove unnecessary message.
8018         (tramp-check-ls-command, tramp-check-ls-commands)
8019         (tramp-find-ls-command, tramp-find-id-command): Remove functions.
8020         Code is moved to corresponding `tramp-get-*' functions.
8021         (tramp-get-*): Work in connection buffer because local
8022         `tramp-remote-path'. Insert code from above when necessary.
8023         (tramp-bug): Add `tramp-default-host', `tramp-default-user',
8024         `tramp-default-user-alist'.
8025         (tramp-append-tramp-buffers): Add local variables for all Tramp
8026         buffers.
8027
8028 2005-12-02  Michael Albinus  <michael.albinus@gmx.de>
8029
8030         * tramp.el (tramp-verbose): Document level 7.
8031         (tramp-send-command-and-check): Clean up tramp_exit_status from
8032         buffer.
8033         (tramp-handle-file-local-copy, tramp-send-command-and-read):
8034         Remove cleaning of tramp_exit_status.
8035         (tramp-handle-write-region): Make cksum check more robust.
8036         (tramp-remote-path): Add "/usr/xpg4/bin/".  On Solaris, there are
8037         the POSIX programs.
8038         (tramp-find-executable): IGNORE-TILDE is optional now.  New
8039         parameter IGNORE-PATH.  Adapt callees.
8040         (tramp-set-remote-path): Return list of existing directories.
8041         (tramp-post-connection): Make `tramp-remote-path' buffer local.
8042         Set it to list of existing directories.
8043         (tramp-find-id-command, tramp-get-remote-id ): New defun.
8044         (tramp-get-remote-uid, tramp-get-remote-gid): Use them.
8045
8046 2005-11-29  Michael Albinus  <michael.albinus@gmx.de>
8047
8048         * tramp.el (tramp-do-copy-or-rename-file-via-buffer)
8049         (tramp-handle-file-local-copy, tramp-handle-write-region):
8050         Generate always a new temp buffer. Kill it finally.
8051         (tramp-handle-unhandled-file-name-directory): Return home directory
8052         on remote host.
8053         (tramp-handle-write-region): When `file-precious-flag' is set,
8054         check also the checksums (in case of inline methods).
8055
8056 2005-11-27  Michael Albinus  <michael.albinus@gmx.de>
8057
8058         * tramp.el (tramp-file-name-handler-alist): Remove
8059         `dired-call-process' again.  Not necessary, now that `tramp-util'
8060         is required.
8061         (tramp-handle-dired-call-process): Removed.
8062         (tramp-handle-process-file): Call just `call-process'.
8063
8064         * tramp-util.el (file-remote-p): Make it available (Emacs 21), or
8065         advice it (XEmacs 21).
8066         (compilation-mode-hook, tramp-gud-file-name): Use `file-remote-p'.
8067         (tramp-gud-file-name-handler): Removed.  It was a wrong approach.
8068         (tramp-gud-massage-args): New defun.
8069         (tramp-gud-setup): Rewritten.  It is called now after loading
8070         gud.el.
8071         (tramp-gud-perldb-massage-args): Removed. Replaced by a more
8072         general approach in `tramp-gud-setup'.
8073
8074 2005-11-23  Michael Albinus  <michael.albinus@gmx.de>
8075
8076         * tramp.el (top): Require `tramp-util'.
8077         (tramp-make-tramp-temp-file): New defsubst.
8078         (tramp-handle-call-process): Call it.
8079         (tramp-find-foreign-file-name-handler): Test also for stringp.
8080         (tramp-set-auto-save): Simplify test.  It is done in
8081         `tramp-find-foreign-file-name-handler'.
8082         (tramp-exists-file-name-handler): Protect it with
8083         `condition-case'.
8084
8085         * tramp-util.el (tramp-advice-start-process)
8086         (tramp-advice-call-process, gud-perldb-massage-args): Replace test
8087         with `tramp-tramp-file-p' by `tramp-sh-file-name-handler'.  It
8088         does not work with other file name handlers.
8089         (tramp-gud-file-name-handler, tramp-gud-setup): New defuns.
8090
8091         * tramp-vc.el (tramp-vc-user-login-name): Rewritten.
8092         (tramp-vc-file-owner): Replace test with `tramp-tramp-file-p' by
8093         `tramp-sh-file-name-handler'.  It does not work with other file
8094         name handlers.
8095
8096 2005-11-20  Michael Albinus  <michael.albinus@gmx.de>
8097
8098         * tramp.el (tramp-send-command-and-read): New defun.
8099         (tramp-handle-file-attributes-with-perl)
8100         (tramp-handle-file-attributes-with-stat)
8101         (tramp-handle-directory-files-and-attributes-with-perl)
8102         (tramp-handle-directory-files-and-attributes-with-stat)
8103         (tramp-get-remote-stat, tramp-get-remote-uid)
8104         (tramp-get-remote-gid): Apply it.
8105         (tramp-handle-insert-directory): Remove unnecessary comments.
8106         (tramp-point-at-eol): Removed. All callees replaced by
8107         `tramp-line-end-position'.
8108         (tramp-barf-unless-okay): Don't pop up Tramp buffer in case of
8109         error.
8110         (tramp-get-ls-command, tramp-get-test-command)
8111         (tramp-get-test-nt-command, tramp-get-file-exists-command)
8112         (tramp-get-remote-ln, tramp-get-remote-perl)
8113         (tramp-get-remote-stat)
8114         (tramp-get-remote-uid, tramp-get-remote-gid): Apply
8115         `with-connection-property'.
8116         (tramp-get-connection-property, tramp-set-connection-property):
8117         Move to tramp-cache.el.
8118
8119         * tramp-cache.el:
8120         (tramp-get-connection-property, tramp-set-connection-property):
8121         Moved from tramp.el.  Tramp messages added.
8122         (with-connection-property): New macro.
8123
8124         * tramp-smb.el (tramp-smb-read-file-entry): `tramp-point-at-eol'
8125         replaced by `tramp-line-end-position'.
8126
8127         * tramp-vc.el (tramp-handle-vc-user-login-name): Removed.
8128         (tramp-vc-user-login-name): Rewritten.
8129
8130 2005-11-16  Michael Albinus  <michael.albinus@gmx.de>
8131
8132         * tramp.el (tramp-default-user-alist): Simplify default value.
8133         (tramp-handle-file-attributes): Apply `expand-file-name'.
8134         (tramp-handle-file-newer-than-file-p)
8135         (tramp-handle-add-name-to-file, tramp-do-copy-or-rename-file):
8136         Call of `tramp-error' must be more robust.
8137         (tramp-touch): When there is no Tramp file, we cannot call
8138         `tramp-error'.
8139         (tramp-wait-for-regexp, tramp-wait-for-output): Remove unnecessary
8140         parameter in `tramp-error' call.
8141         (tramp-get-remote-uid, tramp-get-remote-gid): New parameter
8142         ID-FORMAT.  Adapt callees.
8143
8144         * tramp-vc.el (tramp-vc-do-command, tramp-vc-do-command-new)
8145         (tramp-vc-simple-command, tramp-vc-workfile-unchanged-p)
8146         (vc-checkout): Removed, including corresponding defadvices.
8147         (tramp-file-owner): Removed.  Defadvice `vc-file-owner' changed
8148         with code left.
8149
8150 2005-11-12  Michael Albinus  <michael.albinus@gmx.de>
8151
8152         * tramp.el (tramp-handle-file-attributes-with-ls): Return t as
8153         9th attribute.  It doesn't matter, because it will be converted
8154         later on.
8155         (tramp-handle-file-ownership-preserved-p): Rewritten.  The old
8156         implementation was just heuristic.
8157         (tramp-convert-file-attributes): Set file's gid change bit.
8158         (tramp-get-remote-uid, tramp-get-remote-gid): New defuns.
8159
8160 2005-11-09  Michael Albinus  <michael.albinus@gmx.de>
8161
8162         * tramp.el (tramp-remote-process-environment): New defcustom.
8163         (tramp-file-name-handler-alist): Add `dired-call-process'.
8164         (tramp-handle-dired-call-process ): New defun.
8165         (tramp-debug-message): Extend regexp for backtrace.
8166         (tramp-message): Apply level specific prefixes.
8167         (tramp-error): New defsubst.  Replace all calls of `message',
8168         `signal' and `error' with corresponding Tramp message functions.
8169         (tramp-handle-file-truename): Apply `tramp-equal-remote'.
8170         (tramp-handle-expand-file-name): Use "~root" for tilde expansion
8171         in case of su(do)? methods.  The home directory of the local user
8172         will be taken else.
8173         (tramp-handle-start-process): Use narrowing for protecting buffer
8174         contents.
8175         (tramp-file-name-handler): Remove signal handling.  Not necessary,
8176         because `tramp-error' handles it now.
8177         (tramp-buffer-name, tramp-debug-buffer-name): Handle the case USER
8178         is nil.
8179         (tramp-outline-level): Change formula in order to handle level 0.
8180         (tramp-set-remote-path): Add debug message.
8181         (tramp-enter-password): Don't erase the buffer, not necessary.
8182         (tramp-open-connection-setup-interactive-shell): Don't (un)set
8183         explicitly "TERM", "HISTFILE", "HISTSIZE" "MAIL" "MAILCHECK"
8184         "MAILPATH" "CDPATH" "LC_TIME".  Set
8185         `tramp-remote-process-environment' instead.
8186         (tramp-barf-unless-okay): Remove SUBSHELL (always nil) and SIGNAL
8187         (always 'file-error).  Change all callees.
8188         (tramp-send-string): Apply `delete-region' instead of
8189         `erase-buffer'.  Necessary because of narrowing.
8190
8191         * tramp-smb.el (all) Replace all calls of `message', `signal' and
8192         `error' with corresponding Tramp message functions.
8193
8194         * tramp-util.el (tramp-advice-gud-perldb-massage-args): New
8195         defadvice.
8196
8197 2005-11-06  Michael Albinus  <michael.albinus@gmx.de>
8198
8199         * tramp.el (tramp-file-name-handler-alist): Remove `shell-command.
8200         (tramp-handle-start-process, tramp-handle-call-process): Apply
8201         `save-excursion'.
8202         (tramp-handle-shell-command): Removed.
8203         (tramp-file-name-for-operation): Add `dired-call-process'. It IS a
8204         file name handler primitive.
8205         (tramp-wait-for-regexp): Take the message string from right
8206         buffer.
8207         (tramp-post-connection): Remove code for checking encoding
8208         commands.  It is also in `tramp-find-inline-encoding'.
8209         (tramp-find-inline-encoding): Check for connection properties.  By
8210         this, the commands won't be executed again for new connection
8211         buffers.
8212         (tramp-maybe-open-connection): Apply `tramp-send-command' instead
8213         of `tramp-send-string'.  No changed functionality, but better
8214         traces.
8215
8216         * tramp-util.el (top): Don't require "compile".  Add handlers for
8217         `compilation-mode-hook' and `gud-mode-hook'.
8218         (tramp-advice-start-process, tramp-advice-call-process): Call the
8219         handlers with `apply'.
8220         (tramp-gud-file-name): New defun.
8221         (tramp-compilation-parse-errors-filename-function): Removed.  It
8222         wasn't such a good idea.
8223
8224 2005-11-05  Michael Albinus  <michael.albinus@gmx.de>
8225
8226         * tramp-util.el (tramp-compilation-parse-errors-filename-function):
8227         New defun.  Assigned to `compilation-parse-errors-filename-function'.
8228
8229 2005-11-04  Michael Albinus  <michael.albinus@gmx.de>
8230
8231         * tramp.el (tramp-default-user): Set to nil.  Otherwise, it would
8232         overwrite setttings for ssh.  Reported by Richard Edgar
8233         <rge21@pas.rochester.edu>.
8234         (tramp-default-user-alist): Add value for rsh and telnet and
8235         alike.
8236         (tramp-handle-file-newer-than-file-p)
8237         (tramp-handle-add-name-to-file, tramp-do-copy-or-rename-file)
8238         (tramp-run-test2 ): Apply `tramp-equal-remote'.
8239         (tramp-equal-remote): Improve docstring.
8240         (tramp-handle-call-process): Continue implementation.
8241
8242         * tramp-util.el (tramp-advice-start-process)
8243         (tramp-advice-call-process): Check whether to apply.
8244
8245 2005-11-02  Lars Hansen  <larsh@soem.dk>
8246
8247         * tramp.el (tramp-action-out-of-band): Handle scp message
8248         "Permission denied".
8249
8250 2005-11-01  Michael Albinus  <michael.albinus@gmx.de>
8251
8252         * tramp.el (tramp-handle-call-process): Improve handling of INFILE
8253         and DESTINATION.
8254         (tramp-handle-file-remote-p): Return string instead of struct.
8255         Expand to default values.
8256         (tramp-equal-remote): New defun.
8257
8258 2005-10-30  Michael Albinus  <michael.albinus@gmx.de>
8259
8260         * tramp.el: Global change to make access to connection buffer more
8261         robust.  Don't trust that it is always current buffer; don't
8262         expect it is writable.
8263         (tramp-file-name-handler-alist, tramp-file-name-for-operation):
8264         Add `start-process' and `call-process'.  Remove
8265         `dired-call-process'.
8266         (tramp-handle-start-process, tramp-handle-call-process)
8267         (tramp-get-connection-buffer, tramp-get-connection-process): New
8268         defuns.
8269         (tramp-handle-dired-call-process, tramp-async-proc): Removed.
8270         (tramp-handle-shell-command, tramp-handle-process-file): Rewritten
8271         completely.
8272         (tramp-wait-for-output): New arg PROC.
8273         (tramp-get-connection-property, tramp-set-connection-property):
8274         Don't call `tramp-maybe-open-connection'.  There might be
8275         recursions otherwise.
8276         (tramp-handle-expand-file-name): Use
8277         `tramp-temporary-file-directory' instead of "/".
8278         (tramp-maybe-open-connection): Set PS1 to "$ ".  Otherwise, a
8279         local shell prompt could hurt.  Reported by Romain Francoise
8280         <romain@orebokech.com>.
8281         (tramp-chunksize): Escape parentheses in docstring starting at
8282         beginning of line.  Fontification is messed up when
8283         `open-paren-in-column-0-is-defun-start' set to t.  Reported by
8284         John Paul Wallington <jpw@pobox.com>.
8285
8286         * tramp-cache.el (tramp-cache-setup): Reset `tramp-cache-data'
8287         only when it doesn't exist yet.  Otherwise, it would be cleaned
8288         every new asynchronous process.
8289
8290         * tramp-util.el: Deactivate key mappings for `tramp-minor-mode'.
8291         (tramp-advice-start-process, tramp-advice-call-process): New
8292         defadvices.
8293         (tramp-compile, tramp-recompile): Removed.
8294
8295 2005-10-28  Richard M. Stallman  <rms@gnu.org>
8296
8297         * tramp.el (tramp-completion-mode): defvar moved up.
8298
8299 2005-10-23  Michael Albinus  <michael.albinus@gmx.de>
8300
8301         * tramp.el (tramp-let-maybe): Add `edebug-form-spec' property.
8302         (tramp-handle-expand-file-name): Bind `default-directory' locally
8303         to "/" in order to avoid problems with UNC shares or Cygwin
8304         mounts.
8305
8306 2005-10-17  Michael Albinus  <michael.albinus@gmx.de>
8307
8308         * tramp.el (tramp-completion-mode): New defvar.  Used in
8309         `tramp-completion-mode' for checking if we are in completion mode.
8310         (tramp-completion-handle-file-name-all-completions): Reorder code
8311         in order to complete for file names only in case there are no
8312         method/user/host completions.  This is necessary for cooperation
8313         with ido.  Reported by Kim F. Storm <storm@cua.dk>.
8314
8315 2005-10-08  Lars Hansen  <larsh@soem.dk>
8316
8317         * tramp.el (tramp-perl-directory-files-and-attributes): Add error
8318         handling.
8319         (tramp-handle-directory-files-and-attributes-with-perl): Handle
8320         perl error msg.
8321
8322 2005-10-16  Andy Sloane <andy@guildsoftware.com>  (tiny change)
8323
8324         * tramp.el (tramp-enter-password): `tramp-password-end-of-line'
8325         must be taken from `tramp-current-hop-*'.
8326
8327 2005-10-13  Michael Albinus  <michael.albinus@gmx.de>
8328
8329         Version 2.1.4 released.
8330
8331         * tramp.el (tramp-debug-message, tramp-message-for-buffer): Write
8332         message only if connection buffer exists.  Otherwise, `method',
8333         `user' and `host' are not set yet.
8334         (tramp-handle-directory-files-and-attributes-with-perl)
8335         (tramp-handle-directory-files-and-attributes-with-stat): New
8336         defuns.
8337         (tramp-handle-directory-files-and-attributes): Use them.
8338
8339 2005-10-12  Michael Albinus  <michael.albinus@gmx.de>
8340
8341         * tramp.el (top): Try to simplify XEmacs byte-compiler
8342         pacification.
8343         (tramp-verbose): Finish doc string.  New default value is 3.
8344         (all): Apply new verbosity levels.
8345         (tramp-get-debug-buffer): Remove definition of outline faces.  The
8346         default values are good enough.
8347         (tramp-bug): Explain setting of `tramp-verbose'.
8348
8349         * tramp-cache.el (all): Apply new verbosity levels.
8350
8351         * tramp-smb.el (top): Try to simplify XEmacs byte-compiler
8352         pacification.
8353         (all): Apply new verbosity levels.
8354
8355         * tramp-vc.el (top): Try to simplify XEmacs byte-compiler
8356         pacification.
8357
8358 2005-10-11  Michael Albinus  <michael.albinus@gmx.de>
8359
8360         * tramp.el (tramp-verbose): Start rewriting the doc string.  Not
8361         finished yet.
8362         (tramp-handle-delete-file, tramp-handle-insert-file-contents)
8363         (tramp-sh-file-name-handler): Signals expect a list as last
8364         parameter.
8365         (tramp-file-name-handler): Handle signals in order to trace them
8366         in the debug buffer.
8367
8368         * tramp-smb.el (tramp-smb-handle-directory-files): Rewritten in
8369         order to profit from caching results.
8370         (tramp-smb-handle-file-name-all-completions): `localname' must be
8371         expanded by `file-name-as-directory'.
8372
8373 2005-10-11  Steve Youngs  <steve@sxemacs.org>
8374
8375         * tramp.el: Require `timer-funcs' instead of `timer' if in
8376         XEmacs.
8377
8378 2005-10-10  Michael Albinus  <michael.albinus@gmx.de>
8379
8380         * tramp.el (tramp-handle-delete-directory)
8381         (tramp-handle-dired-recursive-delete-directory): Apply
8382         `tramp-cache-flush-directory'.
8383         (tramp-handle-insert-directory): Apply `tramp-cache-flush-file'.
8384
8385         * tramp-cache.el: Autoload the needed functions from tramp.el.
8386         (tramp-cache-flush-directory, tramp-cache-before-revert-function):
8387         New defuns.
8388         (top): Add `tramp-cache-before-revert-function' to
8389         `before-revert-hook'.  Deactivate all Tramp messages for
8390         performance reasons.
8391
8392         * tramp-smb.el (tramp-smb-handle-delete-directory): Apply
8393         `tramp-cache-flush-directory'.
8394         (tramp-smb-handle-insert-directory): Apply
8395         `tramp-cache-flush-file'.
8396         (tramp-smb-handle-directory-files): Local file must be handled as
8397         directory, otherwise the listing is senseless.
8398
8399 2005-10-09  Michael Albinus  <michael.albinus@gmx.de>
8400
8401         * tramp.el (tramp-completion-without-shell-p): Removed.  Not
8402         needed anymore.
8403         (tramp-md5-function): Fix typo in error message.
8404         (tramp-handle-directory-files)
8405         (tramp-handle-directory-files-and-attributes)
8406         (tramp-handle-file-name-all-completions): Rewritten in order to
8407         profit from caching results.
8408         (tramp-handle-file-name-completion): Removed unnecessary code.
8409
8410         * tramp-cache.el (with-cache-data): ,@body must be wrapped by
8411         `progn'.  Add `edebug-form-spec' property.
8412
8413         * tramp-smb.el (tramp-smb-handle-file-name-all-completions):
8414         Rewritten in order to profit from caching results.
8415
8416 2005-09-22  Michael Albinus  <michael.albinus@gmx.de>
8417
8418         * tramp.el (tramp-actions-before-shell): Reorder actions.  There
8419         might be a speedup when the next action is recognized immediately.
8420         At least it doesn't hurt.
8421         (tramp-find-executable): "which(1)" doesn't return a correct error
8422         code in some implementations.  Use the number of words it returns
8423         as indication instead.
8424         (tramp-send-string): Trace all chunk sendings.  It might be huge
8425         for large files, but trace level 10 should be an exception.
8426         Remove the sleep, it's not necessary (and disturbs accept process
8427         output logic on Emacs installations without timeouts, like on my
8428         HP-UX 10.20 desktop).
8429
8430 2005-09-18  Michael Albinus  <michael.albinus@gmx.de>
8431
8432         * tramp.el (tramp-login-prompt-regexp): Expand regexp in order to
8433         cover prompts like "login as:".  Reported by Slawomir Nowaczyk
8434         <slawomir.nowaczyk.847@student.lu.se>.
8435         (tramp-debug-message): Remove FACE as parameter.  Not necessary
8436         any longer, we use outline mode now.
8437         (tramp-message, tramp-trace): Change callees.
8438         (tramp-message-for-buffer): It is a defsubst now.
8439         (tramp-get-debug-buffer): Initialize outline mode.
8440         (tramp-outline-level): New defun.
8441         (tramp-insert-with-face): Removed.
8442         (tramp-do-copy-or-rename-file-out-of-band)
8443         (tramp-maybe-open-connection): tramp-current-* and
8444         tramp-current-hop-* values should be already expanded.
8445         (tramp-action-login, tramp-read-passwd): Use tramp-current-hop-*.
8446
8447 2005-09-11  Michael Albinus  <michael.albinus@gmx.de>
8448
8449         * tramp.el (top): Reduce compiler warnings.
8450         (tramp-current-hop-method, tramp-current-hop-user)
8451         (tramp-current-hop-host): New defvars.
8452         (tramp-handle-file-attributes-with-stat): Return floating point
8453         numbers.  Integers did run out of 2**28.
8454         (tramp-do-copy-or-rename-file-out-of-band, tramp-pre-connection)
8455         (tramp-maybe-open-connection): Initialize new defvars.
8456         (tramp-handle-shell-command): Send "tramp_set_exit_status", it
8457         isn't sent any longer during initialization.
8458         (tramp-handle-write-region): Remote decoding command is sent in
8459         one bunch.
8460         (tramp-find-executable): Check first in $PATH with "which"
8461         command.  Directory scan command is sent in one bunch.
8462         (tramp-check-ls-command, tramp-find-ls-command): Debug messages
8463         did go to a wrong debug buffer.
8464         (tramp-action-password, tramp-process-actions): Call
8465         `tramp-enter-password' and `tramp-clear-passwd' with changed
8466         parameters.
8467         (tramp-enter-password, tramp-read-passwd, tramp-clear-passwd):
8468         Change parameter set.  Rewrite.
8469         (tramp-post-connection): Remove unnecessary commands.
8470         (tramp-send-command, tramp-send-string): Move setting of
8471         `tramp-last-cmd-time'.
8472         (tramp-wait-for-output): Correct wrong variable names.
8473         (tramp-get-ls-command): Simplify code.
8474
8475         * tramp-cache.el (tramp-enable-cache): Removed.  Works stable now.
8476         (with-cache-data): Change accordingly.
8477
8478         * tramp-smb.el (top): Require `tramp-cache'.  Reduce compiler
8479         warnings.
8480         (tramp-smb-handle-file-attributes)
8481         (tramp-smb-handle-file-directory-p)
8482         (tramp-smb-handle-file-exists-p)
8483         (tramp-smb-handle-file-writable-p): Add `with-cache-data'.
8484         (tramp-smb-handle-copy-file, tramp-smb-handle-delete-directory)
8485         (tramp-smb-handle-delete-file, tramp-smb-handle-rename-file)
8486         (tramp-smb-handle-write-region): Flush cached data.
8487         (tramp-smb-open-connection) Call `tramp-enter-password' and
8488         `tramp-clear-passwd' with changed parameters.
8489
8490         * tramp-vc.el (top): Reduce compiler warnings.
8491
8492 2005-09-07  Michael Albinus  <michael.albinus@gmx.de>
8493
8494         * tramp.el (tramp-action-password): Compile the password prompt
8495         from `method', `user' and `host'.  Sometimes it isn't obvious
8496         which password to enter, for example with remote files offered by
8497         recentf.el.  Suggested by Robert Marshall
8498         <robert@chezmarshall.freeserve.co.uk>.
8499
8500 2005-09-03  Michael Albinus  <michael.albinus@gmx.de>
8501
8502         * tramp.el (top): Rewrite compiler wrapping for `warnings'.
8503         (tramp-ls-command, tramp-test-groks-nt)
8504         (tramp-test-groks-nt): Remove variables.
8505         (tramp-handle-file-accessible-directory-p): Remove function.
8506         (tramp-file-name-handler-alist): Remove entry for
8507         `file-accessible-directory-p'.  Due to caching it doesn't make
8508         sense to call the test commands explicitly.
8509         (tramp-handle-file-exists-p): Format-string must be given now.
8510         (tramp-handle-file-attributes-with-stat): Don't use hard-coded
8511         "stat" command.
8512         (tramp-handle-file-newer-than-file-p): Simplify call of
8513         `tramp-run-test2' by using `tramp-get-test-nt-command'.
8514         (tramp-handle-file-directory-p): `tramp-run-test' should be
8515         sufficient.
8516         (tramp-handle-file-name-all-completions): Don't use hard-coded
8517         "test" command.
8518         (tramp-handle-make-auto-save-file-name):
8519         `tramp-subst-strs-in-string' should be applied all cases.
8520         (tramp-run-test): Use `with-parsed-tramp-file-name'.
8521         (tramp-run-test2): PROGRAM is replaced by FORMAT-STRING.  SWITCH
8522         not needed anymore.
8523         (tramp-find-file-exists-command): Don't use hard-coded "test" and
8524         "ls" commands.  Work with local file names but remote file names.
8525         (tramp-post-connection): Remove settings for
8526         `tramp-file-exists-command', `tramp-ls-command',
8527         `tramp-test-groks-nt', `tramp-connection-property' "perl",
8528         tramp-connection-property "perl-scripts",
8529         `tramp-connection-property' "ln" and `tramp-connection-property'
8530         "stat".  They are set on-the-fly.
8531         (tramp-convert-file-attributes): Rewrite setting directory
8532         indication bit.
8533         (tramp-get-ls-command, tramp-get-file-exists-command)
8534         (tramp-get-remote-perl, tramp-get-remote-stat):
8535         (tramp-get-remote-ln):  Rewrite.
8536         (tramp-bug): Remove deleted variables.
8537         (tramp-handle-set-visited-file-modtime)
8538         (tramp-handle-insert-file-contents)
8539         (tramp-handle-write-region): Insert special handling for
8540         `last-coding-system-used' again, it still seems to be
8541         necessary (unlike stated before).  Reported by Toshinori Sugita
8542         <sugita@d-pad.co.jp>.
8543
8544         * tramp-cache.el (top): Rewrite compiler wrapping for
8545         `with-no-warnings.
8546         (tramp-cache-get-file-property): Add new parameter DEFAULT.
8547         (tramp-cache-flush-file): Don't use the message.
8548         (with-cache-data): Applicable for absolute file names only.
8549
8550 2005-08-31  Michael Albinus  <michael.albinus@gmx.de>
8551
8552         * tramp.el (tramp-file-name-handler-alist)
8553         (tramp-file-name-for-operation): Add `make-auto-save-file-name'.
8554         (tramp-handle-make-auto-save-file-name): Rename from
8555         `tramp-make-auto-save-file-name'.
8556         (tramp-exists-file-name-handler): New defun.
8557         (tramp-advice-make-auto-save-file-name): Make defadvice only when
8558         `make-auto-save-file-name' is not a magic file name operation.
8559
8560 2005-08-28  Michael Albinus  <michael.albinus@gmx.de>
8561
8562         * Makefile.in: Replace trampcache.el by tramp-cache.el.
8563
8564         * trampcache.el: Removed.  Replaced by tramp-cache.el.
8565
8566         * tramp-cache.el: New file.  Implementation inspired by work of
8567         Daniel Pittman <daniel@rimspace.net>.
8568
8569         * tramp.el: Introduce filename caching.  Require `tramp-cache'.
8570         (tramp-syntax): Correct doc string.
8571         (tramp-handle-file-truename, tramp-handle-file-exists-p)
8572         (tramp-handle-file-executable-p, tramp-handle-file-readable-p)
8573         (tramp-handle-file-accessible-directory-p)
8574         (tramp-handle-file-directory-p, tramp-handle-file-writable-p)
8575         (tramp-handle-file-ownership-preserved-p): Add `with-cache-data'.
8576         (tramp-handle-file-attributes): Add `with-cache-data'.  Check also
8577         for existence of applicable stat(1) command, which is preferred
8578         over the Perl script.
8579         (tramp-handle-file-attributes-with-stat, tramp-get-remote-stat):
8580         New defuns.
8581         (tramp-handle-set-file-modes, tramp-handle-add-name-to-file)
8582         (tramp-do-copy-or-rename-file, tramp-handle-delete-directory)
8583         (tramp-handle-delete-file, tramp-handle-dired-compress-file)
8584         (tramp-handle-dired-recursive-delete-directory)
8585         (tramp-handle-write-region): Flush cached data.
8586         (tramp-pre-connection): Initialise cache.
8587         (tramp-post-connection): Check for stat(1) command.
8588         (tramp-maybe-open-connection): Optimize code.
8589         (tramp-convert-file-attributes): Handle also attributes returned
8590         by stat.
8591
8592 2005-08-25  Michael Albinus  <michael.albinus@gmx.de>
8593
8594         * tramp.el (tramp-password-prompt-regexp): There might be other
8595         words before trailing ":".  Reported by Kurt Steinkraus
8596         <kurt@steinkraus.us>.
8597         (tramp-chunksize): Improve docstring.
8598         (tramp-set-auto-save-file-modes): Octal integer code #o600 breaks
8599         Emacs 20.  Use `tramp-octal-to-decimal' therefore.  Reported by
8600         Christian Joergensen <bugs@razor.dk>.
8601
8602 2005-08-23  Michael Albinus  <michael.albinus@gmx.de>
8603
8604         * tramp.el (tramp-chunksize): Improve docstring.
8605
8606 2005-08-21  Michael Albinus  <michael.albinus@gmx.de>
8607
8608         * tramp.el: Rewrite communication functions in order to apply them
8609         more transparent.  Change their use (f.e. remove unnecessary
8610         `erase-buffer', `tramp-wait-for-output' and `sit-for' calls).
8611
8612         (tramp-send-string): Erases communication buffer.  Calls
8613         `process-send-string'.  Always should be used as basic function
8614         sending input (except passwords, see comment there).  Parameter
8615         xxx has been removed; buffer is always erased.
8616
8617         (tramp-accept-process-output): Calls `accept-process-output'.
8618         Basic function receiving output.
8619         (tramp-wait-for-regexp): Basic function checking output for any
8620         regexp.
8621
8622         (tramp-wait-for-shell-prompt): Calls `tramp-wait-for-regexp'.
8623         (tramp-barf-if-no-shell-prompt): Calls `tramp-wait-for-shell-prompt'.
8624
8625         (tramp-wait-for-output): Like `tramp-wait-for-shell-prompt', but
8626         looks for own defined prompt.
8627
8628         (tramp-send-command-internal): Calls `tramp-send-string' and
8629         `tramp-barf-if-no-shell-prompt'.
8630         (tramp-send-command): Calls `tramp-send-string' and
8631         `tramp-wait-for-output'.  Parameter NOERASE has been
8632         removed (buffer is always erased in `tramp-send-string').  New
8633         parameter NOOUTPUT in case output should not be retrieved..
8634
8635         (tramp-send-command-and-check): Calls `tramp-send-command', checks
8636         tramp_exit_status.
8637         (tramp-barf-unless-okay): Calls `tramp-send-command-and-check'.
8638
8639         * tramp.el: Other changes.
8640         (tramp-debug-message, tramp-message-for-buffer): Simplify code.
8641         (tramp-trace): Trace messages should be visible for verbosity 10
8642         only.
8643         (tramp-handle-write-region, tramp-find-executable): Just the last
8644         "EOF" is sent by `tramp-send-command', all previous parts of the
8645         command are sent by `tramp-send-string`.
8646         (tramp-find-shell, tramp-process-initial-commands)
8647         (tramp-open-connection-setup-interactive-shell): Apply
8648         `tramp-send-command-internal' for equivalent code sequence.
8649         (tramp-process-one-action, tramp-accept-process-output)
8650         (tramp-send-command-internal): Add debug messages.
8651         (tramp-wait-for-regexp, tramp-wait-for-output): Optimize initial
8652         check.  Remove trace; this is done at lower level.
8653         (tramp-discard-garbage-erase-buffer): Function removed, shouldn't
8654         be necessary any longer.
8655         (tramp-post-connection): Don't compose string with
8656         `tramp-rsh-end-of-line'.  This is done anyway in
8657         `tramp-send-string'.
8658         (tramp-maybe-open-connection): "Are you awake" must be sent by
8659         `tramp-send-string', because there is an own process output
8660         handling afterwards.
8661
8662         * tramp-smb.el: Remove unnecessary `save-excursion' calls; this is
8663         done in basic functions when necessary.
8664         (tramp-smb-not-handled): First argument can be something else than
8665         a string (filename).  Handle this case for error message.
8666         (tramp-smb-get-file-entries, tramp-smb-maybe-open-connection)
8667         (tramp-smb-wait-for-output): Simplify code.
8668         (tramp-smb-send-command): Most functionality is now in
8669         `tramp-send-string'.
8670
8671 2005-08-09  Michael Albinus  <michael.albinus@gmx.de>
8672
8673         * tramp.el (tramp-make-tramp-file-name): METHOD must not be
8674         prepopulated.
8675         (tramp-bug): Fix variable names.
8676
8677 2005-08-07  Michael Albinus  <michael.albinus@gmx.de>
8678
8679         * tramp.el: Remove defvar of `last-coding-system-used' in the
8680         XEmacs case; not necessary anymore.
8681         (tramp-handle-set-visited-file-modtime)
8682         (tramp-handle-insert-file-contents)
8683         (tramp-handle-write-region): No special handling for
8684         `last-coding-system-used, because this is done in
8685         `tramp-accept-process-output' now.
8686         (tramp-accept-process-output): New defun.
8687         (tramp-process-one-action, tramp-wait-for-regexp)
8688         (tramp-wait-for-output, tramp-discard-garbage-erase-buffer): Call
8689         it.  Reported by David Howells <dhowells@redhat.com>.
8690         (clear-visited-file-modtime): Defadvice removed.  The check for
8691         unset buffer's modtime does not need to be based on
8692         `tramp-buffer-file-attributes'.  Suggested by RMS.
8693         (tramp-send-command): Simplify.
8694         (tramp-make-tramp-file-name): At least method and host delimiter
8695         must exist.
8696
8697         * tramp-smb.el: Remove defvar of `last-coding-system-used' in the
8698         XEmacs case; not necessary anymore.
8699         (tramp-smb-handle-write-region): No special handling for
8700         `last-coding-system-used, because this is done in
8701         `tramp-accept-process-output' now.
8702         (tramp-smb-wait-for-output): Call `tramp-accept-process-output'.
8703         Simplify trace message.
8704
8705 2005-08-01  Michael Albinus  <michael.albinus@gmx.de>
8706
8707         * tramp.el (tramp-debug-message): Handle the case, that
8708         `backtrace-frame' returns a lambda expression, or nil.
8709         (tramp-message): Don't use ARGS as format string, it
8710         could contain "%".
8711         (tramp-wait-for-regexp, tramp-wait-for-output): Add a format
8712         string to the call of `tramp-trace'.
8713         (tramp-discard-garbage-erase-buffer): Beautify trace.
8714
8715 2005-08-01  Thien-Thi Nguyen  <ttn@gnu.org>
8716
8717         Update years in copyright notice.
8718
8719 2005-07-31  Michael Albinus  <michael.albinus@gmx.de>
8720
8721         * tramp.el (tramp-uudecode): Remove shell function frame to make
8722         it fit for `tramp-maybe-send-script'.
8723         (tramp-perl-file-attributes)
8724         (tramp-perl-directory-files-and-attributes): Add Perl call to make
8725         it fit for `tramp-maybe-send-script'. Double "%".
8726         (tramp-perl-encode-with-module, tramp-perl-decode-with-module)
8727         (tramp-perl-encode, tramp-perl-decode): Change it to a defconst.
8728         (tramp-debug-message, tramp-trace): New defsubst.
8729         (tramp-message): Call it.
8730         (tramp-handle-file-local-copy): Call `insert-buffer-substring'
8731         instead of `insert-buffer'.  Compiler warning.
8732         (tramp-maybe-send-perl-script): Rename to
8733         `tramp-maybe-send-script'. Simplify sending the string.
8734         (tramp-handle-file-attributes-with-perl)
8735         (tramp-handle-directory-files-and-attributes): Call it.
8736         (tramp-find-shell): Use `tramp-barf-if-no-shell-prompt' for code
8737         sequence with same logic.
8738         (tramp-wait-for-regexp, tramp-wait-for-output)
8739         (tramp-discard-garbage-erase-buffer)
8740         (tramp-send-command, tramp-send-string): Simplify trace messages.
8741         (tramp-post-connection): Don't send all coding scripts.  This
8742         will be done if necessary only.
8743         (tramp-coding-commands): Split into new defconst
8744         `tramp-local-coding-commands' and `tramp-remote-coding-commands'.
8745         (tramp-find-inline-encoding): Rewrite.  Use new coding constants
8746         in order to send only scripts when needed.
8747         (tramp-bug): Adapt list of variables.
8748
8749 2005-07-28  Michael Albinus  <michael.albinus@gmx.de>
8750
8751         * tramp.el (tramp-handle-write-region): Remove unnecessary code.
8752
8753 2005-07-26  Michael Albinus  <michael.albinus@gmx.de>
8754
8755         * tramp.el (tramp-user-regexp): Allow "@" as part of user name.
8756         (tramp-last-cmd, tramp-process-echoes)
8757         (tramp-feature-write-region-fix): Remove variables.  They are
8758         mostly not used.
8759
8760 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
8761
8762         * tramp.el (tramp-handle-load): Fix typo in error message.
8763
8764 2005-07-20  Michael Albinus  <michael.albinus@gmx.de>
8765
8766         * tramp.el (tramp-completion-handle-expand-file-name): Discard call
8767         of `tramp-drop-volume-letter'.  It is not necessary, and there
8768         have been problems with (expand-file-name "~/.netrc" "/") in
8769         ange-ftp.  Reported by Richard G. Bielawski
8770         <Richard.G.Bielawski@wellsfargo.com>.
8771
8772 2005-07-17  Michael Albinus  <michael.albinus@gmx.de>
8773
8774         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Transfer
8775         message should always be visible.
8776         (tramp-handle-insert-directory, tramp-append-tramp-buffers):
8777         Pacify byte-compiler.
8778         (tramp-bug): Delete non-existing variables from list.  Apply
8779         `tramp-load-report-modules' as pre-hook.  Mask
8780         `tramp-password-prompt-regexp', `tramp-shell-prompt-pattern' and
8781         `shell-prompt-pattern' because of non-7bit characters.  Reported
8782         by Sebastian Luque <sluque@mun.ca>.
8783         (tramp-reporter-dump-variable, tramp-load-report-modules): New
8784         defuns.
8785
8786 2005-07-10  Michael Albinus  <michael.albinus@gmx.de>
8787
8788         * tramp.el (tramp-match-string-list): Remove function.
8789         (tramp-wait-for-regexp): Remove call of that function.  Suggested
8790         by Kim F. Storm <storm@cua.dk>.
8791
8792 2005-07-05  Lute Kamstra  <lute@gnu.org>
8793
8794         Update FSF's address in GPL notices.
8795
8796 2005-06-26  Michael Albinus  <michael.albinus@gmx.de>
8797
8798         * tramp.el (tramp-set-auto-save-file-modes): Use octal integer
8799         code #o600 instead of octal character code ?\600.  The latter
8800         resulted in a syntax error with XEmacs.
8801
8802 2005-06-19  Michael Albinus  <michael.albinus@gmx.de>
8803
8804         * Makefile.in:
8805         * tramp.el:
8806         * tramp-ftp.el:
8807         * tramp-uu.el:
8808         * trampver.el.in: Adapt email addresses.
8809
8810 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
8811
8812         * tramp.el (tramp-find-file-exists-command)
8813         (tramp-find-shell): Follow error conventions.
8814
8815 2005-05-17  Juanma Barranquero  <lekktu@gmail.com>
8816
8817         * tramp-smb.el (tramp-smb-open-connection): Pass `tramp-chunksize'
8818         as fourth (required) argument.
8819
8820 2005-05-01  Michael Albinus  <michael.albinus@gmx.de>
8821
8822         * tramp.el (tramp-handle-dired-call-process)
8823         (tramp-handle-insert-directory):`insert-buffer' cannot be used
8824         because the contents of the Tramp buffer is changed before
8825         insertion (`expand-file' and alike).
8826         (tramp-handle-insert-directory): If `localname' has an empty
8827         nondirectory name, it must not be quoted.
8828
8829 2005-04-29  Michael Albinus  <michael.albinus@gmx.de>
8830
8831         * tramp.el (tramp-set-auto-save-file-modes): Set file modes of
8832         `buffer-auto-save-file-name' to ?\600 as fallback solution.
8833         Reported by Ferenc Wagner <wferi@tba.elte.hu>.
8834
8835 2005-04-16  Michael Albinus  <michael.albinus@gmx.de>
8836
8837         * tramp.el (tramp-pre-connection): Add parameter CHUNKSIZE.  Make
8838         local variable `tramp-chunksize'.  Change callees.
8839         (tramp-open-connection-setup-interactive-shell): Check remote host
8840         for buggy `send-process-string' implementation.  Set
8841         `tramp-chunksize' if found.  Reported by Michael Kifer
8842         <kifer@cs.sunysb.edu> (and a lot of other people all the years).
8843
8844 2005-04-13  Michael Albinus  <michael.albinus@gmx.de>
8845
8846         * tramp.el (tramp-handle-shell-command): `insert-buffer' cannot be
8847         used because the contents of the Tramp buffer is changed before
8848         insertion (`expand-file' and alike).  Reported by Frédéric Bothamy
8849         <frederic.bothamy@free.fr>.
8850
8851 2005-04-03  Michael Albinus  <michael.albinus@gmx.de>
8852
8853         * tramp.el (tramp-set-auto-save): Actions should be done for Tramp
8854         file name handler only.  Ange-FTP has its own auto-save mechanism.
8855         Reported by Richard G. Bielawski <Richard.G.Bielawski@wellsfargo.com>.
8856         (tramp-bug): Remove obsolete variable.
8857         (tramp-append-tramp-buffers): Rewrite partly.  More suitable check
8858         for presence of `mml-mode'.  Make it running for older Emacsen as
8859         well.
8860
8861 2005-02-27  Michael Albinus  <michael.albinus@gmx.de>
8862
8863         * tramp.el (tramp-append-tramp-buffers): New defun.
8864         (tramp-bug): Apply `tramp-append-tramp-buffers' as post-hook.
8865         Catch `dont-send' signal.
8866
8867 2005-02-20  Michael Albinus  <michael.albinus@gmx.de>
8868
8869         * tramp.el (tramp-set-auto-save-file-modes): Set always
8870         permissions, because there might be an old auto-saved file
8871         belonging to another original file.  This could be a security
8872         threat.  Reported by Kjetil Kjernsmo <kjetil@kjernsmo.net>.
8873
8874 2005-02-16  Michael Albinus  <michael.albinus@gmx.de>
8875
8876         * tramp-smb.el (tramp-smb-prompt): Prompt can contain spaces
8877         inside directory names.
8878         (tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file):
8879         No error message if DIRECTORY or FILENAME doesn't exist.
8880
8881 2005-02-12  Michael Albinus  <michael.albinus@gmx.de>
8882
8883         * tramp.el (tramp-set-auto-save-file-modes) Check for Emacs
8884         21.3.50 removed.
8885
8886 2005-02-09  Kim F. Storm  <storm@cua.dk>
8887
8888         Change release version from 21.4 to 22.1 throughout.
8889
8890 2005-02-05  Michael Albinus  <michael.albinus@gmx.de>
8891
8892         * tramp.el (all): Change all addresses to .gnu.org.
8893
8894 2005-01-16  Michael Albinus  <michael.albinus@gmx.de>
8895
8896         Version 2.1.3 released.
8897
8898         * tramp.el (TODO): Remove some items which are solved or obsolete.
8899
8900 2005-01-15  Michael Albinus  <michael.albinus@gmx.de>
8901
8902         * tramp.el (tramp-operation-not-permitted-regexp) New defcustom,
8903         catching keep-date problems in cp/scp operations.
8904         (tramp-handle-copy-file): Don't call `set-file-modes'
8905         unconditionally.  Specialized functions should know better what is
8906         necessary.  This improves performance a little bit, and the
8907         functions could catch errors with `cp -p' and `scp -p'.
8908         (tramp-do-copy-or-rename-file-via-buffer)
8909         (tramp-do-copy-or-rename-file-out-of-band): Call `set-file-modes'
8910         when appropriate.
8911         (tramp-do-copy-or-rename-file-directly): Mask `cp -p' error.  Call
8912         `set-file-modes' when appropriate.
8913         (tramp-action-out-of-band): Mask `scp -p' error.
8914         Reported by Isak Johnsson <isak@hypergene.com>.
8915
8916 2005-01-09  Michael Albinus  <michael.albinus@gmx.de>
8917
8918         * tramp-util.el (tramp-remap-command): New defun.
8919         (top): Remove `define-key' calls.  They are replaced by respective
8920         `tramp-remap-command' and `add-menu-button' calls.  Add
8921         `tramp-minor-mode' to `dired-mode-hook'.
8922         (tramp-compile, tramp-recompile): Call the commands
8923         asynchronously.  Add `compilation-mode' to *Compilation* buffer.
8924
8925 2005-01-05  Michael Albinus  <michael.albinus@gmx.de>
8926
8927         * tramp.el: Fix copyright years.
8928
8929         * tramp-smb.el: Fix copyright years.  Adapt author address.
8930
8931         * tramp-util.el: Fix copyright years.  Adapt author address.
8932         (tramp-minor-mode): Mode must toggle.
8933
8934 2005-01-04  Michael Albinus  <michael.albinus@gmx.de>
8935
8936         * tramp.el (tramp-maybe-open-connection): If the local host does
8937         not run a UNIX derivate, the local shell cannot handle command
8938         sequences separated with ";".  Reported by Takashi Tsunakawa
8939         <tuna@is.s.u-tokyo.ac.jp>.
8940
8941         * tramp-smb.el (tramp-smb-open-connection): Check existence of
8942         `tramp-smb-program'.
8943
8944         * tramp-util.el (tramp-compile, tramp-recompile): Enable
8945         `tramp-minor-mode' in buffer "*Compilation*".
8946
8947 2004-12-29  Michael Albinus  <michael.albinus@gmx.de>
8948
8949         * tramp-smb.el: Add new Todo item.
8950
8951         * tramp-util.el (tramp-minor-mode): New minor mode.  Add it to
8952         `find-file-hooks'.
8953         (tramp-minor-mode-map): Respective map.  Add remapping for
8954         `compile' and `recompile'.
8955         (tramp-recompile): New defun.
8956
8957 2004-12-25  Michael Albinus  <michael.albinus@gmx.de>
8958
8959         * tramp.el (tramp-get-buffer, tramp-get-debug-buffer): Discard the
8960         undo list of both Tramp buffer and debug buffer.  Reported by
8961         Joakim Verona <joakim@verona.se>.
8962
8963 2004-12-23  Michael Albinus  <michael.albinus@gmx.de>
8964
8965         * tramp.el (tramp-file-name-for-operation): Mark `shell-command'
8966         as magic for Emacs only.
8967         (tramp-wait-for-output): Fix error in deleting region.  From Kai
8968         Grossjohann <kai.grossjohann@gmx.net>.
8969
8970         * tramp-vc.el (tramp-vc-do-command, tramp-vc-do-command-new)
8971         (tramp-vc-simple-command): Call `tramp-handle-shell-command' but
8972         `shell-command', because it isn't magic in XEmacs.  Reported by
8973         Adrian Aichner <adrian@xemacs.org>.
8974
8975 2004-12-22  Michael Albinus  <michael.albinus@gmx.de>
8976
8977         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add entry for
8978         `substitute-in-file-name.
8979         (tramp-smb-handle-substitute-in-file-name): New defun.
8980         (tramp-smb-advice-PC-do-completion): Delete advice.
8981
8982 2004-12-05  Michael Albinus  <michael.albinus@gmx.de>
8983
8984         * tramp.el (tramp-maybe-send-perl-script): Change order of
8985         parameters wrt Tramp convention.
8986         (tramp-handle-file-attributes-with-perl)
8987         (tramp-handle-directory-files-and-attributes): Apply it.
8988
8989 2004-11-26  Lars Hansen  <larsh@math.ku.dk>
8990
8991         Sync with Emacs CVS (Michael Albinus <michael.albinus@gmx.de>)
8992
8993         * tramp.el (tramp-handle-directory-files-and-attributes): New function.
8994         (tramp-perl-directory-files-and-attributes): New constant.
8995         (tramp-file-name-handler-alist): Delete file-directory-files, add
8996         directory-files-and-attributes.
8997         (tramp-perl-file-attributes): Surround uid and gid by double
8998         quotes. Change parameter id-format from nonnumeric.
8999         (tramp-convert-file-attributes): New function.
9000         (tramp-handle-file-attributes): Use it.
9001         (tramp-maybe-send-perl-script): New function.
9002         (tramp-handle-file-attributes-with-perl): Use it. Don't convert
9003         file mode. Change parameter id-format from nonnumeric.
9004         (tramp-handle-file-attributes-with-ls): Change parameter id-format
9005         from nonnumeric.
9006         (tramp-post-connection): Don't send tramp-perl-file-attributes
9007         script. Reset connection property "perl-scripts".
9008         (tramp-handle-insert-directory): Run real handler when ls-lisp is
9009         in use.
9010
9011 2004-12-04  Michael Albinus  <michael.albinus@gmx.de>
9012
9013         * tramp.el (tramp-do-copy-or-rename-file-out-of-band): Check for
9014         existence of `copy-program'.  Reported by Zack Weinberg
9015         <zack@codesourcery.com>.
9016
9017 2004-11-06  Richard M. Stallman  <rms@gnu.org>
9018
9019         * tramp.el (tramp group): Add :version.
9020
9021 2004-11-05  Kai Grossjohann  <kgrossjo@eu.uu.net>
9022
9023         * tramp.el (tramp-coding-commands): Additionally try "uudecode -o
9024         /dev/stdout" before trying "uudecode -o -".  Suggested by Han
9025         Boetes.
9026         (tramp-uudecode): Mention `uudecode -o /dev/stdout'.
9027
9028 2004-07-06  Kai Grossjohann  <kgrossjo@eu.uu.net>
9029
9030         * tramp.el (tramp-handle-file-newer-than-file-p): Reverse logic.
9031         From Andrew J. Korty <ajk@iu.edu>.
9032
9033 2004-10-23  Kai Grossjohann  <kai.grossjohann@gmx.net>
9034
9035         * tramp-vc.el (vc-do-command): Do not advise it if
9036         process-file is fboundp.
9037         * tramp.el (tramp-file-name-handler-alist): Add entry for
9038         process-file.
9039         (tramp-handle-process-file): New function.
9040         (tramp-file-name-for-operation): Support process-file.
9041
9042 2004-10-17  Michael Albinus  <michael.albinus@gmx.de>
9043
9044         * tramp-smb.el (tramp-smb-advice-PC-do-completion): Make the
9045         advice less fragile.  Surround temporary redefinition of
9046         `substitute-in-file-name' with `unwind-protect'.  Suggested by
9047         Matt Hodges <MPHodges@member.fsf.org>.
9048
9049 2004-10-15  John Paul Wallington  <jpw@gnu.org>
9050
9051         * tramp.el (top): Set `edebug-form-spec' property directly rather
9052         than calling `def-edebug-spec'.
9053
9054 2004-10-12  Michael Albinus  <michael.albinus@gmx.de>
9055
9056         * tramp-smb.el (tramp-smb-advice-PC-do-completion): Don't activate
9057         advice during definition.  This is done later on, depending on
9058         test result of `substitute-in-file-name'.  Suggested by Stefan
9059         Monnier <monnier@iro.umontreal.ca>.
9060
9061 2004-10-10  Michael Albinus  <michael.albinus@gmx.de>
9062
9063         * tramp.el (top): Apply `def-edebug-spec' only if function is
9064         defined.  This is not the case for XEmacs without package
9065         "edebug".
9066         (tramp-set-auto-save-file-modes): Set permissions of autosaved
9067         remote files to the permissions of the original file.  This is not
9068         the case for Emacs < 21.3.50 and XEmacs < 21.5.  Add function to
9069         `auto-save-hook'.  Reported by Thomas Prokosch <thomas@nadev.net>.
9070
9071 2004-10-10  Kai Grossjohann  <kai.grossjohann@gmx.net>
9072
9073         * tramp.el (tramp-coding-commands): New entry, uses built-in uu
9074         encoding provided by Perl.  Contributed by Slaven Rezic.  (2
9075         lines.)
9076
9077 2004-09-19  Michael Albinus  <michael.albinus@gmx.de>
9078
9079         Version 2.1.2 released.
9080
9081         * tramp.el (tramp-handle-substitute-in-file-name): Implementation
9082         reworked.  It handles now both "//" and "/~" for URL syntax.
9083         (top): Undefine also "~" in `read-file-name-map' when syntax is
9084         'url.  Needed for XEmacs.
9085
9086         * tramp-efs.el, tramp-ftp.el (top): Add
9087         `tramp-handle-substitute-in-file-name' to respective file name
9088         handler.  Doesn't seem to work for EFS yet.
9089
9090 2004-09-08  Michael Albinus  <michael.albinus@gmx.de>
9091
9092         * tramp.el (tramp-perl-decode): Fixed an error in Perl
9093         implementation.  $pending must be cleared every loop.  Reported by
9094         Benjamin Place <benjaminplace@sprintmail.com>.
9095
9096 2004-09-05  Michael Albinus  <michael.albinus@gmx.de>
9097
9098         * tramp.el (top): Undefine "/" in `read-file-name-map' when syntax
9099         is 'url.  Otherwise, XEmacs would break the syntax with
9100         `minibuffer-electric-separator'.
9101
9102 2004-09-04  Michael Albinus  <michael.albinus@gmx.de>
9103
9104         * tramp-efs.el (all): Rename `tramp-postfix-single-method-*' to
9105         `tramp-postfix-method-*'.
9106
9107 2004-08-31  Michael Albinus  <michael.albinus@gmx.de>
9108
9109         * tramp.el (tramp-maybe-open-connection): The echo command
9110         encloses every single word with '\"'.  Otherwise, the message
9111         could be detected during connection already, and Tramp raises a
9112         false error.
9113
9114 2004-08-29  Michael Albinus  <michael.albinus@gmx.de>
9115
9116         Adding URL syntax.
9117
9118         * tramp.el (tramp-unified-filenames): Renamed to `tramp-syntax'.
9119         (tramp-prefix-format, tramp-prefix-regexp, tramp-method-regexp)
9120         (tramp-postfix-method-regexp, tramp-user-regexp)
9121         (tramp-postfix-user-format, tramp-postfix-user-regexp)
9122         (tramp-host-regexp, tramp-host-with-port-regexp)
9123         (tramp-postfix-host-format, tramp-postfix-host-regexp)
9124         (tramp-localname-regexp, tramp-file-name-structure)
9125         (tramp-file-name-regexp, tramp-completion-file-name-regexp):
9126         Defcustom changed to defconst.  Partly syntax clarified, e.g. no
9127         regexp is optional any longer.
9128         (tramp-postfix-single-method-format): Renamed to
9129         `tramp-postfix-method-format'.
9130         (tramp-prefix-port-format, tramp-prefix-port-regexp)
9131         (tramp-port-regexp, tramp-file-name-regexp-url)
9132         (tramp-completion-file-name-regexp-url): New defconst.
9133         (tramp-file-name-handler-alist): Add entry for
9134         `substitute-in-file-name'.
9135         (tramp-handle-substitute-in-file-name): New defun.
9136         (tramp-do-copy-or-rename-file)
9137         (tramp-do-copy-or-rename-file-out-of-band)
9138         (tramp-maybe-open-connection): Apply
9139         `tramp-host-with-port-regexp'.
9140         (top): Delete autoloaded handlers from file name handler alist
9141         before adding them.  Useful if another syntax is chosen.
9142         (tramp-completion-mode): Some adaptations due to URL syntax.  I'm
9143         not sure whether this is the final implementation.
9144         (tramp-completion-dissect-file-name): Some adaptations due to URL
9145         syntax.  Mainly because `tramp-postfix-method-regexp' matches more
9146         than one char in URL syntax.
9147         (tramp-completion-dissect-file-name1): Simplification of
9148         implementation.
9149
9150         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add entry for
9151         `substitute-in-file-name'.
9152
9153 2004-08-15  Michael Albinus  <michael.albinus@gmx.de>
9154
9155         * tramp.el (tramp-handle-rename-file): Apply t for KEEP-DATE when
9156         calling `tramp-do-copy-or-rename-file'.
9157         (tramp-do-copy-or-rename-file-out-of-band): If KEEP-DATE is true,
9158         and the method doesn't provide a keep-date argument, call
9159         `set-file-times' after copying.
9160
9161 2004-08-14  Michael Albinus  <michael.albinus@gmx.de>
9162
9163         * tramp.el (tramp-methods): "sftp" has nil
9164         `tramp-copy-keep-date-arg'.
9165         (tramp-do-copy-or-rename-file-out-of-band): Handle it.
9166
9167 2004-08-09  Michael Albinus  <michael.albinus@gmx.de>
9168
9169         Version 2.1.1 released.
9170
9171         * tramp.el (tramp-methods): "sftp", "psftp": new external methods.
9172         "plink", "plink1" and "pscp": parameter for port specification is
9173         "-P".
9174
9175 2004-08-06  Michael Albinus  <michael.albinus@gmx.de>
9176
9177         * tramp.el (tramp-post-connection): Quote $1 and $2 of shell
9178         function "tramp_file_attributes".  Otherwise, file names
9179         containing spaces are misinterpreted.  Reported by Magnus Henoch
9180         <mange@freemail.hu>.
9181
9182 2004-08-05  Michael Albinus  <michael.albinus@gmx.de>
9183
9184         * tramp.el (tramp-handle-file-truename): FILENAME must be expanded
9185         first.  Otherwise, parameters like "/ssh:deego@gnufans.net:~" will
9186         return obscure results.  Reported by D. Goel <deego@gnufans.org>.
9187
9188 2004-08-03  Michael Albinus  <michael.albinus@gmx.de>
9189
9190         * tramp.el (tramp-methods): Change custom definition of log-args
9191         to the new syntax.
9192         (tramp-wrong-passwd-regexp): Add "Tramp connection closed" string.
9193         (tramp-maybe-open-connection): Add "echo \"Tramp connection
9194         closed\"" to connection command.  By this, we will see easily when
9195         a connection has failed.
9196
9197 2004-08-02  Michael Albinus  <michael.albinus@gmx.de>
9198
9199         * tramp.el (tramp-methods): Add "(-p" "%p)" in login-args where
9200         applicable for the port kludge.  Arrange login-args as list of
9201         lists, in order to discard a sublist when the corresponding
9202         parameter is not set (like user name, port number).  Adapt
9203         docstring.
9204         (tramp-maybe-open-connection): Change evaluation of login-args
9205         according the the changes above.
9206         (tramp-make-tramp-file-name): Use "%l" as placeholder for the
9207         localname part.  "%p" is used for port numbers now, and we want to
9208         avoid headaches.
9209
9210 2004-08-01  Michael Albinus  <michael.albinus@gmx.de>
9211
9212         * tramp.el (tramp-default-method-alist)
9213         (tramp-default-proxies-alist): Correcting doc string.
9214         (tramp-default-user, tramp-default-user-alist)
9215         (tramp-default-host): New defcustom.
9216         (tramp-do-copy-or-rename-file-out-of-band)
9217         (tramp-handle-expand-file-name, tramp-action-login)
9218         (tramp-buffer-name, tramp-debug-buffer-name)
9219         (tramp-maybe-open-connection)
9220         (tramp-read-passwd, tramp-clear-passwd): Apply `tramp-find-user'
9221         and `tramp-find-host'.
9222         (tramp-find-default-method): Allow nil regexps.
9223         (tramp-find-default-user, tramp-find-user)
9224         (tramp-find-default-host, tramp-find-host): New defun.
9225
9226         * tramp-smb.el (top): Add empty (anonymous) user to
9227         `tramp-default-user-alist' for smb method.
9228
9229 2004-07-31  Michael Albinus  <michael.albinus@gmx.de>
9230
9231         * tramp.el (tramp-maybe-open-connection): Foreign and out-of-band
9232         methods are not supported for multi-hops.
9233
9234 2004-07-30  Michael Albinus  <michael.albinus@gmx.de>
9235
9236         * trampver.el.in (top): Check for (X)Emacs version.  Code is from
9237         macro AC_EMACS_INFO of aclocal.m4.
9238
9239         * tramp.el (top): Remove (X)Emacs version check.
9240         (tramp-maybe-open-connection): Handle nil values in
9241         `tramp-default-proxies-alist'.
9242
9243 2004-07-28  Michael Albinus  <michael.albinus@gmx.de>
9244
9245         * tramp.el (tramp-maybe-open-connection): Set
9246         `coding-system-for-read'.  It was lost last patch.
9247
9248         * tramp-smb.el (all): Don't load "cl-seq", Emacs 19 is out of
9249         scope.  Remove `with-parsed-tramp-file-name' kludge.  Debugging
9250         spec set in tramp.el is sufficient.  Remove multi-method parameter
9251         from `tramp-message-for-buffer' calls.
9252         (tramp-smb-open-connection): Set `coding-system-for-read' to nil.
9253         Check for Emacs 20 is not necessary any longer.
9254
9255         * tramp-ftp.el (top): Don't load "cl-seq", Emacs 19 is out of
9256         scope.
9257
9258 2004-07-26  Michael Albinus  <michael.albinus@gmx.de>
9259
9260         Removing multi-hop methods.  Incorporating proxies.
9261
9262         * tramp.el (all): Check for (X)Emacs version.  Remove (X)Emacs
9263         20.x or 19.x kludges.  Pacify byte-compiler where possible.
9264         Remove all MULTI-METHOD parameters.
9265         (tramp-multi-sh-program, tramp-multi-methods)
9266         (tramp-multi-connection-function-alist)
9267         (tramp-postfix-multi-method-format)
9268         (tramp-postfix-multi-method-regexp)
9269         (tramp-postfix-multi-hop-format, tramp-postfix-multi-hop-regexp)
9270         (tramp-multi-file-name-structure)
9271         (tramp-multi-file-name-hop-structure)
9272         (tramp-make-multi-tramp-file-format, tramp-multi-actions)
9273         (tramp-current-multi-method, tramp-dos-coding-system)
9274         (tramp-buffer-name-multi-method, tramp-multi-action-login)
9275         (tramp-multi-action-password, tramp-multi-action-succeed)
9276         (tramp-multi-action-permission-denied)
9277         (tramp-multi-action-process-alive, tramp-process-one-multi-action)
9278         (tramp-process-multi-actions, tramp-open-connection-telnet)
9279         (tramp-open-connection-rsh, tramp-open-connection-su)
9280         (tramp-open-connection-multi, tramp-multi-connect-telnet)
9281         (tramp-multi-connect-rlogin, tramp-multi-connect-su)
9282         (tramp-dissect-multi-file-name, tramp-make-tramp-multi-file-name):
9283         Removed.
9284         (tramp-methods): Remove all `tramp-connection-function'
9285         parameters.  Expand `tramp-login-args' parameters instead.
9286         Remove "multi" method.
9287         (tramp-default-proxies-alist): New defcustom.
9288         (tramp-maybe-open-connection): Completely rewritten.
9289         (tramp-bug): `tramp-current-multi-method',
9290         `tramp-multi-file-name-structure',
9291         `tramp-multi-file-name-hop-structure', `tramp-multi-methods',
9292         `tramp-multi-connection-function-alist' and `tramp-multi-actions'
9293         removed.  `tramp-default-method-alist' and
9294         `tramp-default-proxies-alist' added.
9295
9296         * tramp-efs.el (all): Remove all MULTI-METHOD parameters.
9297
9298         * tramp-ftp.el (all): Remove all MULTI-METHOD parameters.
9299
9300         * tramp-smb.el (all): Remove all MULTI-METHOD parameters.
9301
9302         * tramp-vc.el (all): Remove all MULTI-METHOD parameters.
9303
9304 2004-07-25  Michael Albinus  <michael.albinus@gmx.de>
9305
9306         * tramp.el (tramp-handle-verify-visited-file-modtime): If file
9307         does not exist, say it is not modified if and only if that agrees
9308         with the buffer's record.
9309         (tramp-handle-write-region): Pass modtime explicitly to
9310         `set-visited-file-modtime', because filename can be different
9311         from (buffer-file-name) if `file-precious-flag' is set.
9312         All changes suggested by Luc Teirlinck <teirllm@auburn.edu>.
9313
9314 2004-07-24  Michael Albinus  <michael.albinus@gmx.de>
9315
9316         * tramp.el (tramp-handle-set-visited-file-modtime): If `time-list'
9317         is not nil, don't apply the whole body.  If the file doesn't
9318         exist, set modtime to '(-1 65535).
9319         (tramp-handle-verify-visited-file-modtime): Check whether a file
9320         is visiting the buffer, or the buffer has no recorded last
9321         modification time.  Return t in case the visiting file doesn't
9322         exists.
9323         (tramp-handle-write-region): `set-visited-file-modtime' must be
9324         called always when `visit' is t or a string.
9325         All changes suggested by Luc Teirlinck <teirllm@auburn.edu>.
9326
9327 2004-07-22  Michael Albinus  <michael.albinus@gmx.de>
9328
9329         * tramp.el (tramp-handle-write-region): `set-visited-file-modtime'
9330         must be called always if `visit' is non-nil. Emacs Lisp
9331         documentation is not clear in this point, `write-region'
9332         implementation clarifies.
9333
9334 2004-07-17  Kai Grossjohann  <kai.grossjohann@gmx.net>
9335
9336         * tramp.el (tramp-handle-verify-visited-file-modtime): Remove
9337         outdated comment.
9338         (tramp-handle-verify-visited-file-modtime): New docstring.  From
9339         Luc Teirlinck.
9340
9341 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
9342
9343         * tramp.el (tramp-handle-verify-visited-file-modtime):
9344         `visited-file-modtime' now returns a list of two integers, instead
9345         of a cons.
9346
9347 2004-07-04  Michael Albinus  <michael.albinus@gmx.de>
9348
9349         * tramp.el (tramp-open-connection-rsh): If a port is given, the
9350         Tramp buffer name must still contain the port number.  Otherwise,
9351         we have two Tramp buffers, with all the confusion.  Reported by
9352         Myron Selby <myron@xytech.com> and Rolf Dubitzky
9353         <Dubitzky@physi.uni-heidelberg.de>.
9354
9355 2004-06-26  Kai Grossjohann  <kai.grossjohann@gmx.net>
9356
9357         * tramp.el (tramp-handle-file-remote-p): New implementation to
9358         agree with new return value of `file-remote-p'.
9359
9360 2004-06-13  Michael Albinus  <michael.albinus@gmx.de>
9361
9362         * tramp.el (tramp-handle-find-backup-file-name): `copy-tree' is
9363         available since Emacs 21.4 only (XEmacs has it).  Implementation
9364         rewritten in order to avoid this function.
9365         (tramp-handle-write-region): Set current buffer.  If connection
9366         wasn't open, `file-modes' has changed it accidently.  Reported by
9367         David Kastrup <dak@gnu.org>.
9368
9369 2004-06-09  Michael Albinus  <michael.albinus@gmx.de>
9370
9371         * tramp.el (tramp-sh-file-name-handler): Leaving this function,
9372         `tramp-locked' must be reset to the same value as during entering.
9373
9374 2004-06-06  Michael Albinus  <michael.albinus@gmx.de>
9375
9376         * tramp.el (tramp-enter-password, tramp-read-passwd): New
9377         arguments USER and HOST.
9378         (tramp-action-password, tramp-multi-action-password): Apply it.
9379
9380         * tramp-smb.el (tramp-smb-open-connection): Apply USER and HOST to
9381         `tramp-enter-passwd'.
9382
9383 2004-06-03  Michael Albinus  <michael.albinus@gmx.de>
9384
9385         * tramp.el (all): Code cleanup.  Change all `tramp-handle-xxx'
9386         calls to respective `xxx` calls.
9387
9388         * tramp-vc.el (all): Code cleanup.  Change all `tramp-handle-xxx'
9389         calls to respective `xxx` calls.
9390
9391 2004-06-01  Michael Albinus  <michael.albinus@gmx.de>
9392
9393         * tramp.el (tramp-process-alive-regexp): Precise doc string.
9394         (tramp-multi-action-process-alive): New defun.
9395         (tramp-multi-actions): Use it.
9396
9397 2004-05-30  Kai Grossjohann  <kai.grossjohann@gmx.net>
9398
9399         * tramp.el (tramp-locked, tramp-locker): New variables for
9400         implementing a global lock.
9401         (tramp-sh-file-name-handler): Use them to implement the global
9402         lock.
9403         (tramp-let-maybe): ReportReverse args of `get'.
9404         (tramp-let-maybe): Move to an earlier spot in the file.  Patch by
9405         Andreas Schwab.
9406         (tramp-handle-file-local-copy-hook): New hook.
9407         (tramp-handle-file-local-copy): Run it.
9408         (tramp-handle-write-region-hook): New hook.
9409         (tramp-handle-write-region): Run it.
9410
9411 2004-05-29  Michael Albinus  <michael.albinus@gmx.de>
9412
9413         * tramp.el (tramp-file-name-handler-alist)
9414         (tramp-file-name-for-operation): Add entry for `file-remote-p'.
9415         (tramp-handle-file-remote-p): New defun.
9416         (top): Remove setting of `file-remote-p'.  Don't set
9417         `inhibit-file-name-handlers' and `inhibit-file-name-operation'.
9418
9419         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add entry for
9420         `file-remote-p'.
9421
9422 2004-05-28  Kai Grossjohann  <kai.grossjohann@gmx.net>
9423
9424         * tramp-smb.el (tramp-smb-open-connection): Use
9425         tramp-set-process-query-on-exit-flag compat function.
9426
9427         * tramp.el (tramp-set-process-query-on-exit-flag): New compat function.
9428         (tramp-open-connection-multi, tramp-open-connection-su)
9429         (tramp-open-connection-rsh, tramp-open-connection-telnet)
9430         (tramp-do-copy-or-rename-file-out-of-band): Use it.
9431         (tramp-let-maybe): New macro, let-binds a variable only if it
9432         isn't obsolete.
9433         (tramp-check-ls-commands, tramp-handle-expand-file-name)
9434         (tramp-handle-file-truename): Use it.
9435
9436 2004-05-23  Michael Albinus  <michael.albinus@gmx.de>
9437
9438         * tramp.el (top): Add `tramp-completion-file-name-handler' to
9439         `inhibit-file-name-handlers', and `file-local-copy' to
9440         `inhibit-file-name-operation'.  Needed for proper working of
9441         `file-remote-p'.
9442
9443 2004-05-20  Michael Albinus  <michael.albinus@gmx.de>
9444
9445         * tramp.el (tramp-out-of-band-prompt-regexp): Renamed to
9446         `tramp-process-alive-regexp', because its usage is widen.
9447         (tramp-actions-copy-out-of-band): Apply it.
9448         (tramp-actions-before-shell, tramp-multi-actions): Add
9449         `tramp-action-process-alive' action.
9450         (tramp-action-process-alive): New defun.
9451         (tramp-process-one-action, tramp-process-one-multi-action): Remove
9452         check for process status.  Will be performed by the respective
9453         action now.  Reported by Ted Stern <stern+tramp-devel@cray.com>.
9454
9455 2004-05-16  Michael Albinus  <michael.albinus@gmx.de>
9456
9457         * tramp-uu.el (tramp-uuencode-region): Padding characters aren't
9458         counted for (last) line.  Reported by Aaron Ucko
9459         <ucko@ncbi.nlm.nih.gov>.
9460
9461         * Makefile.in (TODO): New item, inspired by Kai's change.
9462
9463 2004-05-16  Kai Grossjohann  <kai.grossjohann@gmx.net>
9464
9465         * tramp.el (tramp-completion-file-name-regexp-unified): Avoid
9466         matching filenames starting with "/:" -- those are reserved for
9467         file-name-non-special.
9468
9469 2004-05-13  Michael Albinus  <michael.albinus@gmx.de>
9470
9471         * tramp.el (tramp-process-one-action)
9472         (tramp-process-one-multi-action, tramp-wait-for-regexp)
9473         (tramp-wait-for-output): Throw away if process has died. Reported
9474         by Luc Teirlinck <teirllm@dms.auburn.edu>.
9475
9476 2004-05-12  Kai Grossjohann  <kgrossjo@eu.uu.net>
9477
9478         * tramp.el (tramp-initial-commands): Add "unset HISTFILE"; this is
9479         not really necessary but seems to keep the shell history smaller
9480         in some cases.  It is no substitute for setting HISTFILE and
9481         HISTSIZE from tramp-open-connection-setup-interactive-shell,
9482         though.  Suggested by Luc Teirlinck.
9483         (tramp-open-connection-setup-interactive-shell): Export variables
9484         HISTFILE and HISTSIZE, do not just set them.  From Luc Teirlinck.
9485
9486 2004-05-02  Kai Grossjohann  <kgrossjo@eu.uu.net>
9487
9488         Version 2.0.40 released.
9489
9490 2004-05-01  Michael Albinus  <michael.albinus@gmx.de>
9491
9492         Suppress byte-compiler warnings were possible.
9493
9494         * tramp.el (toplevel): Call of `byte-compiler-options' pacified.
9495         `directory-sep-char' set to not obsolete (we need it for XEmacs).
9496         Define `last-coding-system-used' in XEmacs case.  Pacify
9497         declarations of `backup-directory-alist',
9498         `bkup-backup-directory-info' and
9499         `tramp-save-PC-expand-many-files'.
9500         (tramp-feature-write-region-fix): Pacify funcall of
9501         `find-operation-coding-system'.
9502         (tramp-line-end-position): Pacify funcall of `line-end-position'
9503         and `point-at-eol'.
9504         (tramp-handle-dired-compress-file): Pacify funcall of
9505         `dired-remove-file'.
9506         (tramp-handle-find-backup-file-name): Pacify access to
9507         `tramp-backup-directory-alist' and
9508         `tramp-bkup-backup-directory-info'.
9509         (tramp-touch): `error' needs just one parameter if there is no
9510         string substitution.
9511         (tramp-bug): `tramp-backup-directory-alist',
9512         `tramp-bkup-backup-directory-info', `backup-directory-alist' and
9513         `bkup-backup-directory-info' must be quoted as symbols.
9514
9515         * tramp-efs.el (toplevel): Suppress byte-compiler warnings.
9516
9517         * tramp-smb.el (toplevel): Suppress byte-compiler warnings.
9518         Define `last-coding-system-used' in XEmacs case.
9519
9520         * tramp-vc.el (toplevel): Suppress byte-compiler warnings.
9521         (tramp-vc-do-command-new): Pacify funcall of `vc-setup-buffer' and
9522         `vc-exec-after'.
9523         (tramp-vc-workfile-unchanged-p): Pacify funcall of
9524         `vc-default-workfile-unchanged-p'.
9525         (tramp-handle-vc-user-login-name): Pacify funcall of
9526         `subr-arity'. `let' must be `let*' because of `file'.
9527
9528 2004-04-29  Kai Grossjohann  <kgrossjo@eu.uu.net>
9529
9530         * tramp.el (tramp-read-passwd): Construct the key for the password
9531         cache in a way that works for multi methods, too.
9532         (tramp-bug): Add backup-directory-alist and
9533         bkup-backup-directory-info to bug reports, with Tramp
9534         counterparts.
9535
9536 2004-04-25  Michael Albinus  <Michael.Albinus@alcatel.de>
9537
9538         * tramp.el (tramp-backup-directory-alist)
9539         (tramp-bkup-backup-directory-info): New defcustoms.
9540         (tramp-file-name-handler-alist): Add entry for
9541         `find-backup-file-name'.
9542         (tramp-handle-find-backup-file-name): New function.  Implements
9543         Tramp's find-backup-file-name.
9544
9545         * tramp-smb.el (tramp-smb-file-name-handler-alist): Add entry for
9546         `find-backup-file-name'.
9547
9548 2004-04-09  Michael Albinus  <Michael.Albinus@alcatel.de>
9549
9550         * tramp.el (tramp-do-copy-or-rename-file-via-buffer): Set
9551         permissions of the new file.
9552         (tramp-handle-file-local-copy, tramp-handle-write-region): The
9553         permissions of the temporary file are set if filename exists.
9554         Reported by Ted Stern <stern@cray.com>.
9555
9556 2004-04-07  Kai Grossjohann  <kgrossjo@eu.uu.net>
9557
9558         * tramp.el (tramp-open-connection-setup-interactive-shell):
9559         Revert weird EOL setting for first stty command (change from
9560         2004-03-30).
9561
9562 2004-04-02  Michael Albinus  <Michael.Albinus@alcatel.de>
9563
9564         * tramp.el (tramp-handle-insert-directory): Properly quote file
9565         name also if not full-directory-p.  Handle wildcard case.
9566         Reported by Andreas Schwab <schwab@suse.de>.
9567
9568 2004-03-30  Kai Grossjohann  <kgrossjo@eu.uu.net>
9569
9570         * tramp.el (tramp-open-connection-setup-interactive-shell):
9571         First stty command needs weird EOL setting -- it is for setting
9572         EOL setting...  Due to the weird EOL, we might receive garbage
9573         from the remote end which b0rks the next command.  So we add a
9574         placeholder command for this.
9575
9576 2004-03-28  Kai Grossjohann  <kgrossjo@eu.uu.net>
9577
9578         * tramp.el (tramp-process-initial-commands): Avoid liveness check
9579         on shell -- we know that it must be alive since we're opening a
9580         connection at this moment.
9581         (tramp-last-cmd): New internal variable.
9582         (tramp-process-echoes): New tunable.
9583         (tramp-send-command): Set tramp-last-cmd.
9584         (tramp-wait-for-output): Delete echo, if applicable.
9585
9586 2004-03-21  Michael Albinus  <Michael.Albinus@alcatel.de>
9587
9588         * tramp.el (tramp-touch): FILE can be a local file, too.
9589         (TODO): Remove items done.
9590
9591 2004-03-14  Michael Albinus  <Michael.Albinus@alcatel.de>
9592
9593         * Makefile.in: New environment variables $(CONTRIB_FILES) and
9594         $(INSTALL_FILES).  Don't check for $(USE_CONTRIB) any longer.
9595         (all): Depends on $(CONTRIB_FILES), too.
9596         (install): Copy $(INSTALL_FILES) but $?.
9597         (distclean): Remove also $(CONTRIB_FILES).
9598
9599 2004-03-13  Kai Grossjohann  <kgrossjo@eu.uu.net>
9600
9601         * tramp.el (tramp-do-copy-or-rename-file-via-buffer): Renamed
9602         from tramp-do-copy-or-rename-via-buffer (without `file'), to make
9603         it consistent with the other tramp-do-* functions.
9604         (tramp-do-copy-or-rename-file): Calls adjusted.
9605
9606 2004-03-08  Michael Albinus  <Michael.Albinus@alcatel.de>
9607
9608         * tramp.el (tramp-out-of-band-prompt-regexp)
9609         (tramp-actions-copy-out-of-band): New defcustoms.
9610         (tramp-do-copy-or-rename-file-out-of-band): Asynchronous process
9611         used instead of a synchronous one.  Allows password entering.
9612         (tramp-action-out-of-band): New defun.
9613         (tramp-open-connection-rsh, tramp-method-out-of-band-p): Remove
9614         restriction with password from doc string.
9615         (tramp-bug): Add variables `tramp-terminal-prompt-regexp',
9616         `tramp-out-of-band-prompt-regexp',
9617         `tramp-actions-copy-out-of-band', `password-cache' and
9618         `password-cache-expiry'.
9619         (toplevel): Remove todo item wrt ssh-agent.  Obsolete due to
9620         password caching.
9621
9622 2004-03-05  Michael Albinus  <Michael.Albinus@alcatel.de>
9623
9624         * Makefile.in (.PHONY): Remove unused targets.
9625         (install): Depends on "all".
9626
9627         * tramp-vc.el (tramp-vc-workfile-unchanged-p): Correct typo
9628         ("file" -> "filename").  Reported by Kim F. Storm <storm@cua.dk>.
9629
9630 2004-03-02  Kai Grossjohann  <kgrossjo@eu.uu.net>
9631
9632         * tramp.el (tramp-completion-mode, tramp-md5-function): Use
9633         symbol-function to invoke functions only known on some Emacs
9634         flavors.  This avoids byte-compiler warnings.  Reported by Kevin
9635         Scaldeferri <kevin@scaldeferri.com>.
9636
9637 2004-02-29  Kai Grossjohann  <kgrossjo@eu.uu.net>
9638
9639         * Makefile.in (install-ftp, site-lisp): Remove unused targets.
9640
9641         Version 2.0.39 released.
9642
9643 2004-02-29  Michael Albinus  <Michael.Albinus@alcatel.de>
9644
9645         * tramp.el (top-level): Require password.el if visible.  Should be
9646         mandatory once No Gnus has found its way into (X)Emacs.
9647         (tramp-read-passwd): Invoke `password-read' if available,
9648         `read-passwd' otherwise. `ange-ftp-read-passwd' isn't used as
9649         fallback any longer.
9650         (tramp-clear-passwd): New function.
9651         (tramp-process-actions, tramp-process-multi-actions): Clear
9652         password cache if login has failed.
9653
9654         * tramp-smb.el (tramp-smb-open-connection): Clear password cache
9655         if login has failed.
9656
9657 2004-02-23  Kai Grossjohann  <kai@emptydomain.de>
9658
9659         * tramp.el (tramp-handle-write-region): Say which function is used
9660         when encoding.
9661
9662 2004-02-16  Michael Albinus  <Michael.Albinus@alcatel.de>
9663
9664         * tramp.el (tramp-async-proc): New variable.
9665         (tramp-handle-shell-command): Adding asynchronous processes.  They
9666         are far from being perfect, but it works at least for
9667         `find-grep-dired' and `find-name-dired' in Emacs 21.4.
9668
9669 2004-02-09  Michael Albinus  <Michael.Albinus@alcatel.de>
9670
9671         * tramp.el (tramp-handle-dired-compress-file): Added XEmacs
9672         implementation.
9673         (tramp-handle-dired-compress-file-for-emacs)
9674         (tramp-handle-dired-compress-file-for-xemacs): Not needed
9675         anymore.  Implementation not so different as expected.
9676
9677 2004-02-08  Michael Albinus  <Michael.Albinus@alcatel.de>
9678
9679         * tramp.el (tramp-file-name-handler-alist): Add
9680         `dired-compress-file' entry.
9681         (tramp-handle-dired-compress-file)
9682         (tramp-handle-dired-compress-file-for-emacs)
9683         (tramp-handle-dired-compress-file-for-xemacs): New functions.
9684         `tramp-handle-dired-compress-file-for-xemacs' not implemented yet.
9685
9686 2004-01-24  Michael Albinus  <Michael.Albinus@alcatel.de>
9687
9688         * tramp-ftp.el (tramp-ftp-file-name-handler): Unset
9689         `ange-ftp-ftp-name-arg' and `ange-ftp-ftp-name-res'.  There could
9690         be incorrect values from previous calls in case the "ftp" method
9691         is used in the Tramp file name.  Reported by Katsumi Yamaoka
9692         <yamaoka@jpl.org>.
9693
9694 2004-01-22  Michael Albinus  <Michael.Albinus@alcatel.de>
9695
9696         * tramp.el (tramp-completion-function-alist-ssh): Add
9697         `tramp-parse-shostkeys' and `tramp-parse-sknownhosts'.
9698         (tramp-completion-function-alist): It's a defvar now, because we
9699         want to apply the optimized `tramp-set-completion-function'
9700         instead of a static list.
9701         (tramp-set-completion-function): Implementation tuned.  Avoid
9702         double entries, and entries where the function or the
9703         file/directory doesn't exist.
9704         (tramp-parse-shostkeys, tramp-parse-sknownhosts): New functions
9705         for SSH2.
9706
9707 2004-01-18  Michael Albinus  <Michael.Albinus@alcatel.de>
9708
9709         * tramp.el (tramp-do-copy-or-rename-file): Handle out-of-band
9710         methods.  Call `tramp-do-copy-or-rename-file-out-of-band' this
9711         case.
9712         (tramp-do-copy-or-rename-file-out-of-band): Renamed from
9713         `tramp-do-copy-or-rename-file-one-local', because it handles also
9714         the case both files use the same out-of-band method.
9715         Implementation added.
9716         (tramp-handle-file-local-copy, tramp-handle-write-region):
9717         Out-of-band handling removed.  `copy-file' called instead, which
9718         calls `tramp-do-copy-or-rename-file-out-of-band'.
9719         (tramp-action-password): Check for out-of-band method removed.
9720         This function is used for 'login-program.
9721         (tramp-post-connection): Use `tramp-method-out-of-band-p' when
9722         appropriate.
9723
9724 2004-01-18  Kai Grossjohann  <kai@slowfox.dyndns.org>
9725
9726         * tramp.el (tramp-do-copy-or-rename-via-buffer): Handle KEEP-DATE
9727         arg, if possible.
9728         (tramp-touch): Set last-modified time of a remote file.
9729
9730 2004-01-10  Michael Albinus  <Michael.Albinus@alcatel.de>
9731
9732         * tramp-smb.el (tramp-smb-get-file-entries): In case of XEmacs,
9733         apply a short sleep-for.  Otherwise it returns an empty list.
9734         No idea what happens.
9735
9736 2004-01-08  Michael Albinus  <Michael.Albinus@alcatel.de>
9737
9738         * tramp.el (tramp-buffer-name): Buffer name must contain the user
9739         if exists.  Reported by Adrian Phillips <a.phillips@met.no>.
9740
9741 2004-01-06  Michael Albinus  <Michael.Albinus@alcatel.de>
9742
9743         * tramp.el (tramp-completion-mode): Make test for XEmacs
9744         explicitly.  `event-to-character' can exists in Emacs packages
9745         too.  Reported by Matt Swift <swift@alum.mit.edu>.
9746
9747 2004-01-05  Michael Albinus  <Michael.Albinus@alcatel.de>
9748
9749         * tramp-smb.el (tramp-smb-maybe-open-connection): Use
9750         `tramp-process-connection-type'.
9751
9752 2004-01-03  Kai Grossjohann  <kai@slowfox.dyndns.org>
9753
9754         * tramp.el (tramp-process-connection-type): New variable.
9755         (tramp-maybe-open-connection): Use it.
9756
9757 2004-01-03  Kai Grossjohann  <kai@emptydomain.de>
9758
9759         * tramp.el (tramp-handle-file-local-copy)
9760         (tramp-handle-write-region, tramp-open-connection-rsh): Variable
9761         name typo.  Small change.  From Patrick Tullmann
9762         <tullmann@flux.utah.edu>.
9763
9764 2003-12-27  Michael Albinus <Michael.Albinus@alcatel.de>
9765
9766         * tramp.el (tramp-completion-mode): Add XEmacs input
9767         events. Until now it was not necessary, because they are
9768         evaluated in case of unified filenames only.
9769
9770         * tramp-efs.el (top): Add all XEmacs download sites to
9771         `tramp-default-method-alist'.  The existing settings should be
9772         sufficient already, but it's better to make it explicitly.
9773         (tramp-efs-method-given, tramp-efs-method-regexp): New variables.
9774         (tramp-efs-path-regexp, tramp-efs-path-format-string)
9775         (tramp-efs-path-format-without-user)
9776         (tramp-efs-path-user-at-host-format)
9777         (tramp-efs-path-host-format, tramp-efs-path-root-regexp): Changed
9778         to a function.  Their values depend on the existence of the method
9779         tag in filename.
9780         (tramp-efs-file-name-handler): Check first whether the method tag
9781         is given in a filename.
9782         (tramp-efs-file-name-p): A syntax check must be performed first,
9783         otherwise `tramp-dissect-file-name' returns with an error.
9784
9785         * tramp-ftp.el (Commentary): Removing pointer to EFS.  It has its
9786         own module.
9787
9788         * tramp-smb.el (top): Setting default value in
9789         `tramp-default-method-alist' corrected.  Order of USER and HOST
9790         have been wrong.  Nobody claimed for months ...
9791
9792 2003-12-25  Michael Albinus  <Michael.Albinus@alcatel.de>
9793
9794         * tramp.el (tramp-completion-mode) Don't check for 'xemacs but
9795         `tramp-unified-filenames'.
9796
9797 2003-12-21  Michael Albinus  <Michael.Albinus@alcatel.de>
9798
9799         * tramp-smb.el (tramp-smb-errors): Add "NT_STATUS_WRONG_PASSWORD"
9800         and "NT_STATUS_NETWORK_ACCESS_DENIED".
9801         (tramp-smb-maybe-open-connection): Set `process-connection-type'
9802         to 'pty.  Suggested by Piet van Oostrum <piet@cs.uu.nl>.
9803
9804 2003-12-19  Michael Albinus  <Michael.Albinus@alcatel.de>
9805
9806         * tramp-smb.el (tramp-smb-process-running): Removed.  Since we
9807         acknowledge the virtual prompt for shares, there's no need for
9808         distinction of reading shares (process ends afterwards) and
9809         interactive mode of smblient.
9810         (tramp-smb-open-connection): Setting process sentinel removed.
9811         (tramp-smb-wait-for-output): Algorithm simplified, again.  Hope it
9812         is more robust, too.
9813
9814 2003-12-14  Michael Albinus  <Michael.Albinus@alcatel.de>
9815
9816         * tramp-smb.el (tramp-smb-prompt): Add virtual prompt from
9817         listing shares, too.
9818         (tramp-smb-errors): Add "NT_STATUS_ACCOUNT_LOCKED_OUT".
9819         (tramp-smb-wait-for-output): Optimize algorithm getting pending
9820         output.  If it was received chunkwise, there have been problems.
9821         Remove the "prompt not found" error message; it is obvious.
9822
9823 2003-12-06  Michael Albinus  <Michael.Albinus@alcatel.de>
9824
9825         * tramp-smb.el (tramp-smb-handle-file-writable-p): Handle the case
9826         of non-existing filename, too.  Reported by Christoph Bauer
9827         <c_bauer@informatik.uni-kl.de>.
9828         (tramp-smb-get-file-entries): The directory in question should
9829         have permissions "drwxrwxrwx".  Just virtual, because we don't
9830         know the real permissions.  Don't we know?
9831
9832 2003-11-30  Kai Grossjohann  <kai.grossjohann@gmx.net>
9833
9834         Version 2.0.38 released.
9835
9836 2003-11-30  Kai Grossjohann  <kai.grossjohann@gmx.net>
9837
9838         * tramp-ftp.el, tramp-smb.el, tramp-util.el, tramp-uu.el:
9839         * tramp-vc.el, tramp.el, trampver.el.in: Add arch tagline.
9840
9841 2003-11-29  Kai Grossjohann  <kai.grossjohann@gmx.net>
9842
9843         Version 2.0.37 released.
9844
9845 2003-11-25  Michael Albinus  <Michael.Albinus@alcatel.de>
9846
9847         * tramp.el: Add new optional parameter ID-FORMAT to
9848         `file-attributes'.  Calls of `file-attributes' won't use this
9849         parameter for backward compatibility reasons.
9850         (tramp-perl-file-attributes): Add a new parameter to Perl script
9851         in order to handle uid/gid as strings, if desired.
9852         (tramp-handle-file-truename, tramp-handle-file-symlink-p): Apply
9853         `file-attributes' instead of `tramp-handle-file-attributes' in
9854         order to make the function more general.
9855         (tramp-handle-file-attributes): Replace proprietary optional
9856         parameter NONNUMERIC by the recently (Emacs 21.4) introduced
9857         ID-FORMAT.
9858         (tramp-handle-file-attributes-with-perl): Handle parameter
9859         NONNUMERIC if set. This wasn't done in the past.
9860         (tramp-post-connection): Apply second parameter "$2" if
9861         `tramp-remote-perl' is called.
9862
9863         * tramp-smb.el (tramp-smb-handle-delete-file): Correct cut'n'waste
9864         error (`filename' instead of `directory').
9865         (tramp-smb-handle-directory-files-and-attributes)
9866         (tramp-smb-handle-file-attributes): Add recently (Emacs 21.4)
9867         introduced parameter ID-FORMAT.
9868         (tramp-smb-handle-make-directory-internal): Correct cut'n'waste
9869         error (`directory' instead of `ldir').
9870
9871         * tramp-vc.el (tramp-handle-vc-user-login-name): Check if
9872         `file-attributes' has a second parameter.  If yes, apply it with
9873         value "'integer".  Otherwise, don't use that parameter (default
9874         is integer format).
9875
9876 2003-11-02  Michael Albinus  <Michael.Albinus@alcatel.de>
9877
9878         * tramp-ftp.el, tramp.el: Add new Todo item.
9879
9880 2003-08-09  Kai Großjohann  <kai.grossjohann@gmx.net>
9881
9882         * tramp.el (tramp-get-connection-function, tramp-get-remote-sh)
9883         (tramp-get-login-program, tramp-get-login-args)
9884         (tramp-get-copy-program, tramp-get-copy-args)
9885         (tramp-get-copy-keep-date-arg, tramp-get-password-end-of-line):
9886         Functions removed.  Use `tramp-get-method-parameter' instead.
9887         (tramp-get-method-parameter): New function to retrieve a method
9888         parameter.  This allows for omission of method parameters.
9889         (tramp-handle-file-local-copy, tramp-handle-write-region)
9890         (tramp-find-shell, tramp-open-connection-telnet)
9891         (tramp-open-connection-rsh, tramp-open-connection-su)
9892         (tramp-enter-password)
9893         (tramp-open-connection-setup-interactive-shell)
9894         (tramp-post-connection, tramp-maybe-open-connection)
9895         (tramp-method-out-of-band-p): Use new function
9896         `tramp-get-method-parameter'.
9897
9898 2003-08-08  Kai Großjohann  <kai.grossjohann@gmx.net>
9899
9900         * tramp.el (tramp-multi-connection-function-alist): Add ssht
9901         entry which adds "-e none -t -t" to the list of ssh args.
9902         Suggested by Adrian Aichner.
9903
9904 2003-07-30  Kai Großjohann  <kai.grossjohann@gmx.net>
9905
9906         * tramp.el (tramp-chunksize): Extend docstring.  Suggested by
9907         Charles Curley <charlescurley@charlescurley.com>.
9908
9909 2003-07-26  Michael Albinus  <Michael.Albinus@alcatel.de>
9910
9911         * Makefile.in (.PHONY): Add `xemacs'.
9912
9913 2003-07-26  Kai Großjohann  <kai.grossjohann@gmx.net>
9914
9915         * Makefile.in (xemacs): New target to copy files to XEmacs
9916         working dir.  (For use by Kai only.)
9917
9918 2003-07-20  Kai Großjohann  <kai.grossjohann@gmx.net>
9919         Version 2.0.36 released.
9920
9921         * tramp.el (tramp-default-password-end-of-line): Renamed from
9922         tramp-password-end-of-line.
9923         (tramp-password-end-of-line): New method parameter.
9924         (tramp-get-password-end-of-line): Function to access method
9925         parameter `tramp-password-end-of-line', or variable
9926         `tramp-default-password-end-of-line' (default value).
9927         (tramp-methods): Add entries for new parameter
9928         tramp-password-end-of-line.
9929         (tramp-enter-password): Use new function
9930         `tramp-get-password-end-of-line'.
9931
9932 2003-07-15  Michael Albinus  <Michael.Albinus@alcatel.de>
9933
9934         * Makefile.in (LISP_FILES): tramp-ftp.el is conditional, too.
9935         (install): Install only files belonging to the respective Emacs
9936         flavour.
9937
9938 2003-07-14  Michael Albinus  <Michael.Albinus@alcatel.de>
9939
9940         * Makefile.in (LISP_FILES): New variable.  Used to distinguish
9941         collection of *.el files for Emacs and XEmacs.
9942         Reported by Sven Utcke <utcke@informatik.uni-hamburg.de>.
9943         (EM): Use `-vanilla' option for XEmacs call.
9944         (all): Depends on $(LISP_FILES).
9945
9946 2003-07-14  Kai Großjohann  <kai.grossjohann@gmx.net>
9947
9948         * Makefile.in (MKDIR): New variable.
9949         (install): Create installation directory, if necessary.
9950
9951 2003-07-03  Kai Großjohann  <kai.grossjohann@gmx.net>
9952
9953         * tramp.el (tramp-handle-insert-file-contents): Do not
9954         unconditionally inhibit the file operation file-local-copy, only
9955         do that when the inhibit-file-name-operation is currently
9956         insert-file-contents.  This fixes finding remote CVS-controlled
9957         files.  (It would barf on inserting the CVS/Entries file
9958         literally, because the file-local-copy handler wasn't called.)
9959         (tramp-handle-shell-command): Support optional third arg
9960         ERROR-BUFFER.
9961
9962         * tramp-vc.el (vc-workfile-unchanged-p): Add comment.
9963
9964 2003-06-30  Kai Großjohann  <kai.grossjohann@gmx.net>
9965
9966         * tramp.el (tramp-sh-extra-args): Test whether widget type
9967         `alist' is available (instead of testing (featurep 'xemacs)).
9968
9969 2003-06-27  Kai Großjohann  <kai.grossjohann@gmx.net>
9970
9971         * tramp.el (tramp-sh-extra-args): Adapt defcustom type to XEmacs.
9972
9973 2003-06-24  Kai Großjohann  <kai.grossjohann@gmx.net>
9974
9975         * tramp.el (tramp-initial-commands): New variable.
9976         (tramp-process-initial-commands): New function, using the variable.
9977         (tramp-open-connection-setup-interactive-shell): Call the new
9978         function.
9979         (tramp-buffer-name, tramp-debug-buffer-name): Always put the
9980         method into the buffer name, never use nil.  Reported by Hanak
9981         David <dhanak@inf.bme.hu>.
9982         (tramp-open-connection-setup-interactive-shell): Erase buffer
9983         before sending "stty -onlcr".  Maybe this leads to just one
9984         prompt on a line.
9985
9986 2003-06-17  Kai Großjohann  <kai.grossjohann@gmx.net>
9987         Version 2.0.35 released.
9988
9989         * tramp.el (tramp-shell-prompt-pattern): Allow space after escape
9990         sequence.
9991
9992 2003-06-16  Kai Großjohann  <kai.grossjohann@gmx.net>
9993
9994         * tramp.el (tramp-shell-prompt-pattern): Allow multiple escape
9995         sequences.
9996
9997         * tramp-uu.el:
9998         * tramp-util.el:
9999         * tramp-efs.el: Use iso-2022-7bit encoding with coding cookie for
10000         XEmacs compatibility.
10001
10002 2003-06-12  Kai Großjohann  <kai.grossjohann@gmx.net>
10003
10004         * tramp.el (tramp-handle-copy-file): Set file modes of target
10005         file.
10006         (tramp-handle-file-local-copy)
10007         (tramp-do-copy-or-rename-via-buffer): Use binary coding system,
10008         instead of no-conversion.  They are the same on Emacs but
10009         different on XEmacs.
10010
10011 2003-06-08  Kai Großjohann  <kai.grossjohann@gmx.net>
10012
10013         * tramp.el (tramp-handle-file-newer-than-file-p):
10014         `tramp-time-diff' returns integer, not list.  Do not apply `car'
10015         to the return value of `tramp-time-diff'.  Reported by David
10016         D. Smith <ultrasoul@ultrasoul.com>.
10017         (tramp-time-diff): Convert return value of subtract-time to a
10018         number of seconds in a correct manner, by applying float-time or
10019         time-to-seconds.  Also correct compat code accordingly.  The
10020         XEmacs branch for itimer-time-difference didn't need correction,
10021         it returned a float already.  Reported by David D. Smith
10022         <ultrasoul@ultrasoul.com>.
10023         (tramp-handle-insert-file-contents): When calling
10024         `file-local-copy', let-bind `inhibit-file-name-operation'
10025         accordingly.  This makes sure that jka-compr is not called when
10026         `insert-file-contents-literally' is invoked.  From Katsumi Yamaoka
10027         <yamaoka@jpl.org>.
10028         (tramp-do-copy-or-rename-via-buffer): Avoid calling jka-compr when
10029         writing the target file.
10030         (tramp-foreign-file-name-handler-alist): Add comment about default
10031         value having to come last.
10032         (tramp-handle-file-local-copy, tramp-handle-write-region): Add the
10033         "-p" hack.
10034
10035 2003-06-08  Kai Großjohann  <kai.grossjohann@gmx.net>
10036
10037         * tramp.el (tramp-find-foreign-file-name-handler): Return after
10038         first match is found.  From Francis Litterio <franl@world.std.com>.
10039
10040 2003-05-31  Kai Großjohann  <kai.grossjohann@gmx.net>
10041
10042         * tramp.el: Factor out the `regular' file name handling via a
10043         remote shell of some sort into a specific function.  Intent is to
10044         later put that part of Tramp into a special file, so that the
10045         Tramp `core' is just a dispatcher that dispatches to various
10046         handlers.
10047         (tramp-sh-file-name-handler): New function.
10048         (tramp-foreign-file-name-handler-alist): New default value.  Call
10049         tramp-sh-file-name-handler as default case.
10050         (tramp-file-name-handler): Do not invoke the old remote-shell
10051         handler.
10052
10053 2003-05-24  Michael Albinus  <Michael.Albinus@alcatel.de>
10054
10055         * Makefile.in (EM): Use `--no-site-file' option for Emacs call, in
10056         order to avoid loading of Tramp in site specific init files.
10057         Reported by Harry Putnam <reader@newsguy.com>.
10058         (.PHONY): New target.
10059         (all): "trampver.el" and "tramp.el" must be handled first due to
10060         dependencies.
10061
10062         * tramp.el (tramp-completion-function-alist): Add completion
10063         function for "remcp", "remsh" and "plink1".
10064
10065 2003-05-24  Kai Großjohann  <kai.grossjohann@gmx.net>
10066
10067         * tramp.el (tramp-password-end-of-line): Use "xy" with plink.
10068
10069 2003-05-21  Kai Großjohann  <kai.grossjohann@gmx.net>
10070
10071         Version 2.0.34 released.
10072
10073         * tramp.el (tramp-shell-prompt-pattern): Allow ANSI escapes at
10074         end of prompt.  (ANSI escapes elsewhere in the prompt are
10075         recognized properly already.)
10076
10077 2003-05-18  Kai Großjohann  <kai.grossjohann@gmx.net>
10078
10079         * tramp.el (tramp-methods): New method plink1.  Like plink but
10080         pass "-1" to force protocol version 1.
10081
10082 2003-05-14  Kai Großjohann  <kai.grossjohann@gmx.net>
10083
10084         * tramp.el (tramp-completion-file-name-handler): Add safe-magic
10085         property.
10086
10087 2003-05-06  Kai Großjohann  <kai.grossjohann@gmx.net>
10088
10089         * tramp.el (tramp-default-method): Use plink as the default on
10090         machines where the plink program is present.
10091
10092 2003-05-03  Kai Großjohann  <kai.grossjohann@gmx.net>
10093
10094         * tramp.el (tramp-methods): Unify tramp-rsh-program,
10095         tramp-telnet-program, tramp-su-program into tramp-login-program.
10096         Likewise with tramp-login-args, tramp-copy-program,
10097         tramp-copy-args, tramp-copy-keep-date-arg.
10098         Users changed.
10099
10100 2003-05-03  Kai Großjohann  <kai.grossjohann@gmx.net>
10101
10102         * tramp.el (tramp-methods): Old entries "rsh" and "rcp"
10103         unconditionally invoke rsh now.  New entries "remsh" and "remcp"
10104         unconditionally invoke remsh now.
10105         (tramp-real-rsh-program): Remove.
10106         (tramp-multi-connection-function-alist): Old entry "rsh"
10107         unconditionally invokes rsh now.  New entry "remsh" invokes remsh.
10108
10109 2003-04-27  Kai Großjohann  <kai.grossjohann@gmx.net>
10110
10111         * tramp.el (tramp-real-rsh-program): Explain strategy for
10112         choosing default value.
10113
10114 2003-04-25  Michael Albinus  <Michael.Albinus@alcatel.de>
10115
10116         * tramp.el (tramp-real-rsh-program): "remsh" is used on Cray
10117         machines, too.  Suggested by Ted Stern
10118         <stern+tramp-devel@cray.com>.
10119         (tramp-methods, tramp-multi-connection-function-alist): The list
10120         must be backquoted, because the value of `tramp-real-rsh-program'
10121         is needed.  No trailing space needed in the password argument of
10122         sudo `tramp-su-args'.  Reported by my friendly supervisor Kai
10123         Großjohann <kai.grossjohann@gmx.net>.
10124
10125 2003-04-24  Michael Albinus  <Michael.Albinus@alcatel.de>
10126
10127         * tramp.el (tramp-real-rsh-program): New constant.  On HP-UX, the
10128         "rsh" program is called "remsh".
10129         (tramp-methods, tramp-multi-connection-function-alist): Apply
10130         `tramp-real-rsh-program'.  Use "-p Password:\ " for "sudo" method,
10131         because password prompt might be changed by either passprompt
10132         option in /etc/sudoers, or SUDO_PROMPT environment variable.
10133         Suggested by Peter Oliver <peter.oliver@aquila-networks.co.uk>.
10134
10135 2003-04-18  Kai Großjohann  <kai.grossjohann@gmx.net>
10136
10137         * tramp-efs.el: New file.
10138
10139         * tramp.el (tramp-handle-expand-file-name): Make default method
10140         explicit in file name.
10141         (tramp-unified-filenames): Move to an earlier spot in the file.
10142         (top-level): If tramp-unified-filenames is set and we're running
10143         on XEmacs, load tramp-efs.
10144         (tramp-wait-for-shell-prompt, tramp-barf-if-no-shell-prompt): New
10145         functions, used by tramp-send-command-internal.
10146         (tramp-open-connection-setup-interactive-shell): Simplify using
10147         `tramp-send-command-internal'.
10148         (tramp-send-command-internal): New function.
10149
10150 2003-04-14  Michael Albinus  <Michael.Albinus@alcatel.de>
10151
10152         * tramp.el (tramp-handle-file-truename): `sym' shouldn't be quoted.
10153
10154 2003-04-08  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10155
10156         * tramp.el (tramp-handle-file-symlink-p): If target of symlink is
10157         absolute, return a Tramp filename.  (Ie, return
10158         "/user@host:/target" instead of "/target".)
10159         (tramp-handle-file-truename): Deal with new return value from
10160         `file-symlink-p'.
10161
10162 2003-04-08  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10163
10164         Version 2.0.33 released.
10165         Version 2.0.32 released.
10166
10167 2003-04-04  Andreas Schwab  <schwab@suse.de>
10168
10169         * tramp.el (tramp-send-string): Handle empty string.
10170
10171 2003-04-04  Michael Albinus  <Michael.Albinus@alcatel.de>
10172
10173         * tramp-ftp.el (tramp-ftp-file-name-handler):
10174         'ange-ftp-file-directory-p` calls 'file-directory-p` as
10175         well.  Disabling of file-name-handler not appropriate, too.
10176
10177 2003-04-02  Kai Großjohann  <kai.grossjohann@gmx.net>
10178
10179         * tramp.el: Change actual encoding of file to match coding cookie.
10180
10181 2003-04-02  Steve Youngs  <youngs@xemacs.org>
10182
10183         * tramp.el: Change coding cookie to 'iso-2022-7bit' to get around
10184         a bug in non-Mule XEmacs 21.5.
10185
10186 2003-03-30  Michael Albinus  <Michael.Albinus@alcatel.de>
10187
10188         * tramp-ftp.el (tramp-ftp-file-name-handler): In
10189         'ange-ftp-file-exists-p`, 'file-exists-p` is called in case of
10190         symlinks.  So we cannot disable the file-name-handler this case.
10191
10192 2003-03-29  Kai Großjohann  <kai.grossjohann@gmx.net>
10193
10194         Version 2.0.31 released.
10195
10196         * tramp.el (tramp-handle-expand-file-name): Do not allow ".." to
10197         cross file handler boundaries, so that "/user@host:/../foo"
10198         expands to itself, rather than "/foo".  This is intended to work
10199         in conjunction with a change in `file-relative-name' which makes
10200         sure to use absolute file names if FILE and DIRECTORY have
10201         different handlers.
10202
10203 2003-03-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10204
10205         * tramp.el (tramp-handle-insert-directory): Comment out XEmacs
10206         kludge.  Suggested by Katsumi Yamaoka <yamaoka@jpl.org>.
10207
10208 2003-03-22  Michael Albinus  <Michael.Albinus@alcatel.de>
10209
10210         * .cvsignore (Makefile, trampver.el): Added.
10211
10212         * Makefile.in: New file.  Derived from Makefile, which will be
10213         generated now.
10214         (EMACS, prefix, datadir, lispdir, CLEAN_FILES: Generated by configure.
10215         (all): Depends on wildcard.
10216         (install-ftp): Renamed from install.
10217         (install, distclean): New targets.
10218         (prepversion): Removed.
10219
10220         * Makefile: Removed from CVS.
10221
10222         * trampver.el.in: New file.  Provides `tramp-version' and
10223         `tramp-bug-report-address', which are generated by configure.
10224
10225         * tramp.el (tramp-version, tramp-bug-report-address): Moved to
10226         trampver.el, which is required now.
10227
10228 2003-03-06  Michael Albinus  <Michael.Albinus@alcatel.de>
10229
10230         * tramp-smb.el (tramp-smb-read-file-entry): Make reading size of a
10231         listing entry more robust.  Ranges from 10 chars (Samba 1) to 7-9
10232         chars (Samba 2).
10233
10234 2003-03-02  Michael Albinus  <Michael.Albinus@alcatel.de>
10235
10236         * tramp.el (tramp-chunksize): Type can be nil as well.  Reported
10237         by Markus Rost <rost@math.ohio-state.edu>.
10238
10239 2003-02-28  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10240
10241         * tramp.el (tramp-version): Bump.
10242         (tramp-handle-expand-file-name): Protect against short localnames
10243         when comparing with "/../".
10244
10245 2003-02-27  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10246
10247         * tramp.el (tramp-handle-expand-file-name): Allow ".." to cross
10248         host boundaries.
10249
10250 2003-02-20  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10251
10252         * tramp.el (tramp-open-connection-setup-interactive-shell): Unset
10253         $ENV in addition to setting $PS1 when starting the Bourne-ish
10254         shell.  Some sh implementations (eg, bash when called as sh) read
10255         the file named there on startup, which could clobber $PS1.
10256
10257 2003-02-16  Michael Albinus  <Michael.Albinus@alcatel.de>
10258
10259         * tramp-smb.el: Replace term `path' with `localname' unless it is
10260         used for a search path.  In GNU, the word `path' is reserved for
10261         search paths.
10262
10263         * tramp.el (tramp-send-linewise, tramp-send-region): Removed.
10264         (tramp-send-string): New function.  Takes over the role of the
10265         functions above, in order to have a unique place handling
10266         `tramp-chunksize'.  Same implementation as `tramp-send-region'.
10267
10268 2003-02-15  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10269
10270         * tramp-vc.el, tramp.el: Replace term `path' with `localname'
10271         unless it is used for a search path.  In GNU, the word `path' is
10272         reserved for search paths.
10273
10274         * tramp.el (tramp-do-copy-or-rename-file-one-local): New
10275         function.  Not implemented.  Not used.  Should invoke rcp or scp
10276         directly to keep the time.
10277
10278 2003-02-09  Michael Albinus  <Michael.Albinus@alcatel.de>
10279
10280         * tramp.el (tramp-chunksize): It's now a defcustom.  Set to 500 on
10281         systems only known to have a buggy `process-send-string'
10282         implementation.  First black-listed constellation is GNU Emacs/
10283         hpux.
10284         (tramp-send-region): Correct debug message.
10285         (tramp-bug): Add `tramp-chunksize'.
10286
10287 2003-02-05  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10288
10289         Version 2.0.29 released.
10290
10291         * tramp.el (tramp-send-region): Protect against tramp-chunksize
10292         being nil.
10293
10294 2003-02-04  Michael Albinus  <Michael.Albinus@alcatel.de>
10295
10296         * tramp.el (tramp-handle-directory-file-name): Handle the case
10297         PATH is "".
10298         (tramp-completion-handle-file-name-all-completions): Define
10299         `tramp-current-user' locally.  See `tramp-parse-passwd'.
10300         (tramp-parse-passwd): For su-alike methods it would be desirable
10301         to return "root@localhost" as default.  Unfortunately, we have no
10302         information whether any user name has been typed already.  So we
10303         (mis-)use tramp-current-user as indication, assuming it is set in
10304         `tramp-completion-handle-file-name-all-completions'.
10305         (tramp-send-region): Handle the case `tramp-chunksize' is equal
10306         0.  I did it accidently.  Infinite loop ...
10307
10308         * tramp-ftp.el (top-level): eval-after-load "ange-ftp"
10309         '(tramp-disable-ange-ftp).  Suggested by Kai.
10310         (tramp-ftp-file-name-handler): `tramp-disable-ange-ftp' not needed
10311         any longer.
10312
10313         * tramp-smb.el (tramp-smb-file-name-handler-alist): Apply
10314         `tramp-handle-directory-file-name' in order to profit from Kai's
10315         yesterday changes.
10316
10317 2003-02-03  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10318
10319         * tramp.el (tramp-chunksize): Set default to 500 as workaround for
10320         some ssh connections.
10321         (tramp-handle-directory-file-name): New implementation.  Not sure
10322         if it works.
10323
10324 2003-01-28  Michael Albinus  <Michael.Albinus@alcatel.de>
10325
10326         * tramp.el (tramp-get-device): `tramp-make-tramp-file-name' must
10327         not be called with NIL path.  It fails in case of multi-method.
10328
10329 2003-01-27  Michael Albinus  <Michael.Albinus@alcatel.de>
10330
10331         * tramp.el (tramp-file-name-for-operation): Apply
10332         `expand-file-name' for relative file names only.  Otherwise there
10333         might be problems if the default directory is another Tramp
10334         directory as the directory the file is based on.
10335         (tramp-find-foreign-file-name-handler): Check whether FILENAME is
10336         a Tramp file name.  It isn't if it comes from an expanded file
10337         name (like "/xx:yy//zz").
10338
10339 2003-01-25  Michael Albinus  <Michael.Albinus@alcatel.de>
10340
10341         * tramp.el (tramp-devices): New variable.  Keeps virtual device
10342         numbers.  Devices must distinguish physical file systems.  The
10343         device numbers provided by "lstat" aren't unique, because we
10344         operate on different hosts.  So we use virtual device numbers,
10345         generated by `tramp-get-device'.  Both Ange-FTP and EFS use device
10346         number -1.  In order to be different, we use device number (-1 x),
10347         whereby "x" is unique for a given (multi-method method user
10348         host).  Suggested by Kai.
10349         (tramp-perl-file-attributes): Always return device number -1.
10350         There will be a virtual device number set in
10351         `tramp-handle-file-attributes', which replaces this one.
10352         (tramp-handle-file-attributes): Set virtual device number.
10353         (tramp-get-device): New function.  Returns the virtual device
10354         number.  If it doesn't exist, generate a new one.
10355         (tramp-handle-file-regular-p): Use Emacs file name primitives
10356         instead of calling tramp-handle-* equivalents directly.  Needed
10357         for tramp-smb.
10358
10359         * tramp-smb.el (tramp-smb-devices, tramp-smb-get-device): Removed.
10360         Functionality moved to tramp.el.
10361         (tramp-smb-handle-file-attributes): Apply
10362         `tramp-get-device'. ATIME and CTIME are (0 0) now (= "don't
10363         know"), which is more honest.
10364         (tramp-smb-handle-make-directory): Use Emacs file name primitives
10365         instead of calling tramp-smb-handle-* equivalents directly.
10366         (tramp-smb-read-file-entry): Return size as a number but a string.
10367
10368 2003-01-24  Michael Albinus  <Michael.Albinus@alcatel.de>
10369
10370         * tramp.el (tramp-completion-function-alist-ssh): Add parsing of
10371         "/etc/ssh_config" and "~/.ssh/config".  Suggested by Kai.
10372         (tramp-completion-function-alist, tramp-set-completion-function):
10373         Doc string update.
10374         (tramp-parse-sconfig, tramp-parse-sconfig-group): New functions.
10375         Provide parsing of "~/.ssh/config" style files.
10376
10377 2003-01-21  Michael Albinus  <Michael.Albinus@alcatel.de>
10378
10379         * tramp.el (tramp-completion-handle-expand-file-name): Apply
10380         `tramp-drop-volume-letter'.  Otherwise, there are problems on W32
10381         systems.
10382
10383 2003-01-21  Michael Albinus  <Michael.Albinus@alcatel.de>
10384
10385         * tramp-smb.el (tramp-smb-get-device, tramp-smb-get-inode): New
10386         functions.  Device number and inode number don't exist for SMB
10387         files.  Therefore we must generate virtual ones.
10388         (tramp-smb-devices, tramp-smb-inodes): New variables.  Keep
10389         generated virtual device numbers and inodes numbers for SMB files.
10390         (tramp-smb-handle-file-attributes): Apply them.
10391
10392 2003-01-14  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10393
10394         * tramp.el (tramp-md5-function): Require md5 before checking
10395         function md5.  If using md5-encode, put wrapper around it that
10396         converts vector of bytes to ascii text.
10397
10398 2003-01-13  Michael Albinus  <Michael.Albinus@alcatel.de>
10399
10400         * tramp.el (tramp-completion-mode): Perform check (integerp
10401         last-input-event) before (event-modifiers last-input-event) -
10402         there might be problems if `last-input-event' is a mouse event.
10403
10404 2003-01-12  Michael Albinus  <Michael.Albinus@alcatel.de>
10405
10406         * tramp.el (tramp-parse-rhosts, tramp-parse-shosts)
10407         (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc): Use
10408         `file-readable-p' instead of `file-exists-p'.  Otherwise these
10409         functions might block.  Reported by <kin@neoscale.com>.
10410
10411 2003-01-02  Michael Albinus  <Michael.Albinus@alcatel.de>
10412
10413         * tramp-ftp.el (top-level): Defaults for
10414         `tramp-default-method-alist' must be a list.
10415
10416         * tramp-smb.el (top-level): Defaults for
10417         `tramp-default-method-alist' must be a list.
10418
10419 2003-01-02  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10420
10421         * tramp.el (top-level): Avoid byte-compiler warnings of unused
10422         variables if the byte-compiler supports this.  This is for the
10423         with-parsed-tramp-file-name macro which is wont to produce such
10424         stuff.
10425
10426 2002-12-23  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10427
10428         Version 2.0.28 released.
10429
10430 2002-12-22  Michael Albinus  <Michael.Albinus@alcatel.de>
10431
10432         * tramp.el (top-level): Discard tramp-smb.el also for Cygwin.  No
10433         "smbclient" available there.
10434         (tramp-completion-dissect-file-name):
10435         `tramp-completion-file-name-structure1',
10436         `tramp-completion-file-name-structure2',
10437         `tramp-completion-file-name-structure3' and
10438         `tramp-completion-file-name-structure4' changed from "defconst" to
10439         "let*", because they are function local (but nevertheless
10440         constants).  Suggested by David Kastrup
10441         <David.Kastrup@t-online.de> and Kai Großjohann
10442         <kai.grossjohann@uni-duisburg.de>.  The value "9" has changed to
10443         "nil" (meaning there's nothing to match), because Emacs 21.3 seems
10444         to be more sensible on `match-string'.
10445         (tramp-completion-dissect-file-name1): In case of a "nil" position
10446         don't call `match-string'.
10447
10448         * tramp-smb.el (tramp-smb-file-name-handler-alist):
10449         `add-name-to-file' is handled by `tramp-smb-handle-copy-file',
10450         because there are no hardlinks under Windows.
10451
10452 2002-12-21  Michael Albinus  <Michael.Albinus@alcatel.de>
10453
10454         * tramp.el (tramp-default-method-alist): Defaults setting for FTP
10455         method has moved to tramp-smb.el.  The remaining default for the
10456         SU method is available for both Emacs and XEmacs now.
10457
10458         * tramp-ftp.el (top-level): Set defaults for
10459         `tramp-default-method-alist'.  Taken over from tramp.el.
10460
10461         * tramp-smb.el (top-level): Set default for
10462         `tramp-default-method-alist'.  If the user name contains a domain
10463         (visible via the "%" char), it must be the SMB method.
10464         (tramp-smb-wait-for-output): Use `tramp-smb-process-running' where
10465         appropriate.  Last time I've changed this function I forgot one
10466         place.
10467
10468 2002-12-05  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10469
10470         Version 2.0.27 released.
10471
10472 2002-12-05  Michael Albinus  <Michael.Albinus@alcatel.de>
10473
10474         * tramp-smb.el (tramp-smb-process-running) New buffer local
10475         variable.  Flag whether a corresponding process is still running.
10476         (tramp-smb-open-connection): Set a process sentinel.  It disables
10477         `tramp-smb-process-running'.
10478         (tramp-smb-wait-for-output): Use `tramp-smb-process-running' for
10479         several checks.
10480
10481 2002-12-05  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10482
10483         * tramp.el (tramp-run-real-handler)
10484         (tramp-completion-run-real-handler): Disable cygwin-mount, too.
10485         All files handled by Tramp are on Unix systems, where
10486         cygwin-mount is not useful.  (Ie, remote Cygwin systems are not
10487         supported.)
10488
10489         * tramp-vc.el (tramp-vc-do-command): Ensure that `okstatus' is an
10490         integer before using `<' on it.
10491         (tramp-vc-do-command-new): Pass relative filename as arg to remote
10492         process.  This helps with CVS.  Suggested by Francis Litterio.
10493
10494 2002-11-30  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10495
10496         * tramp.el (tramp-end-of-output): Do not use directory listing as
10497         input to `md5' function.  The current time is deemed to be good
10498         enough.
10499
10500         * tramp-vc.el (tramp-vc-do-command-new): `okstatus' can be async.
10501         From Francis Litterio <franl@world.std.com>.
10502         (tramp-vc-simple-command): Comment on potential `okstatus'
10503         problem with it being `async'.  No code change.
10504
10505 2002-11-28  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10506
10507         Version 2.0.26 released.
10508
10509         * tramp.el (tramp-version): Bump.
10510
10511 2002-11-28  Michael Albinus  <Michael.Albinus@alcatel.de>
10512
10513         * tramp.el (top-level): Require tramp-smb.el only if local
10514         Operating System is not MS Windows.  There's no need for the SMB
10515         method there, because those Emacsen support UNC file names.
10516         (tramp-handle-file-modes): Use Emacs file name primitives instead
10517         of calling tramp-handle-* equivalents directly.  Needed for
10518         tramp-smb.
10519
10520         * tramp-smb.el (tramp-smb-errors): List of error strings extended.
10521         (tramp-smb-not-handled-yet): Function removed.  All I/O primitives
10522         are handled now.  All places where used updated accordingly.
10523         (tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
10524         (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
10525         (tramp-smb-handle-write-region, tramp-smb-open-connection): Error
10526         handling improved.
10527         (tramp-smb-handle-delete-directory)
10528         (tramp-smb-handle-directory-files)
10529         (tramp-smb-handle-directory-files-and-attributes)
10530         (tramp-smb-handle-make-directory)
10531         (tramp-smb-handle-make-directory-internal): New file name
10532         primitive functions implemented.
10533         (tramp-smb-handle-insert-directory): In case parameter is not a
10534         directory, the result of "dir filename*" will return too many
10535         results.  They are filtered out now.
10536         (tramp-smb-send-command): Returns nil if there has been an error
10537         message from smbclient.  Used for improved error handling
10538         mentioned above.
10539         (tramp-smb-wait-for-output): Timeouts removed.  Too much trouble
10540         with.
10541         (tramp-smb-time-less-p, tramp-smb-time-subtract): Handle the case
10542         when T1 or T2 is nil.  It shouldn't happen ever, but it did once.
10543
10544 2002-11-27  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10545
10546         * tramp-uu.el (tramp-uu-b64-char-to-byte, tramp-uuencode-region):
10547         Abstain from `incf'.
10548
10549 2002-11-22  Michael Albinus  <Michael.Albinus@alcatel.de>
10550
10551         * tramp-smb.el (tramp-smb-handle-substitute-in-file-name):
10552         Removed.  The default handler is good enough for us now.
10553         (tramp-smb-advice-PC-do-completion): Advice for
10554         `PC-do-completion'.  Corrects the inconvenient usage of
10555         `substitute-in-file-name' there.
10556
10557 2002-11-21  Michael Albinus  <Michael.Albinus@alcatel.de>
10558
10559         * tramp-smb.el (tramp-use-smb): Remove variable.  "smb" method is
10560         active now; beta test can start.
10561         (tramp-smb-handle-file-newer-than-file-p): Apply
10562         `tramp-smb-time-less-p' but `tramp-time-diff'.  Seems to be more
10563         general.
10564         (tramp-smb-handle-insert-directory): Use SWITCHES in order to
10565         decide how to sort (but obscure dired variables).  Don't apply
10566         `save-excursion'; the cursor must be at the end of the buffer
10567         after insertion.  I should have it done from the beginning ...
10568         (tramp-smb-handle-write-region): Remove unused variable
10569         `trampbuf'.  Thanx to XEmacs compiler warning.
10570         (tramp-smb-read-file-entry): Simplify handling of the dont-know
10571         mtime value.
10572         (tramp-smb-maybe-open-connection): Remove unused variable
10573         `last-cmd-time'.  Thanx to XEmacs compiler warning.
10574
10575 2002-11-20  Michael Albinus  <Michael.Albinus@alcatel.de>
10576
10577         * tramp-smb.el (top-level): Autoload of "time-date" removed.
10578         Needed functions snarfed from there.
10579         (tramp-smb-handle-insert-directory): Dummy user renamed to
10580         "nobody".
10581         (tramp-smb-read-file-entry): Return list shortened; just MTIME is
10582         used for all time strings and calculations.
10583         (tramp-smb-open-connection): Test of anonymous USER introduced.
10584         Also an empty HOST is tested, but does it makes sense?
10585         (tramp-smb-half-a-year): New constant, in order to decide whether
10586         to display time or year in dired buffers.
10587         (tramp-smb-parse-time-months ): Snarfed from "time-date".  Alist
10588         mapping month names to integers.
10589         (tramp-smb-time-less-p): Snarfed from "time-date".  Replaces
10590         `time-less-p'.
10591         (tramp-smb-time-subtract): Snarfed from "time-date".  Replaces
10592         `tramp-time-diff', which returns just an integer only.
10593
10594 2002-11-19  Michael Albinus  <Michael.Albinus@alcatel.de>
10595
10596         * tramp-smb.el (top-level): Autoload "time-date".  Just a
10597         work-around, until I have replaced the corresponding functions by
10598         own implementation.
10599         (tramp-smb-errors): List of error strings extended.
10600         (tramp-smb-share-cache): New buffer local variable.  Holds the
10601         share names of the respective host.
10602         (tramp-smb-file-name-handler-alist): `vc-registered' changed to be
10603         not-handled.  If default handler is used, there are problems with
10604         version control files of shares themselves ...
10605         (tramp-smb-handle-copy-file): Error handling improved, check for
10606         shares is performed.
10607         (tramp-smb-handle-file-attributes)
10608         (tramp-smb-handle-file-directory-p)
10609         (tramp-smb-handle-file-directory-p)
10610         (tramp-smb-handle-file-exists-p)
10611         (tramp-smb-handle-file-name-all-completions)
10612         (tramp-smb-handle-file-writable-p)
10613         (tramp-smb-handle-insert-directory): `tramp-smb-get-file-entries'
10614         used instead of own scenario.
10615         (tramp-smb-get-share): Replace nil in case the share name isn't
10616         completed.
10617         (tramp-smb-get-path): Handling for "$" and "$$" added.  But I
10618         still have the feeling it isn't trustworthy yet.  Too complex.
10619         (tramp-smb-get-file-entries): New function.  Replaces
10620         `tramp-smb-get-file-entry'.
10621         (tramp-smb-read-file-entry): Reads share names as well now.
10622         (tramp-smb-send-command): Erases always buffer.
10623         (tramp-smb-maybe-open-connection): Check for being alive is
10624         removed.  Instead, `process-status' is applied.  Erasing the
10625         buffer is removed, because it disturbs exited processes if just
10626         the share names should be retrieved.
10627         (tramp-open-connection-smb): Renamed to
10628         `tramp-smb-open-connection' for uniqueness.  Acknowledges now
10629         domains in user names ("USER%DOMAIN"), and port numbers in host
10630         names ("HOST#PORT").  Erasing the buffer is removed, because it
10631         disturbs exited processes if just the share names should be
10632         retrieved.
10633         (tramp-smb-wait-for-output): Handling for exited processes
10634         incorporated.
10635         (tramp-smb-check-shares): Removed.  Functionality moved to
10636         `tramp-smb-open-connection' and `tramp-smb-get-file-entries',
10637         respectively.
10638
10639
10640 2002-11-10  Michael Albinus  <Michael.Albinus@alcatel.de>
10641
10642         * tramp.el (tramp-handle-file-name-completion): Use Emacs file
10643         name primitives instead of calling tramp-handle-* equivalents
10644         directly.  Needed for tramp-smb.
10645
10646         * tramp-smb.el (tramp-smb-errors): List of error strings extended.
10647         (tramp-smb-not-handled, tramp-smb-not-handled-yet):
10648         `tramp-smb-not-handled' renamed to `tramp-smb-not-handled-yet'.
10649         The new `tramp-smb-not-handled' returns nil for als primitives
10650         which don't make sense for SMB servers.  All callers adapted.
10651         (tramp-smb-handle-copy-file)
10652         (tramp-smb-handle-file-name-all-completions)
10653         (tramp-smb-handle-file-newer-than-file-p)
10654         (tramp-smb-handle-rename-file)
10655         (tramp-smb-handle-substitute-in-file-name)
10656         (tramp-smb-handle-write-region): New file name primitive functions
10657         implemented.
10658         (tramp-smb-handle-delete-file): In the `let' clause, `path' must
10659         be declared but `share'.  Found during compilation.
10660         (tramp-smb-handle-file-symlink-p)
10661         (tramp-smb-handle-set-visited-file-modtime)
10662         (tramp-smb-handle-verify-visited-file-modtime): Replaced by
10663         `tramp-smb-not-handled'.
10664         (tramp-smb-handle-insert-directory): Handling of copyied files
10665         added.
10666         (tramp-smb-maybe-open-connection): Are-you-alive command changed
10667         from "help" to "dir .".
10668         (tramp-smb-wait-for-output): In case of finished process return
10669         immediately.
10670         (tramp-smb-check-shares): New function.  Reads share names.
10671
10672 2002-11-05  Michael Albinus  <Michael.Albinus@alcatel.de>
10673
10674         * tramp-smb.el (tramp-smb-errors): List of error strings extended.
10675         (tramp-smb-share): New buffer local variable.  Holds the share
10676         name associated with the buffer process.
10677         (tramp-smb-handle-delete-file, tramp-smb-handle-file-attributes)
10678         (tramp-smb-handle-set-visited-file-modtime)
10679         (tramp-smb-handle-verify-visited-file-modtime):
10680         New file name primitive functions implemented.  The latter two do
10681         nothing (yet).
10682         (tramp-smb-handle-file-local-copy): `save-excursion' added.  I'm
10683         not fully sure if it's needed here, but it is better in case of.
10684         (tramp-smb-handle-insert-directory): Mode string adapted.
10685         (tramp-smb-read-file-entry): Block introduced for better return
10686         handling.  Return list values changed.  Callers adapted.
10687
10688
10689 2002-11-04  Michael Albinus  <Michael.Albinus@alcatel.de>
10690
10691         * tramp-smb.el (tramp-smb-line): Defconst deleted.  Useless due to
10692         nature of smbclient output.  More sophisticated handling in
10693         `tramp-smb-read-file-entry'.
10694         (tramp-smb-errors): List of error strings extended.
10695         (tramp-smb-get-path): Additional parameter CONVERT for conversion
10696         of "/" path separator into "\\".
10697         (tramp-smb-get-file-entry): Top directory handling included.
10698         (tramp-smb-read-file-entry): Reimplemented.  No chance to handle
10699         smbclient output lines by a single regexp.
10700         (tramp-smb-send-command): Parameters of commands enclosed in
10701         \"...\".
10702
10703 2002-11-03  Michael Albinus  <Michael.Albinus@alcatel.de>
10704
10705         * tramp.el (tramp-handle-insert-file-contents): Use Emacs file
10706         name primitives instead of calling tramp-handle-* equivalents
10707         directly.  Needed for tramp-smb.
10708
10709         * tramp-smb.el: First useful version.  Directory traversing and
10710         file displaying work.
10711
10712 2002-11-03  Kai Grossjohann  <kai.grossjohann@uni-duisburg.de>
10713
10714         * tramp.el (tramp-end-of-output): Fix last change.
10715
10716 2002-11-02  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10717
10718         * tramp.el (tramp-md5-function): New variable.
10719         (tramp-end-of-output): Use it.
10720
10721 2002-10-27  Michael Albinus  <Michael.Albinus@alcatel.de>
10722
10723         * tramp-ftp.el (top-level): Require some basic packages in order
10724         to pacify byte-compiler.
10725
10726         * tramp-smb.el (top-level): Ditto.
10727
10728 2002-10-27  Michael Albinus  <Michael.Albinus@alcatel.de>
10729
10730         * tramp.el (top-level): Load tramp-smb.el.  Remove autoload of
10731         `tramp-ftp-file-name-p'; not needed anymore.
10732         (tramp-foreign-file-name-handler-alist): New variable.  Foreign
10733         methods shall plug in.
10734         (tramp-file-name-for-operation): Relative file names are checked
10735         via `expand-file-name'.  If no absolute file name is given,
10736         default directory of current-buffer is used.
10737         (tramp-find-foreign-file-name-handler): New function.  Parses
10738         `tramp-foreign-file-name-handler-alist' in order to find foreign
10739         file name handlers.
10740         (tramp-file-name-handler): Apply
10741         `tramp-find-foreign-file-name-handler' instead of simply looking
10742         for FTP foreign method.
10743
10744         * tramp-ftp.el (top-level): Plug into
10745         `tramp-foreign-file-name-handler-alist'.
10746
10747         * tramp-smb.el: New file.  Functionality disabled by
10748         `tramp-use-smb' during development.
10749
10750         * Makefile (tramp): Add tramp-smb.elc.
10751
10752 2002-10-22  Michael Albinus  <Michael.Albinus@alcatel.de>
10753
10754         * tramp.el (tramp-file-name-for-operation): Even more file
10755         primitives.  Sort them alphabetically.
10756
10757 2002-10-22  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
10758
10759         * tramp.el (tramp-action-yn): Erase the buffer when the user has
10760         said yes, don't erase it when they said no.
10761
10762 2002-10-20  Michael Albinus  <Michael.Albinus@alcatel.de>
10763
10764         * tramp.el (tramp-file-name-for-operation): Complete file
10765         primitives.  Lots of undocumented found.
10766
10767 2002-10-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10768
10769         * tramp.el (tramp-sh-extra-args): Use "-norc -noprofile" instead
10770         of "--norc" for bash.  The single dash is for old versions, and
10771         the additional option might help more.  Suggested by Tim Connors
10772         <tconnors@astro.swin.edu.au>.
10773
10774 2002-10-15  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10775
10776         * tramp.el (tramp-end-of-output): Emulate
10777         directory-files-and-attributes if it does not exist.  (It does
10778         not exist on XEmacs.)
10779
10780 2002-10-14  Michael Albinus  <Michael.Albinus@alcatel.de>
10781
10782         * tramp.el (tramp-dissect-file-name): Check for multi-method
10783         syntax before raising an error.
10784         (tramp-primitive-file-name): Renamed to
10785         `tramp-file-name-for-operation'.  Docstring enhanced.  List of
10786         file primitives completed in order to be signalled when a new one
10787         appears.  All changes suggested by Kai.
10788         (tramp-file-name-handler): `save-match-data' global.
10789
10790 2002-10-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10791
10792         * tramp.el (tramp-end-of-output): Use a random value which
10793         includes "///".  The "///" makes sure that the string can't occur
10794         during normal operation, the random value makes it unlikely that
10795         it occurs in random shell-command output.
10796
10797 2002-10-13  Michael Albinus  <Michael.Albinus@alcatel.de>
10798
10799         * tramp.el (tramp-advice-find-file-name-handler): Remove defadvice
10800         because it might be not a good idea to hook into Emacs built-in
10801         subroutiones.  Suggested by RMS.
10802         (tramp-primitive-file-name): Handle all primitives now.
10803         (tramp-file-name-handler): Allow call of
10804         `tramp-ftp-file-name-handler' only for functions defined in
10805         `tramp-file-name-handler-alist'.  Strange.
10806
10807 2002-10-12  Michael Albinus  <Michael.Albinus@alcatel.de>
10808
10809         * Makefile (tramp): Add tramp-uu.elc and tramp-ftp.elc.
10810
10811         * tramp.el (top-level): Require `tramp-ftp' after load in order to
10812         avoid infloop. Autoload `tramp-ftp-file-name-p' for compiler
10813         satisfaction.
10814         (tramp-primitive-file-name): Add handling of `expand-file-name'
10815         and `file-newer-than-file-p'.
10816         (tramp-file-name-handler): Call `tramp-primitive-file-name' via
10817         `apply'.
10818
10819         * tramp-ftp.el (top-level): Require `tramp'.
10820
10821
10822 2002-10-11  Michael Albinus  <Michael.Albinus@alcatel.de>
10823
10824         * tramp-ftp.el: New file.
10825
10826         * tramp.el (tramp-default-method): Adapt doc string.
10827         (tramp-ftp-method, tramp-completion-function-alist-ftp)
10828         (tramp-disable-ange-ftp, tramp-invoke-ange-ftp)
10829         (tramp-ange-ftp-file-name-p, tramp-make-ange-ftp-file-name): Moved
10830         to tramp-ftp.el or removed (if not needed any longer).  Callers
10831         adapted.
10832         (tramp-completion-function-alist): "ftp" entry removed.  Will be
10833         added from within tramp-ftp.el.
10834         (tramp-set-completion-function ): Allow setting of methods not
10835         defined yet.
10836         (tramp-run-real-handler, tramp-completion-run-real-handler):
10837         Remove `ange-ftp-hook-function' handling.  Make
10838         `inhibit-file-name-handlers' a cons but a list.
10839         (tramp-advice-find-file-name-handler): Advice for
10840         `find-file-name-handler'.  Check for Ange-FTP file names,
10841         applicable for NON built-in primitives only.
10842         (tramp-primitive-file-name): New function.  Returns filename for
10843         some built-in primitives.
10844         (tramp-file-name-handler): Check for Ange-FTP file names (built-in
10845         primitives only).  Forward to Ange-FTP in case of.
10846         (tramp-completion-file-name-handler): Remove catch for
10847         `tramp-forward-to-ange-ftp'.  Not necessary any longer.
10848         (tramp-flatten-list): Remove function.  Never used.
10849         (tramp-completion-mode, tramp-get-completion-methods): Special
10850         handling of `tramp-ftp-method' removed.  It's part of
10851         `tramp-methods' now (as foreign method).
10852
10853 2002-10-11  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10854
10855         * tramp.el (tramp-handle-shell-command): Don't switch to the
10856         output buffer, just display it.  From Francis Litterio
10857         <franl@world.std.com>.
10858
10859 2002-10-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10860
10861         * tramp.el (tramp-handle-file-newer-than-file-p): Use
10862         tramp-time-diff instead of subtract-time.  Reported by Angus Lees.
10863
10864 2002-10-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10865
10866         Version 2.0.25 released.
10867
10868 2002-10-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10869
10870         * tramp.el (tramp-handle-file-truename): If it's a directory,
10871         append slash only if result doesn't end in a slash already.
10872
10873 2002-10-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10874
10875         * tramp.el (tramp-handle-file-truename): Restructure logic.  If
10876         list of steps is nil, return "/" as the real name.
10877
10878 2002-10-03  Michael Albinus  <Michael.Albinus@alcatel.de>
10879
10880         * tramp.el (tramp-completion-mode): Add "\\(" and
10881         "\\)". Otherwise, `match-string' doesn't make sense.
10882         (tramp-host-with-port-regexp): New defcustom. Equal to previous
10883         `tramp-host-regexp'.
10884         (tramp-host-regexp): Taken off hashes in host names. Otherwise,
10885         scanning files like .rhosts would take comments as host names.
10886         (tramp-file-name-structure, tramp-multi-file-name-hop-structure):
10887         Replace `tramp-host-regexp' by `tramp-host-with-port-regexp'.
10888
10889 2002-10-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10890
10891         * tramp.el (tramp-action-terminal): New function.
10892         (tramp-terminal-prompt-regexp): New variable, matches "tset"
10893         prompts.
10894         (tramp-actions-before-shell): Use them.
10895
10896 2002-09-30  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10897
10898         * tramp.el (tramp-handle-shell-command): Logic error.  From Ivan
10899         Zakharyaschev <imz@altlinux.org>.
10900
10901 2002-09-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10902
10903         Version 2.0.24 released.
10904
10905         * tramp.el (tramp-host-regexp): Allow hashes in host names (for
10906         the "#port" feature).
10907
10908 2002-09-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10909
10910         * tramp.el (tramp-open-connection-setup-interactive-shell):
10911         Explicitly set tramp-last-cmd-time before invoking
10912         tramp-send-command the first time.  Otherwise, tramp-send-command
10913         would issue "echo are you awake" right at the first time, which
10914         is not what we want.  Reported by Douglas Gray Stephens.
10915
10916 2002-09-27  Michael Albinus  <Michael.Albinus@alcatel.de>
10917
10918         * tramp.el (tramp-methods, tramp-completion-function-alist):
10919         Rename "scp1-old", "scp2-old", "ssh1-old", "ssh2-old" to
10920         "*_old". There have been problems in method name completion,
10921         because "-" is a word delimiter for partial completion mode.
10922         (tramp-completion-function-alist): Set
10923         `tramp-completion-function-alist-ssh' as completion function for
10924         "fcp".
10925
10926 2002-09-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10927
10928         Version 2.0.23 released.
10929
10930 2002-09-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10931
10932         * tramp.el (tramp-handle-file-local-copy): More local bindings.
10933         Bind results of tramp-get-{remote,local}-{de,en}coding earlier to
10934         avoid nasty "are you awake" problem.
10935
10936 2002-09-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10937
10938         * tramp.el (tramp-action-password): Protect against clobbered
10939         match data.
10940         (tramp-maybe-open-connection): Don't send "are you awake" if
10941         process has died.
10942
10943 2002-09-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10944
10945         * tramp.el (tramp-handle-file-truename): Eliminate unused
10946         variable.
10947         (tramp-version): Bump.
10948
10949 2002-09-24  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
10950
10951         * tramp.el (tramp-find-inline-encoding): Don't redirect stdout to
10952         /dev/null to avoid "chmode go-rwx" operation from "mimencode
10953         >/dev/null" as root(!), and to check the output of the decoding
10954         command.
10955         (tramp-ange-ftp-file-name-p): If METHOD is nil, find the right
10956         default method.  Require additional args USER and HOST for this.
10957         Callers changed.
10958
10959 2002-09-23  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
10960
10961         * tramp.el (tramp-unified-filenames): Autoload cookie.  Reported
10962         by Vin Shelton <acs@xemacs.org>.
10963
10964 2002-09-22  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
10965
10966         Version 2.0.22 released.
10967
10968 2002-09-22  Michael Albinus  <Michael.Albinus@alcatel.de>
10969
10970         * tramp.el (tramp-parse-rhosts, tramp-parse-shosts)
10971         (tramp-parse-hosts, tramp-parse-passwd): Apply `push' but
10972         `add-to-list' for performance reasons.
10973         (tramp-get-completion-user-host): Return `nil' in case both `user'
10974         and 'host' are empty (not necessarily `nil'.
10975         (tramp-parse-netrc, tramp-parse-netrc-group): New functions.
10976         (tramp-user-regexp): " \t" are not user regexp characters.
10977         (tramp-completion-handle-file-name-all-completions): Remove
10978         Ange-FTP cmpletion. It has a bug not handling the "/ftp:" prefix
10979         completely, and it returns local completions as well.
10980         (tramp-completion-function-alist-ftp): New constant.
10981         (tramp-completion-function-alist): Add completion function for
10982         "ftp".
10983
10984 2002-09-22  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
10985
10986         Version 2.0.21 released.
10987
10988         * tramp.el (tramp-handle-file-newer-than-file-p): If mtime of
10989         both files is known, return a useful result.  Better error
10990         message in case one is a Tramp file and one isn't.
10991         (tramp-handle-file-local-copy, tramp-handle-write-region)
10992         (tramp-find-shell, tramp-open-connection-telnet)
10993         (tramp-open-connection-rsh, tramp-open-connection-su)
10994         (tramp-open-connection-setup-interactive-shell)
10995         (tramp-post-connection, tramp-maybe-open-connection)
10996         (tramp-method-out-of-band-p): Correct number of args for
10997         `tramp-get-rsh-program' and similar functions.
10998
10999 2002-09-22  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
11000
11001         Version 2.0.20 released.
11002
11003 2002-09-20  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
11004
11005         * tramp.el (tramp-method-out-of-band-p): Add missing ")".
11006         * tramp.el (tramp-method-out-of-band-p): Remove superfluous ")".
11007
11008 2002-09-20  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
11009
11010         * tramp.el (tramp-completion-function-alist): Escape open paren in
11011         docstring.
11012         (tramp-user-regexp, tramp-host-regexp): Allow empty strings.
11013         (tramp-handle-insert-file-contents): Call tramp-message-for-buffer
11014         instead of tramp-message.
11015         (tramp-open-connection-rsh): Handle empty string as user name.
11016         (tramp-open-connection-su): Handle empty string as host name.
11017         Handle nil user name.
11018         (tramp-handle-file-local-copy, tramp-handle-write-region)
11019         (tramp-completion-handle-file-name-all-completions)
11020         (tramp-open-connection-telnet, tramp-open-connection-rsh)
11021         (tramp-open-connection-su, tramp-post-connection)
11022         (tramp-maybe-open-connection, tramp-method-out-of-band-p)
11023         (tramp-get-connection-function, tramp-get-remote-sh)
11024         (tramp-get-rsh-program, tramp-get-rsh-args)
11025         (tramp-get-rcp-program, tramp-get-rcp-args)
11026         (tramp-get-rcp-keep-date-arg, tramp-get-su-program)
11027         (tramp-get-su-args, tramp-get-telnet-program)
11028         (tramp-get-telnet-args): Use `tramp-find-method', perhaps require
11029         additional args USER, HOST.
11030         (tramp-action-password, tramp-open-connection-telnet)
11031         (tramp-open-connection-su, tramp-open-connection-multi)
11032         (tramp-method-out-of-band-p): `tramp-method-out-of-band-p' now
11033         takes USER and HOST arguments, to be able to use
11034         `tramp-find-method'.  Update callers.
11035         (tramp-find-method): New function.
11036
11037 2002-09-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11038
11039         * tramp.el (tramp-handle-insert-directory): Handle "--dired" in
11040         SWITCHES (by removing it).
11041
11042 2002-09-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11043
11044         * tramp.el (tramp-file-name-handler): Add `file-remote-p'
11045         property.
11046
11047 2002-09-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11048
11049         * tramp.el (top-level): Maybe autoload uudecode-decode-region.
11050
11051 2002-09-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11052
11053         * tramp.el (tramp-bug): Add tramp-methods.
11054
11055 2002-09-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11056
11057         * tramp.el (tramp-methods): Update docstring:
11058         tramp-encoding-command, tramp-decoding-command,
11059         tramp-encoding-function and tramp-decoding-function are not
11060         parameters anymore.
11061         (tramp-uuencode-region): Autoload it.
11062
11063 2002-09-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11064
11065         Version 2.0.19 released.
11066
11067         * tramp-uu.el: New file.
11068
11069         * tramp.el (tramp-coding-commands): Use `tramp-uuencode-region'
11070         as local encoder for the uuencode based entries.
11071
11072 2002-09-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11073
11074         * tramp.el (tramp-handle-write-region): Wrong parens.
11075
11076 2002-09-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11077
11078         Version 2.0.18 released.
11079
11080         * tramp.el (tramp-perl-decode): Perl changes to accomodate older
11081         versions of Perl.  Now tested with 5.004.  Suggestion from
11082         Michael Albinus.
11083
11084 2002-09-12  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11085
11086         * tramp.el (tramp-find-inline-encoding): Call
11087         tramp-call-local-coding-command with nil for INPUT and OUTPUT.
11088         (tramp-call-local-coding-command): OUTPUT equals nil means to
11089         discard the output.  INPUT equals nil means /dev/null.
11090
11091 2002-09-12  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11092
11093         * tramp.el (tramp-encoding-shell): Default to environment
11094         variable COMSPEC on Windows.
11095         (tramp-handle-write-region): More debugging output.
11096         (tramp-find-inline-encoding): Ditto.
11097
11098 2002-09-11  Michael Albinus  <Michael.Albinus@alcatel.de>
11099
11100         * tramp.el (tramp-completion-handle-file-name-all-completions):
11101         Define `result1'.
11102         (tramp-parse-hosts-group): Discard IPv6 entries.
11103
11104 2002-09-11  Michael Albinus  <Michael.Albinus@alcatel.de>
11105
11106         * tramp.el: Next todo item. The list shall decrease, but it
11107         doesn't :(
11108
11109 2002-09-11  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11110
11111         * tramp.el: New todo item.
11112
11113 2002-09-11  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
11114
11115         * tramp.el (tramp-post-connection): Only send Perl
11116         mime-encode/decode implementations when using inline method.
11117         (tramp-handle-file-local-copy)
11118         (tramp-handle-write-region, tramp-post-connection)
11119         (tramp-coding-commands, tramp-find-inline-encoding): For the
11120         inline encodings, distinguish between local and remote commands,
11121         instead of between commands and functions.  (The local commands
11122         can be functions, too.)  If the local host is a Windows machine,
11123         we can't expect the same commands to work there as on the remote
11124         host.
11125         (tramp-call-local-coding-command): New function for calling local
11126         encoding and decoding commands.
11127         (tramp-set-remote-encoding, tramp-get-remote-encoding)
11128         (tramp-set-remote-decoding, tramp-get-remote-decoding)
11129         (tramp-set-local-encoding, tramp-get-local-encoding)
11130         (tramp-set-local-decoding, tramp-get-local-decoding): New functions.
11131         (tramp-get-encoding-command, tramp-set-encoding-command)
11132         (tramp-get-decoding-command, tramp-set-decoding-command)
11133         (tramp-get-encoding-function, tramp-set-encoding-function)
11134         (tramp-get-decoding-function, tramp-set-decoding-function): Old
11135         functions, removed.
11136
11137 2002-09-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11138
11139         * tramp.el (tramp-open-connection-setup-interactive-shell):
11140         Change command to invoke /bin/sh slightly to make it compatible
11141         with the `rc' shell.  Suggested by Daniel Pittman.
11142
11143 2002-09-10  Michael Albinus  <Michael.Albinus@alcatel.de>
11144
11145         * tramp.el (tramp-handle-write-region): Added missing `)'. Hope
11146         it's the right place.
11147
11148 2002-09-09  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11149
11150         * tramp.el (tramp-open-connection-setup-interactive-shell): Do
11151         "exec env PS1='$ ' /bin/sh" instead of just "exec /bin/sh" in
11152         order to get a sane shell prompt.  If people have ${CWD}, say, in
11153         their shell prompt, then the default login shell might display
11154         something harmless, but the /bin/sh will display a dollar sign
11155         which confused the subsequent prompt recognition.
11156         (tramp-multi-action-password): More debugging output.
11157         (tramp-encoding-shell): Renamed from tramp-sh-program.  More
11158         documentation.  Default to cmd.exe on Windows NT.
11159         (tramp-encoding-command-switch): New variable.  Use instead of
11160         hard-wired "-c" which is only good for /bin/sh.
11161         (tramp-encoding-reads-stdin): New variable.  If t, commands are
11162         called like "/bin/sh -c COMMAND <INPUT", if nil, they are called
11163         like "/bin/sh -c COMMAND INPUT", ie the input file is the last
11164         argument.
11165         (tramp-multi-sh-program): Always default to tramp-encoding-shell.
11166         (tramp-handle-file-local-copy, tramp-handle-write-region): Respect
11167         tramp-encoding-shell and friends.
11168         (tramp-find-inline-encoding): Use new-style calls for checking if
11169         the local commands work.
11170
11171 2002-09-07  Michael Albinus  <Michael.Albinus@alcatel.de>
11172
11173         * tramp.el (tramp-methods): Remove `tramp-completion-function'
11174         entries. They are handled now by `tramp-completion-function-alist'.
11175         (tramp-completion-function): Defvar removed. I've never used
11176         it. Hmm.
11177         (tramp-get-completion-function)
11178         (tramp-get-completion-rsh, tramp-get-completion-ssh)
11179         (tramp-get-completion-telnet, tramp-get-completion-su): Functions
11180         removed as well. Not necessary any longer due to extended
11181         customization means.
11182         (tramp-completion-function-alist): New defcustom. Holds all
11183         FUNCTION FILE pairs used for user and host name completion
11184         relevant for METHOD.
11185         (tramp-completion-function-alist-rsh)
11186         (tramp-completion-function-alist-ssh)
11187         (tramp-completion-function-alist-telnet)
11188         (tramp-completion-function-alist-su): Defconst for initializing
11189         `tramp-completion-function-alist'. Unfortunately, mainly UNIX-like
11190         values are known for me until now. Needs to be completed for at
11191         least VMS++ like operating systems.
11192         (tramp-set-completion-function)
11193         (tramp-get-completion-function): New functions for configuration
11194         of `tramp-completion-function-alist'. The old definition of
11195         `tramp-get-completion-function' has been discarded.
11196         (tramp-completion-handle-file-name-all-completions): Change
11197         function call for user/host completion according to definition in
11198         `tramp-completion-function-alist'.
11199         (tramp-parse-passwd): Added exception handling for "root", because
11200         `tramp-get-completion-su' (the previous place for this stuff)
11201         doesn't exist any longer.
11202
11203 2002-09-07  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11204
11205         * tramp.el (tramp-enter-password): Use
11206         `tramp-password-end-of-line' to terminate the line.
11207         (tramp-bug): Include new variable `tramp-password-end-of-line'.
11208         (tramp-password-end-of-line): New variable.  People who use plink
11209         under Windows might have to issue "\r\n" after the password, but
11210         they need to send just "\n" after the other commands.  So this
11211         variable was introduced to complement `tramp-rsh-end-of-line'.
11212         (tramp-wait-for-output, tramp-post-connection): Allow "\r" at end
11213         of line of the output delimiter.
11214
11215 2002-09-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11216
11217         * tramp.el (tramp-handle-file-local-copy, tramp-find-shell)
11218         (tramp-open-connection-setup-interactive-shell): Add some
11219         comments about Douglas Grey Stephen's suggestions to make Tramp
11220         work better with plink under Windows.  I'm not sure what to think
11221         of them, but now I have a guinea pig to try it out on.  Said
11222         guinea pig is having other problems, though...
11223         Also remove some commented-out code.
11224
11225 2002-09-06  Michael Albinus  <Michael.Albinus@alcatel.de>
11226
11227         * tramp.el (tramp-get-completion-methods): Algorithm slightly
11228         tuned.
11229         (tramp-get-completion-user-host): Accept user names as they are if
11230         typed until "@".
11231         (tramp-completion-mode): Replace `last-input-char' by modern
11232         `last-input-event'. Check for `event-modifiers'.
11233
11234 2002-09-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11235
11236         * tramp.el (file-expand-wildcards): Corrected check to see if
11237         advising is necessary.
11238
11239 2002-09-05  Michael Albinus  <Michael.Albinus@alcatel.de>
11240
11241         * tramp.el (tramp-postfix-single-method-format)
11242         (tramp-postfix-multi-method-format)
11243         (tramp-postfix-multi-hop-format)
11244         (tramp-postfix-user-format): New format strings.
11245         (tramp-postfix-single-method-regexp)
11246         (tramp-postfix-multi-method-regexp)
11247         (tramp-postfix-multi-hop-regexp)
11248         (tramp-postfix-user-regexp)
11249         (tramp-make-multi-tramp-file-format)
11250         (tramp-make-tramp-file-name): Apply them.
11251         (tramp-completion-handle-file-name-all-completions): Fix for
11252         invoking ange-ftp in case of "/ftp:xxx" file names.
11253
11254 2002-09-04  Michael Albinus  <Michael.Albinus@alcatel.de>
11255
11256         * tramp.el (tramp-prefix-format)
11257         (tramp-postfix-host-format): New format strings.
11258         (tramp-prefix-regexp, tramp-method-regexp)
11259         (tramp-postfix-single-method-regexp)
11260         (tramp-postfix-multi-method-regexp)
11261         (tramp-postfix-multi-hop-regexp)
11262         (tramp-user-regexp, tramp-postfix-user-regexp)
11263         (tramp-host-regexp, tramp-postfix-host-regexp)
11264         (tramp-path-regexp): New atomar regular expressions. If
11265         corresponding format strings exist, derived from them.
11266         (tramp-file-name-structure)
11267         (tramp-multi-file-name-structure)
11268         (tramp-multi-file-name-hop-structure)
11269         (tramp-make-multi-tramp-file-format)
11270         (tramp-completion-mode)
11271         (tramp-completion-dissect-file-name)
11272         (tramp-parse-rhosts-group)
11273         (tramp-parse-shosts-group)
11274         (tramp-parse-hosts-group)
11275         (tramp-parse-passwd-group): Apply these expressions.
11276         (tramp-file-name-structure-unified)
11277         (tramp-file-name-structure-separate)
11278         (tramp-make-tramp-file-format-unified)
11279         (tramp-make-tramp-file-format-separate)
11280         (tramp-make-tramp-file-format)
11281         (tramp-make-tramp-file-user-nil-format-unified)
11282         (tramp-make-tramp-file-user-nil-format-separate)
11283         (tramp-make-tramp-file-user-nil-format)
11284         (tramp-multi-file-name-structure-unified)
11285         (tramp-multi-file-name-structure-separate)
11286         (tramp-multi-file-name-hop-structure-unified)
11287         (tramp-multi-file-name-hop-structure-separate)
11288         (tramp-make-multi-tramp-file-format-unified)
11289         (tramp-make-multi-tramp-file-format-separate): Removed.
11290         (tramp-make-tramp-file-name): Allow partial tramp file
11291         names. Generate tramp file format on-the-fly depending on
11292         parameters. Apply atomar format strings resp expressions.
11293         (tramp-get-completion-methods)
11294         (tramp-get-completion-user-host): Apply
11295         `tramp-make-tramp-file-name'.
11296         (tramp-parse-hosts-group): Take all host names and IP addresses
11297         into account.
11298         (tramp-bug): Remove `tramp-make-tramp-file-format'.
11299
11300 2002-09-01  Michael Albinus  <Michael.Albinus@alcatel.de>
11301
11302         * tramp.el (tramp-methods): Add `tramp-completion-function' for
11303         "su" and "sudo".
11304         (tramp-get-completion-telnet): Implement it.
11305         (tramp-parse-hosts)
11306         (tramp-parse-hosts-group)
11307         (tramp-get-completion-su)
11308         (tramp-parse-passwd)
11309         (tramp-parse-passwd-group): New functions.
11310
11311 2002-08-31  Michael Albinus  <Michael.Albinus@alcatel.de>
11312
11313         * tramp.el (tramp-completion-mode): Check for `last-input-char'.
11314         (tramp-completion-file-name-handler-alist): Add handler
11315         for `file-exists-p.
11316         (tramp-completion-handle-file-exists-p): New function.
11317         (tramp-completion-handle-file-name-completion): Simplified.
11318         (tramp-completion-dissect-file-name): Regexp's reorganised.
11319         (tramp-completion-handle-file-name-all-completions): Call
11320         completion-function only if `user' or `host' is given.
11321         (tramp-get-completion-user-host): New function.
11322         (tramp-get-completion-rsh)
11323         (tramp-get-completion-ssh): Apply it.
11324
11325 2002-08-29  Michael Albinus  <Michael.Albinus@alcatel.de>
11326
11327         * tramp.el (tramp-completion-file-name-handler-alist): Add handler
11328         for `expand-file-name'.
11329         (tramp-completion-handle-expand-file-name): New function.
11330
11331 2002-08-26  Michael Albinus  <Michael.Albinus@alcatel.de>
11332
11333         * tramp.el (tramp-completion-mode): New function.
11334         (tramp-completion-handle-file-name-directory)
11335         (tramp-completion-handle-file-name-all-completions): Apply it.
11336         (tramp-methods): Remove double definition of `ssh1-old' and
11337         `ssh2-old'.
11338         (tramp-point-at-eol): New defalias.
11339         (tramp-parse-rhosts-group)
11340         (tramp-parse-shosts-group):: Apply it.
11341
11342 2002-08-25  Michael Albinus  <Michael.Albinus@alcatel.de>
11343
11344         * tramp.el (tramp-get-completion-methods)
11345         (tramp-get-completion-rsh)
11346         (tramp-get-completion-ssh): Add "[" for Xemacs.
11347         (tramp-completion-file-name-regexp-separate): Expression adapted.
11348         (tramp-completion-file-name-handler-alist): Add handler for
11349         `file-name-directory' and `file-name-nondirectory'.
11350         (tramp-completion-handle-file-name-directory)
11351         (tramp-completion-handle-file-name-nondirectory)
11352         (tramp-completion-run-real-handler): New functions.
11353         (tramp-completion-file-name-handler)
11354         (tramp-completion-handle-file-name-all-completions): Apply
11355         `tramp-completion-run-real-handler'.
11356         (tramp-parse-rhosts)
11357         (tramp-parse-shosts): Use `with-temp-buffer'. `result' renamed to
11358         `res' (otherwise side effects in XEmacs).
11359
11360 2002-08-24  Michael Albinus  <Michael.Albinus@alcatel.de>
11361
11362         * tramp.el (tramp-completion-file-name-regexp)
11363         (tramp-completion-file-name-handler-alist)
11364         (tramp-flatten-list)
11365         (tramp-completion-dissect-file-name)
11366         (tramp-get-completion-rsh)
11367         (tramp-parse-rhosts)
11368         (tramp-parse-rhosts-group)
11369         (tramp-get-completion-ssh): Doc string tuned.
11370         (tramp-methods): Doc string and custom type extended for
11371         `tramp-completion-function'.
11372         (tramp-completion-function): Variable added. Is it really used?
11373         Other variables like `tramp-completion-function' aren't used.
11374         (tramp-completion-file-name-handler-alist): Add handler for
11375         `file-name-completion'.
11376         (tramp-completion-handle-file-name-completion): New function.
11377
11378 2002-08-20  Michael Albinus  <Michael.Albinus@alcatel.de>
11379
11380         Branch "completion" created. Version named (temporarily)
11381         "2.0.completion".
11382
11383 2002-08-18  Michael Albinus  <Michael.Albinus@alcatel.de>
11384
11385         * tramp.el (tramp-parse-rhosts)
11386         (tramp-parse-rhosts-group)
11387         (tramp-parse-shosts)
11388         (tramp-parse-shosts-group): New functions.
11389
11390 2002-08-17  Michael Albinus  <Michael.Albinus@alcatel.de>
11391
11392         * tramp.el (tramp-completion-dissect-file-name)
11393         (tramp-completion-dissect-file-name1): New functions.
11394
11395 2002-08-16  Michael Albinus  <Michael.Albinus@alcatel.de>
11396
11397         * tramp.el (tramp-get-completion-function)
11398         (tramp-get-completion-rsh)
11399         (tramp-get-completion-ssh)
11400         (tramp-get-completion-telnet): New functions.
11401         (tramp-methods): Add `tramp-completion-function' for
11402         all methods.
11403
11404 2002-08-15  Michael Albinus  <Michael.Albinus@alcatel.de>
11405
11406         * tramp.el (tramp-get-completion-methods): New function.
11407         (tramp-find-default-method): Allow host to be nil (like user).
11408
11409 2002-08-14  Michael Albinus  <Michael.Albinus@alcatel.de>
11410
11411         * tramp.el (tramp-completion-file-name-regexp-unified)
11412         (tramp-completion-file-name-regexp-separate)
11413         (tramp-completion-file-name-regexp)
11414         (tramp-completion-file-name-handler-alist): New defcustoms.
11415         (tramp-completion-file-name-handler): New function. Add
11416         `tramp-completion-file-name-handler' to `file-name-handler-alist'.
11417         (tramp-run-real-handler): Add `tramp-completion-file-name-handler'
11418         to `inhibit-file-name-handlers'.
11419         (tramp-completion-handle-file-name-all-completions)
11420         (tramp-completion-handle-file-name-completion): New functions.
11421
11422 2002-08-12  Michael Albinus  <Michael.Albinus@alcatel.de>
11423
11424         * tramp.el (tramp-invoke-ange-ftp): `tramp-disable-ange-ftp' must
11425         be called again after activating `ange-ftp'.
11426         (tramp-ange-ftp-file-name-p): Check for Xemacs.
11427
11428 2002-08-08  Michael Albinus  <Michael.Albinus@alcatel.de>
11429
11430         * tramp.el (tramp-do-copy-or-rename-file): Don't pass KEEP-DATE to
11431         tramp-invoke-ange-ftp 'rename.
11432         (tramp-handle-write-region): Don't pass LOCKNAME and CONFIRM to
11433         tramp-invoke-ange-ftp 'write-region.
11434         (tramp-handle-set-file-modes): Change order of FILENAME and MODE
11435         passing to tramp-invoke-ange-ftp 'set-file-modes.
11436         (tramp-flatten-list): New function. Maybe this functionality does
11437         exist already elsewhere in the libraries.
11438         (tramp-invoke-ange-ftp): Apply `tramp-flatten-list' to parameter
11439         list in order to avoid nested lists, f.e. when invoked from
11440         `tramp-handle-dired-call-process'.
11441
11442 2002-09-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11443
11444         * tramp.el (tramp-chunksize): New kluge variable.
11445         (tramp-send-region): If tramp-chunksize is non-nil, send region
11446         in parts and sleep 0.1 seconds between chunks.
11447
11448 2002-09-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11449
11450         * tramp.el (tramp-handle-insert-directory): Use
11451         `insert-buffer-substring' instead of `insert-buffer', which is not
11452         supposed to be used from Lisp.  Remember old point in a variable
11453         instead of using `mark'.  Suggestion from Stefan Monnier.
11454         (tramp-unified-filenames): New variable.  Use it in default value
11455         of other filename variables.
11456         (file-expand-wildcards): Don't advise unless "[" and "]" are used
11457         in the filename format.
11458
11459 2002-09-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11460
11461         * tramp.el (tramp-methods): Remove duplicate definition of
11462         ssh1-old and ssh2-old.
11463
11464 2002-09-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11465
11466         Version 2.0.15 released.
11467
11468         * tramp.el (require 'base64): Add explanatory comment to Steve's
11469         change.
11470         (tramp-feature-write-region-fix): Make sure that variable is
11471         always defined, even on XEmacs (where it is nil).
11472
11473 2002-08-31  Steve Youngs  <youngs@xemacs.org>
11474
11475         * tramp.el (require 'base64): Most modern Emacsen have the base64
11476         encode/decode functions built in, so test to see if they are bound
11477         before we go blindly requiring base64.el.
11478         (tramp-feature-write-region-fix): XEmacs doesn't have a
11479         'find-operation-coding-system' and this variable doesn't seem to
11480         be used anywhere so wrap it in (unless (featurep 'xemacs)).
11481
11482 2002-08-29  Michael Albinus  <Michael.Albinus@alcatel.de>
11483
11484         * tramp.el (tramp-invoke-ange-ftp):
11485         (tramp-ange-ftp-file-name-p): Check for Xemacs.
11486         (tramp-do-copy-or-rename-file): Don't pass KEEP-DATE to
11487         tramp-invoke-ange-ftp 'rename.
11488         (tramp-handle-write-region): Don't pass LOCKNAME and CONFIRM to
11489         tramp-invoke-ange-ftp 'write-region.
11490         (tramp-handle-set-file-modes): Change order of FILENAME and MODE
11491         passing to tramp-invoke-ange-ftp 'set-file-modes.
11492         (tramp-invoke-ange-ftp): `tramp-disable-ange-ftp' must be called
11493         again after activating `ange-ftp'.
11494
11495 2002-08-22  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11496
11497         * tramp.el (tramp-open-connection-su): Use user name "root" if no
11498         user name is given.
11499
11500 2002-08-22  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11501
11502         Version 2.0.14 released.
11503
11504         * tramp.el (tramp-shell-prompt-pattern): New variable.
11505         (tramp-actions-before-shell, tramp-multi-actions)
11506         (tramp-find-shell, tramp-open-connection-multi)
11507         (tramp-open-connection-setup-interactive-shell): Use it.
11508         (tramp-open-connection-telnet, tramp-open-connection-rsh)
11509         (tramp-open-connection-su): Mention `tramp-shell-prompt-pattern'
11510         in the docstring.
11511         (tramp-bug): Report `tramp-shell-prompt-pattern'.
11512         (tramp-process-one-multi-action, tramp-process-one-action): Make
11513         message clearer so people don't confuse it with Emacs asking them
11514         a question if the regexp happens to end with "?".
11515         (tramp-verbose): Change default value from 10 to 9.  Also change
11516         some logging levels so that 10 is reserved for stuff which is
11517         needed for debugging only, but 9 catches everything that people
11518         might like to see in order to see that Tramp is actually working.
11519
11520 2002-08-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11521
11522         Version 2.0.13 released.
11523
11524         * tramp.el (tramp-handle-write-region): Don't check to see if
11525         remote end is awake after sending data to remote host: we want to
11526         send "EOF" not "echo are you awake"...
11527         (tramp-maybe-open-connection): Swap args for tramp-time-diff.
11528
11529 2002-08-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11530
11531         * tramp.el (tramp-yn-prompt-regexp): New variable.
11532         (tramp-action-yn): New function, using it.
11533
11534 2002-08-08  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11535
11536         * tramp.el (tramp-feature-write-region-fix): New internal
11537         variable.  Not yet used.  Should be used in
11538         `tramp-handle-write-region'.
11539
11540 2002-08-07  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11541
11542         Version 2.0.12 released.
11543
11544         * tramp.el (tramp-find-shell)
11545         (tramp-open-connection-setup-interactive-shell): Comment out
11546         possibly obsolete "echo hello" commands.
11547         (tramp-run-real-handler): If operation is
11548         `ange-ftp-hook-function', use first arg as the real operation.
11549         (tramp-check-ls-commands): Use / instead of \ as directory
11550         separator.  (Relevant for XEmacs on Windows.)
11551         (tramp-maybe-open-connection): Use tramp-wait-for-output when
11552         waiting for the "are you awake" command.  Use a different string
11553         for the "are you awake" command.
11554         (tramp-send-command): New optional arg NEVEROPEN means to never
11555         invoke tramp-maybe-open-connection.
11556         (tramp-maybe-open-connection): Use it.
11557
11558 2002-08-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11559
11560         Version 2.0.11 released.
11561
11562         * tramp.el (tramp-invoke-ange-ftp): Avoid infloop by Ange-FTP
11563         calling Tramp again: use tramp-run-real-handler to invoke
11564         Ange-FTP.
11565         (tramp-post-connection): Erase buffer after finding a remote
11566         shell.
11567         (tramp-find-file-exists-command): Try "test -e" and its variants
11568         before "ls -d".
11569         (tramp-bug): Report `tramp-terminal-type'.
11570
11571 2002-08-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11572
11573         Version 2.0.10 released.
11574
11575         * tramp.el (tramp-perl-encode-with-module)
11576         (tramp-perl-decode-with-module)
11577         (tramp-perl-encode, tramp-perl-decode): Doc fix.  From Andreas
11578         Schwab.
11579         (tramp-bug): New variables to report.
11580         (tramp-post-connection): After finding shell, wait a bit.  I have
11581         no idea why it is necessary, but Daniel also thinks it's
11582         necessary.
11583         (tramp-uudecode): New variable.  Shell function `tramp_uudecode'
11584         for decoding to standard output for those Unices that don't have
11585         it.
11586         (tramp-post-connection): Install the function on the remote host.
11587         (tramp-coding-commands): Add an alternative for using the
11588         `tramp_uudecode' shell function.
11589         (tramp-perl-file-attributes): Print uid and gid as signed
11590         integers, not unsigned ones.
11591
11592 2002-08-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11593
11594         Version 2.0.9 released.
11595
11596         * tramp.el (tramp-bug): Add wording about additional info to
11597         include in bug report.
11598         (tramp-find-shell): Set $PS1 for invocation of second shell (for
11599         tilde expansion).
11600         (tramp-find-shell): Shell prompt must match at end of buffer.  Do
11601         this also for fallback shell prompt.
11602         (tramp-find-shell): More debugging output.
11603         (tramp-find-inline-encoding): When checking the decoding command,
11604         some commands fail when reading from /dev/null.  So we pass a
11605         known string through the encoding command and pass that through
11606         the decoding command.  So we know whether the decoding command can
11607         deal with some real input.
11608
11609 2002-08-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11610
11611         Version 2.0.8 released.
11612
11613         * tramp.el (tramp-perl-encode, tramp-perl-encode): Double the
11614         backslashes in the string.
11615
11616 2002-08-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11617
11618         Version 2.0.6 released.
11619
11620         * tramp.el (tramp-handle-make-directory): save-excursion.
11621         (tramp-default-method): Change to "ssh".
11622         (tramp-perl-encode, tramp-perl-decode): New (faster) versions.
11623         From Juanma Barranquero <lektu@terra.es>.
11624         (tramp-perl-encode-with-module, tramp-perl-decode-with-module)
11625         (tramp-perl-encode, tramp-perl-encode): Strings are passwd
11626         through `format', so double all percent characters and document.
11627
11628 2002-07-31  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11629
11630         * tramp.el (tramp-wrong-passwd-regexp): Restructure.  Add
11631         additional alternative.
11632         (tramp-action-permission-denied): Show *tramp/foo* buffer so that
11633         the user knows why.
11634         (tramp-su-program): Add defvar for this method parameter.  From
11635         Juanma Barranquero <lektu@terra.es>.
11636         (tramp-perl-encode-with-module): Rename from tramp-perl-encode.
11637         (tramp-perl-decode-with-module): Rename from tramp-perl-decode.
11638         (tramp-perl-encode, tramp-perl-decode): New implementations that
11639         do not use any Perl modules.  From Juanma Barranquero
11640         <lektu@terra.es>.
11641         (tramp-post-connection): Create shell functions tramp_encode,
11642         tramp_decode, tramp_encode_with_module, tramp_decode_with_module
11643         for the new Perl snippets.
11644         (tramp-coding-commands): Add entries for the two
11645         implementations (one with module, one without module).
11646         (tramp-handle-file-truename): Invoke Ange-FTP properly.
11647         (tramp-handle-expand-many-files): Don't try to invoke Ange-FTP
11648         twice.
11649
11650 2002-07-30  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11651
11652         * tramp.el (tramp-handle-file-attributes): Restructure logic.
11653         (tramp-handle-file-attributes-with-ls)
11654         (tramp-handle-file-attributes-with-perl): Debugging output.
11655         (tramp-coding-commands): Provide base64 encoding with recode.
11656
11657 2002-07-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11658
11659         * Makefile (prepversion): Edit tramp.el instead of creating new
11660         file tramp-version.el.
11661         (clean): Don't remove tramp-version.el, the file doesn't exist
11662         anymore.
11663
11664         * tramp.el (tramp-perl-encode, tramp-perl-decode): Very simple
11665         implementations requiring the Perl module MIME::Base64.
11666         (tramp-coding-commands): Use them.
11667         (tramp-version): Move back here from tramp-version.el.  The
11668         variable is automatically edited from the Makefile.
11669         (tramp-login-prompt-regexp, tramp-password-prompt-regexp)
11670         (tramp-wrong-passwd-regexp): Remove "$" from regexp, it must match
11671         at end of buffer anyway.
11672         (tramp-action-login, tramp-action-succeed)
11673         (tramp-action-permission-denied, tramp-multi-action-login)
11674         (tramp-multi-action-succeed)
11675         (tramp-multi-action-permission-denied): Erase buffer when
11676         finished.
11677         (tramp-process-one-action, tramp-process-one-multi-action):
11678         Always search from point-min.
11679         (tramp-enter-password): Erase buffer.
11680         (tramp-action-yesno): New function.
11681         (tramp-yesno-prompt-regexp): New variable.
11682         (tramp-actions-before-shell): Use them.
11683
11684 2002-07-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11685
11686         * tramp.el (tramp-multi-actions): New variable, like
11687         tramp-actions-before-shell, but for multi-hop connections.
11688         (tramp-perl-encode, tramp-perl-decode): New variables.  Contain
11689         Perl code for uuencode, uudecode.
11690         (tramp-post-connection): Use new Perl encode/decode implementation.
11691         (tramp-coding-commands): Ditto.
11692         (tramp-perl-mime-encode, tramp-perl-mime-decode): Remove.  This
11693         code does not work.
11694         (tramp-invoke-ange-ftp): Require ange-ftp to avoid binding
11695         ange-ftp-name-format when it is unbound.
11696         (tramp-coding-commands): Remove Perl alternative.  Fix doc.
11697
11698 2002-07-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11699
11700         * tramp.el (tramp-handle-insert-directory): Expand file name.
11701         (tramp-actions-before-shell): New variable of actions to perform
11702         before we get a shell prompt.
11703         (tramp-action-login, tramp-action-password, tramp-action-succeed)
11704         (tramp-action-permission-denied): New functions, used in above
11705         variable.
11706         (tramp-process-one-action, tramp-process-actions): Process the
11707         actions.
11708         (tramp-open-connection-telnet, tramp-open-connection-rsh): Use new
11709         action mechanism, call tramp-process-actions.
11710         (tramp-methods): Replace a lot of methods because of autodetection
11711         of mimencode/uuencode.  The new names are a bit longer but more
11712         mnemonic.
11713         (tramp-maybe-open-connection): Look to see if process is really
11714         still alive.
11715         (tramp-handle-file-attributes): Make sure to call Ange-FTP in all
11716         cases, not only for existing files.  Make sure not to call
11717         tramp-handle-file-exists-p on an Ange-FTP filename.
11718
11719 2002-07-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11720
11721         * tramp.el (tramp-handle-file-local-copy)
11722         (tramp-handle-write-region): Call
11723         `tramp-get-{de,en}coding-{function,command}' with four args.
11724         (tramp-post-connection): Always send Perl implementation of
11725         mimencode and mimedecode when Perl is available.
11726         (tramp-get-encoding-command, tramp-get-decoding-command)
11727         (tramp-get-encoding-function, tramp-get-decoding-function): New
11728         implementation, uses auto-detected connection properties.
11729
11730 2002-07-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11731
11732         * tramp.el (tramp-coding-commands): New variable.
11733         (tramp-find-inline-encoding): New function.
11734         (tramp-handle-make-directory, tramp-handle-delete-directory)
11735         (tramp-handle-delete-file): Do expand-file-name on arg.
11736
11737 2002-07-24  Steve Youngs  <youngs@xemacs.org>
11738
11739         * Makefile (prepversion): New target to create tramp-version.el.
11740         (all): Use it.
11741         (clean): Add tramp-version.el.
11742
11743         * tramp.el (tramp-version): Removed, we create it on the fly from
11744         the Makefile.
11745
11746 2002-07-23  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11747
11748         Release 2.0.3.
11749
11750         * tramp.el (tramp-open-connection-su, tramp-multi-connect-telnet)
11751         (tramp-multi-connect-rlogin, tramp-multi-connect-su)
11752         (tramp-make-tramp-file-name, tramp-make-tramp-multi-file-name):
11753         Correct alist for `format-spec', use (a . b) instead of (a b).
11754         (tramp-handle-directory-files): Handle fifth, XEmacs-specific,
11755         arg FILES-ONLY.
11756         (tramp-version): Bump version to 2.0.3.
11757
11758 2002-07-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11759
11760         * tramp.el (tramp-open-connection-su, tramp-multi-connect-telnet)
11761         (tramp-multi-connect-rlogin, tramp-multi-connect-su)
11762         (tramp-make-tramp-file-name, tramp-make-tramp-multi-file-name):
11763         Use backticks in format-spec for brevity and to avoid
11764         character/number confusion in XEmacs.
11765
11766 2002-07-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11767
11768         * tramp.el (tramp-do-copy-or-rename-via-buffer): New function.
11769         (tramp-do-copy-or-rename-file): Use it.  Change and simplify
11770         logic.  Omit special case of invoking rcp directly to copy the
11771         files.
11772
11773 2002-07-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11774
11775         * tramp.el (tramp-multi-sh-program): New variable.
11776         (tramp-open-connection-multi): Use it.
11777         Bump version to 2.0.2.
11778
11779 2002-07-19  Steve Youngs  <youngs@xemacs.org>
11780
11781         * tramp.el: Revert my previous patch.  It's better to work around
11782         the colour prompt problem outside of Tramp, eg in ~/.bashrc or
11783         similar.
11784
11785 2002-07-19  Steve Youngs  <youngs@xemacs.org>
11786
11787         * tramp.el (tramp-find-shell): Remove "\\'" from regexp so we can
11788         deal with shell prompts that have colour control characters in
11789         them.
11790         (tramp-open-connection-telnet): Ditto.
11791         (tramp-open-connection-rsh): Ditto.
11792         (tramp-open-connection-su): Ditto.
11793         (tramp-open-connection-multi): Ditto.
11794         (tramp-multi-connect-telnet): Ditto.
11795         (tramp-multi-connect-rlogin): Ditto.
11796         (tramp-multi-connect-su): Ditto.
11797         (tramp-open-connection-setup-interactive-shell): Ditto.
11798
11799 2002-07-18  Steve Youngs  <youngs@xemacs.org>
11800
11801         * tramp.el (tramp-multi-file-name-structure-separate): Typo, it's
11802         name was set to 'tramp-file-name-structure-separate'.
11803
11804
11805 2002-07-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11806
11807         * tramp.el (tramp-methods): Rename methods invoking "ssh1" or
11808         "ssh2" to longer names.  Use old names sm1, sm2, su1, su2 and so
11809         on for methods invoking "ssh -1" or "ssh -2".
11810
11811 2002-07-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11812
11813         * tramp.el (tramp-multi-file-name-structure-unified): Add missing
11814         initial slash.  Colon is moved from start to end of hop regexp,
11815         adjust this regexp accordingly.
11816         (tramp-file-name-structure-separate): Bug fix.
11817         (tramp-multi-file-name-hop-structure-unified): Move colon from
11818         beginning to end.
11819
11820 2002-07-11  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11821
11822         * tramp.el (tramp-handle-make-symbolic-link): Complete implementation.
11823
11824 2002-07-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11825
11826         * tramp.el (tramp-file-name-structure): Add missing paren.
11827         (tramp-file-name-regexp-unified, tramp-file-name-regexp-separate):
11828         Add autoload cookies.
11829         (tramp-default-method): New default value "sm" for all Emacsen.
11830         (tramp-default-method-alist): Invoke Ange-FTP for some user/host
11831         combinations on Emacs.
11832
11833 2002-07-09  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11834
11835         * tramp.el (tramp-handle-file-name-directory): Don't return "/"
11836         for the root directory on a remote host.
11837         (tramp-file-name-structure-unified)
11838         (tramp-file-name-structure-separate)
11839         (tramp-file-name-regexp-unified)
11840         (tramp-make-tramp-file-format-unified)
11841         (tramp-make-tramp-file-format-separate)
11842         (tramp-make-tramp-file-user-nil-format-unified)
11843         (tramp-make-tramp-file-user-nil-format-separate)
11844         (tramp-multi-file-name-structure-unified)
11845         (tramp-multi-file-name-structure-separate)
11846         (tramp-file-name-structure-unified)
11847         (tramp-file-name-structure-separate)
11848         (tramp-multi-file-name-hop-structure-unified)
11849         (tramp-multi-file-name-hop-structure-separate)
11850         (tramp-make-multi-tramp-file-format-unified)
11851         (tramp-make-multi-tramp-file-format-separate): New constants.
11852         (tramp-file-name-structure, tramp-file-name-regexp)
11853         (tramp-make-tramp-file-format)
11854         (tramp-make-tramp-file-user-nil-format)
11855         (tramp-multi-file-name-structure)
11856         (tramp-file-name-structure)
11857         (tramp-multi-file-name-hop-structure)
11858         (tramp-make-multi-tramp-file-format): Use them as default values.
11859         On Emacs, use the *-unified variants, on XEmacs, use the
11860         *-separate variants.  Tramp and Ange-FTP share a common filename
11861         syntax on Emacs, but Tramp and EFS use separate filename syntaxes
11862         on XEmacs.
11863         (tramp-handle-ange-ftp): Removed.
11864         (tramp-disable-ange-ftp): New function to disable Ange-FTP if
11865         enabled.  Unconditionally call it at top level when file is
11866         loaded.  This should be safe since XEmacs uses EFS.
11867         (tramp-default-method): New default value "ftp" on Emacs, "sm" on
11868         XEmacs.
11869
11870 2002-07-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11871
11872         * tramp.el (tramp-handle-ange-ftp): Move interactive spec after
11873         docstring.  From Andreas Schwab.
11874
11875 2002-07-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11876
11877         * tramp.el (tramp-send-eof): Doc string typo.
11878         (tramp-kill-process): Likewise.
11879         From Juanma Barranquero <lektu@terra.es>.
11880
11881 2002-07-02  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11882
11883         * tramp.el (tramp-handle-ange-ftp): Add todo items for handling
11884         EFS, too.
11885
11886 2002-06-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11887
11888         * tramp.el (tramp-handle-ange-ftp): New function to set up Tramp
11889         configuration suitable for replacing Ange-FTP.
11890         (tramp-repair-jka-compr): Factor out some previously top-level
11891         code into an extra function.  Also call it at top-level.
11892
11893 2002-06-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11894
11895         * tramp.el (tramp-file-name-structure, tramp-file-name-regexp)
11896         (tramp-make-tramp-file-format)
11897         (tramp-make-tramp-file-user-nil-format)
11898         (tramp-multi-file-name-structure)
11899         (tramp-multi-file-name-hop-structure)
11900         (tramp-make-multi-tramp-file-format): Change to an Ange-FTP-like
11901         filename syntax.
11902         (tramp-handle-ange-ftp, toplevel): Remove Ange-FTP from filename
11903         handler alist if tramp-handle-ange-ftp is non-nil.
11904         (tramp-handle-delete-file)
11905         (tramp-handle-verify-visited-file-modtime)
11906         (tramp-handle-make-symbolic-link): Fix typos.
11907         (tramp-wait-for-regexp, tramp-wait-for-output): Convert int to
11908         string before passing it to `insert'.
11909
11910 2002-06-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11911
11912         * tramp.el (tramp-open-connection-rsh): Provide a hack for a "-p"
11913         argument to specify a port number.
11914
11915         Version 2.0.1 released.
11916
11917         * tramp.el (tramp-version): New version 2.0.1.
11918
11919 2002-06-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11920
11921         * tramp.el (tramp-handle-file-truename): Don't invoke Ange-FTP.
11922         (tramp-invoke-ange-ftp): Remove superfluous IDX-LIST argument.
11923         Callers changed.
11924
11925 2002-06-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11926
11927         * tramp.el (tramp-ftp-method): New user option.
11928         (with-parsed-tramp-file-name): New macro for the usual big `let'
11929         statement to dissect a file-name.
11930         (tramp-handle-make-symbolic-link, tramp-handle-load)
11931         (tramp-handle-file-name-directory)
11932         (tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
11933         (tramp-handle-file-truename, tramp-handle-file-directory-p)
11934         (tramp-handle-file-regular-p, tramp-handle-file-symlink-p)
11935         (tramp-handle-file-writable-p, tramp-handle-file-writable-p): Use
11936         the new macro and forward call to Ange-FTP if applicable.
11937         (tramp-make-ange-ftp-file-name): New helper function to convert a
11938         file name into an Ange-FTP file name, used by
11939         `tramp-invoke-ange-ftp'.
11940         (tramp-invoke-ange-ftp): New function to forward calls to
11941         Ange-FTP.
11942
11943 2002-06-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11944
11945         * tramp.el (tramp-default-method-alist): New user option.
11946         (tramp-find-default-method): Use it.
11947
11948 2002-06-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11949
11950         * tramp.el (tramp-sh-extra-args): New variable.
11951         (tramp-find-shell): Use it.
11952
11953 2002-06-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11954
11955         * tramp.el: New todo item.
11956
11957 2002-06-15  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11958
11959         * tramp.el (tramp-handle-file-truename): Lower numchase-limit
11960         (max number of symlink traversals) from 30 to 20.
11961
11962 2002-06-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11963
11964         * tramp.el (tramp-bug-report-address): Change bug reporting
11965         address to Savannah.
11966
11967 2002-06-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11968
11969         * tramp.el (tramp-methods): New method "fcp".  Suggested by
11970         graydon@redhat.com.
11971
11972 2002-06-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11973
11974         * tramp.el (tramp-methods): Allow nil where strings are allowed.
11975         (tramp-handle-file-truename): Decrease limit on chasing symlinks
11976         to provide earlier error message in case of failure.  People might
11977         think that Emacs is hanging.
11978
11979 2002-05-22  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11980
11981         * tramp.el (tramp-find-shell, tramp-open-connection-telnet)
11982         (tramp-open-connection-rsh, tramp-open-connection-su)
11983         (tramp-open-connection-multi, tramp-multi-connect-telnet)
11984         (tramp-multi-connect-rlogin)
11985         (tramp-open-connection-setup-interactive-shell): Shell prompt
11986         must match at end of buffer.
11987
11988 2002-05-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11989
11990         * tramp.el (tramp-send-linewise): Use sleep-for instead of sit-for
11991         to wait 0.1s.  sit-for does not wait if the user types ahead.
11992
11993 2002-05-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11994
11995         * tramp.el (tramp-send-linewise): Wait 0.1s instead of 0.001s.
11996
11997 2002-05-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
11998
11999         * tramp.el (tramp-send-linewise): New function.
12000         (tramp-post-connection): Use it for sending long strings.
12001
12002 2002-04-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12003
12004         * tramp.el (tramp-shell-quote-argument): Todo item: don't use
12005         `shell-quote-argument'.
12006
12007 2002-04-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12008
12009         * tramp.el (tramp-methods): New method "pscp".  Suggestion from
12010         lawrence mitchell.
12011
12012 2002-04-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12013
12014         * tramp.el (file-expand-wildcards): Advise it even on Emacs 21.
12015         (tramp-methods): New methods "plinku" and "plinkm".
12016         "plinku" was suggested by Adam Przepiórkowski.
12017
12018 2002-04-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12019
12020         * tramp.el (tramp-shell-quote-argument): When calling
12021         shell-quote-argument internally, make sure it uses Unix-like
12022         behavior, not Windows-like behavior.  (This is done by binding
12023         system-type, which is certainly not the right way to do it!)
12024
12025 2002-03-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12026
12027         * tramp.el (tramp-handle-add-name-to-file): Use "ln" connection
12028         property instead of literal "ln" in command.
12029         (tramp-post-connection): Only set "ln" connection property if that
12030         program could be found.  Erase buffer when done.
12031         (tramp-handle-expand-file-name): Erase buffer before and after
12032         expanding tilde.
12033
12034 2002-03-12  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12035
12036         * tramp.el (tramp-post-connection): Make sure to leave an empty
12037         connection buffer on exit.
12038
12039 2002-03-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12040
12041         * tramp.el (tramp-handle-make-symbolic-link)
12042         (tramp-handle-directory-files)
12043         (tramp-handle-file-name-all-completions)
12044         (tramp-handle-dired-call-process, tramp-handle-insert-directory)
12045         (tramp-handle-expand-file-name, tramp-handle-shell-command): Make
12046         sure to "cd" back to the home dir.  Otherwise, previous commands
12047         could affect future commands because of the wrong cwd.
12048         (tramp-shell-quote-argument): Don't invoke substring on short
12049         strings.
12050
12051 2002-03-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12052
12053         * tramp.el (tramp-shell-quote-argument): If the argument starts
12054         with "~", don't quote that.  Reported by Martin Guertler.
12055
12056 2002-03-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12057
12058         * tramp-util.el (top-level): Require cl when compiling.  This
12059         fixes problems with byte-compiling under Emacs 20.  Reported by
12060         Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>.
12061
12062 2002-03-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12063
12064         * tramp.el (tramp-post-connection): Issue message when checking
12065         encoding/decoding commands is finished.
12066
12067 2002-02-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12068
12069         * tramp.el (file-expand-wildcards): Make sure that the return
12070         value is always a list.
12071
12072 2002-02-12  Steve Youngs  <youngs@xemacs.org>
12073
12074         * tramp.el (tramp-handle-insert-directory): Change "#'identity" to
12075         "'identity" it was causing a invalid read syntax error that edebug
12076         brought to the surface.
12077         Add a "." after directory name so that symlinked directories
12078         display properly on platforms that have breakage on symlinks like
12079         Solaris.
12080
12081 2002-02-08  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12082
12083         * tramp.el (file-expand-wildcards): Improve the kludge by looking
12084         if the path name part of the filename contains wildcard
12085         characters at all.  If this is not the case, we avoid calling the
12086         original function at all.
12087
12088 2002-02-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12089
12090         * tramp.el (tramp-handle-verify-visited-file-modtime): When the
12091         file does not exist, it is not modified.
12092
12093 2002-01-31  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12094
12095         * tramp.el (tramp-handle-verify-visited-file-modtime): Don't use
12096         modtime from `file-attributes' if it is nil.
12097
12098 2002-01-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12099
12100         * Makefile: Define a flag USE_CONTRIB which adds the local contrib
12101         directory to the load-path if set.  Use suffix rules.  From
12102         Norbert Koch <nk@LF.net>.
12103
12104 2002-01-22  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12105
12106         * tramp.el (tramp-handle-set-visited-file-modtime): Save
12107         `last-coding-system-used' in a way that works even if the
12108         variable is not defined.
12109         (tramp-handle-insert-file-contents): Use
12110         tramp-message-for-buffer, not tramp-message.
12111         (tramp-message): Prefix all messages with "tramp:".
12112         (tramp-handle-file-local-copy): Use tramp-message-for-buffer, not
12113         tramp-message.
12114         (tramp-handle-insert-file-contents): Remove debug message
12115         referring to `last-coding-system-used' -- it does not exist on
12116         all Emacsen.
12117         (toplevel): New todo item.
12118         (tramp-kill-process): New function.
12119         (tramp-post-connection): Kill connection process if something
12120         goes wrong.
12121
12122 2002-01-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12123
12124         * tramp.el (top-level, tramp-run-real-handler, efs-ftp-path):
12125         Disable special handling for ange-ftp and EFS.  This was only
12126         needed when Tramp names also matched the ange-ftp filename regexp.
12127         This experimental change only comments out the relevant sections.
12128
12129 2002-01-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12130
12131         * tramp.el: Remove some todo items which are done.
12132         (tramp-methods): Use doubled `-t -t' for `scpx' and `smx'
12133         methods.
12134
12135 2002-01-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12136
12137         * tramp.el (tramp-handle-write-region): When calling
12138         `write-region' to write the temp file, pass `no-message' for
12139         VISIT.  If our own VISIT arg is true, we explicitly call
12140         `set-visited-file-modtime' later on.  If we pass VISIT=t when
12141         writing the temp file, the visited-file-modtime information of
12142         the buffer is clobbered by a local time, which will bite us when
12143         the local and remote times are out of sync.
12144         (tramp-handle-write-region): Make sure to set
12145         `last-coding-system-used' at the very end of the function.  In
12146         particular, don't allow `set-visited-file-modtime' to clobber it.
12147         (tramp-handle-set-visited-file-modtime): Take care to not clobber
12148         `last-coding-system-used' -- it would confuse jka-compr.
12149
12150 2002-01-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12151
12152         * tramp.el (clear-visited-file-modtime): Advise this function; it
12153         does not support filename handlers.  Set the Lisp variable that
12154         we use for emulating modtime back to nil.
12155         (tramp-handle-set-visited-file-modtime): If time-list is
12156         provided, call real handler with that data.
12157         (tramp-handle-verify-visited-file-modtime): Allow 1 sec
12158         difference between times.
12159         (tramp-time-diff): `itimer-time-difference' expects three-element
12160         lists; pad short lists when calling that function.  Reported by
12161         Skip Montanaro <skip@pobox.com>.
12162         Also swap preference order of `itimer-time-difference' and
12163         `subtract-time': prefer the latter.
12164
12165 2002-01-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12166
12167         * tramp.el (tramp-handle-expand-file-name): Bind
12168         directory-sep-char to "/" so that XEmacs on Windows does the
12169         right thing.
12170         (tramp-handle-file-truename): Return trailing "/" if input had
12171         trailing "/".
12172
12173 2002-01-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12174
12175         * tramp.el (tramp-handle-file-truename): Use
12176         `tramp-method-for-buffer' to make sure that log messages end up
12177         in the right buffer.  Correct braino in symlink handling.
12178
12179 2002-01-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12180
12181         * tramp.el (tramp-split-string): New compat function.
12182         (tramp-handle-file-truename): Use it.
12183
12184 2002-01-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12185
12186         * tramp.el (tramp-find-shell): If starting bash for tilde
12187         expansion, provide `--norc' argument.
12188         (tramp-handle-file-truename): More debugging output.  More Obiwan
12189         errors.
12190
12191 2002-01-03  Steve Youngs  <youngs@xemacs.org>
12192
12193         * tramp.el (tramp-find-shell): Change order for choice of shell,
12194         put bash first.
12195
12196 2002-01-02  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12197
12198         * tramp.el (tramp-handle-file-truename): Another Obiwan error.
12199         For relative symlinks "/a/b" pointing to "c/d", the "b" part
12200         should not be part of the truename.
12201
12202 2002-01-01  Kai Grossjohann  <kai@ls6.informatik.uni-dortmund.de>
12203
12204         * tramp.el (tramp-handle-file-truename): Obiwan error.
12205         (tramp-process-actions): New function.  Doesn't do anything yet.
12206
12207 2001-12-30  Kai Großjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
12208
12209         * base64.el: Moved to contrib directory.
12210         * format-spec.el: Ditto.
12211
12212 2001-12-30  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12213
12214         * tramp.el (tramp-post-connection): Use parens around "test / -nt
12215         /" command to find out if `test' supports the `-nt' switch.
12216         Without the parens, /bin/sh as of BSD/OS 4.x crashes.
12217         Reported by Jason Mastaler.
12218         (tramp-remote-path): Add /usr/contrib/bin.
12219         Reported by Jason Mastaler.
12220
12221 2001-12-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12222
12223         * Makefile (tramp.elc): Remove superfluous dependencies.
12224
12225         * tramp-vc.el (tramp-vc-workfile-unchanged-p): Supply two args to
12226         vc-default-workfile-unchanged-p.
12227
12228         * tramp-util.el (tramp): Require tramp.
12229
12230         * tramp.el (tramp-check-ls-command): Return status of command to
12231         check if ls supports the `-n' option should be zero, not non-nil.
12232         (tramp-find-ls-command): Look for `gls' in addition to `ls' and
12233         `gnuls' binaries.
12234
12235 2001-12-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12236
12237         * tramp.el (tramp-post-connection): Move comment.  Check to see if
12238         decoding and encoding commands work, if given in method
12239         definition.
12240
12241 2001-12-28  Kai Grossjohann  <kai@ls6.informatik.uni-dortmund.de>
12242
12243         * tramp.el (tramp-file-name-handler-alist): New entry for
12244         `file-truename'.
12245         (tramp-handle-file-truename): New function.
12246
12247 2001-12-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12248
12249         * tramp.el (toplevel): Don't barf if jka-compr is already loaded.
12250         Instead, make sure that jka-compr comes first in
12251         file-name-handler-alist.
12252         (tramp-handle-set-visited-file-modtime): More error checking.  If
12253         `file-attributes' returns modtime (0 0), then assume modtime isn't
12254         known and revert to using `ls -ild'.  Previously, we checked if
12255         Perl was available.
12256         (tramp-handle-verify-visited-file-modtime): Check for modtime
12257         being (0 0), rather than Perl being available.
12258         (tramp-handle-write-region): Some sanity checking: make sure that
12259         current buffer isn't changed while the function runs.  (Maybe this
12260         is not necessary now?)  Only set-visited-file-modtime if VISIT is
12261         t (used to check for non-nil).
12262         (tramp-make-auto-save-file-name): Construct a local filename, then
12263         run `make-auto-save-file-name' on it.  This makes sure that no
12264         filename handlers will be run on that file.  (Specifically, this
12265         avoids jka-compr -- we want auto-save files to be saved quickly.
12266         This fixes the change from 2001-12-07 which aimed at doing the
12267         same thing, but failed.)
12268
12269 2001-12-26  Kai Grossjohann  <kai@ls6.informatik.uni-dortmund.de>
12270
12271         * tramp.el (tramp-buffer-file-attributes): Doc string fix.
12272         (tramp-handle-set-visited-file-modtime): Don't barf if called
12273         without arguments.  Use output of "ls -ild", not return value of
12274         file-attributes, for tramp-buffer-file-attributes.
12275         (tramp-handle-verify-visited-file-modtime): Use output of "ls
12276         -ild", not return value of file-attributes, for
12277         tramp-buffer-file-attributes.
12278         (tramp-handle-insert-file-contents): Call set-visited-file-modtime
12279         without args.
12280         (tramp-handle-insert-file-contents): Ditto.
12281         (tramp-handle-write-region): Pass VISIT arg on to call of real
12282         handler.  (The old code of passing the `no-message' symbol instead
12283         was a little strange -- an XEmacsism?)
12284         (tramp-handle-write-region): Call set-visited-file-modtime, if
12285         VISIT.
12286         Remove some todo items.
12287
12288 2001-12-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12289
12290         * tramp.el (tramp-buffer-file-attributes): New variable.
12291         (tramp-handle-set-visited-file-modtime): Use it in case the
12292         remote end does not give us the right modtime.
12293         (tramp-handle-verify-visited-file-modtime): Implementation.
12294
12295 2001-12-07  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12296
12297         * tramp.el (tramp-make-auto-save-file-name): Append "~" to
12298         auto-save file name; this avoids jka-compr when auto-saving.
12299
12300 2001-11-30  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12301
12302         * tramp.el (tramp-handle-file-name-all-completions): Return nil
12303         if filename contains a slash.
12304         (tramp-handle-directory-file-name): New implementation.  From
12305         Philippe Troin <phil@fifi.org>.
12306
12307 2001-11-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12308
12309         * tramp.el (toplevel): Emit an error message if jka-compr is
12310         already loaded.
12311
12312 2001-11-08  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12313
12314         * tramp-util.el (tramp-compile): Use
12315         `tramp-handle-shell-command', not `shell-command'.
12316
12317 2001-11-07  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12318
12319         * tramp-util.el (tramp-compile): Make sure default-directory is
12320         set correctly.
12321
12322         * tramp.el (tramp-post-connection): Don't send Perl `mime-encode'
12323         and `mime-decode' implementations unless really needed.
12324
12325 2001-11-02  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12326
12327         * tramp.el (file-expand-wildcards): Advise this function to work
12328         around a problem in Emacs 20.x.  This is just a kludge!
12329
12330 2001-10-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12331
12332         * tramp.el (tramp-open-connection-su): Make sure that user name is
12333         given.
12334
12335 2001-10-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12336
12337         * tramp.el (tramp-handle-file-name-directory): Return "/" if
12338         `path' component is empty.
12339
12340 2001-10-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12341
12342         * tramp.el (tramp-file-name-structure): Allow dot in host names.
12343
12344 2001-09-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12345
12346         * tramp.el (tramp-file-name-structure): Make regexp less
12347         restrictive to allow multi-hop filenames.
12348
12349 2001-09-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12350
12351         * tramp.el (tramp-bug): Report more info about multi-hop methods.
12352
12353 2001-09-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12354
12355         * tramp-util.el (tramp-compile): require compile.
12356
12357 2001-09-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12358
12359         * tramp.el (tramp-bug-report-address): Update to reflect move to
12360         SourceForge.
12361
12362 2001-09-09  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12363
12364         * tramp.el (Module): Add a todo item.
12365
12366 2001-08-31  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12367
12368         * tramp2.el (tramp2-setup-coding-system): Find a good coding
12369         system in extra function so it can be customized via
12370         tramp2-setup-functions.
12371         (tramp2-execute-local): Set TERM to dumb, just to be on the safe
12372         side.
12373
12374 2001-08-12  Kai Grossjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
12375
12376         * tramp.el: Default file name format changed again.  This time,
12377         it's like /[method/user@host]/path/to/file.  The user@ part is
12378         optional.  Multihop files are like
12379         /[multiu/telnet:user@host/ssh:user2@host2]/path/to/file.
12380
12381 2001-08-05  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12382
12383         * tramp.el: Default file name format changed!  File names with
12384         default method have changed from /r:user@host:/path/to/file to
12385         /./user@host:/path/to/file.  Files with explicitly specified
12386         method have changed from /r@meth:user@host:/path/to/file to
12387         /./@meth:user@host:/path/to/file.  (Note one more colon for method
12388         spec!)
12389
12390 2001-07-31  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12391
12392         * tramp.el (tramp-barf-unless-okay): Add new arg `signal' and
12393         signal that signal rather than calling `error'.
12394
12395 2001-07-11  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12396
12397         * tramp.el (tramp-multi-file-name-hop-structure): Allow digits and
12398         underscore in name of hop connection method.  Suggested by Alan
12399         D. Salewski.
12400         (tramp-multi-connect-su): Thinko in logic.  Reported by Alan
12401         D. Salewski.
12402
12403 2001-06-03  Kai Grossjohann  <grossjoh@ls6.informatik.uni-dortmund.de>
12404
12405         * tramp2.el (tramp2-execute-local): Set TERM environment variable
12406         to dumb.
12407
12408 2001-06-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12409
12410         * tramp.el (tramp-send-eof): Always send a literal Ctrl-D, even if
12411         client is Windows.
12412         (tramp-find-executable): Remove superfluous newline.
12413         (tramp-handle-write-region): Remove superfluous `echo hello'
12414         command which clobbers the exit status.
12415         (tramp-handle-delete-file): Signal file error if deletion failed.
12416         This depends on `rm -f' on the remote end to set the exit status
12417         correctly.  This does not provide a meaningful message.  How do we
12418         extract the error message from `rm -f' from the buffer?
12419         (tramp-handle-write-region): Use "<<EOF" style of sending file
12420         contents on standard input.  It seems the old way of omitting
12421         "<<EOF" from the command, then using process-send-eof to indicate
12422         end of file, sent an `exit' command to the shell.  This also
12423         happens when sending an explicit Ctrl-D character.  This appears
12424         to be needed for the `suu' method (while it is not needed for the
12425         `sm' method).  Go figure.
12426
12427 2001-05-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12428
12429         * tramp.el (tramp-open-connection-telnet): `tramp-read-passwd'
12430         called with result of `tramp-wait-for-regexp'.  But the return
12431         value of the latter changed, so adjust call of former accordingly.
12432         (tramp-open-connection-su): Ditto.
12433
12434 2001-05-28  Mark A. Hershberger  <mah@everybody.org>
12435
12436         *tramp.el (tramp-methods): Add new entry for smp method.
12437         (tramp-perl-mime-encode): New variable to implement mime-encode.
12438         (tramp-perl-mime-decode): New variable to implement mime-decode.
12439         (tramp-post-connection): Send perl mime-{encode,decode} implementation.
12440
12441 2001-05-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12442
12443         * tramp.el (tramp-open-connection-setup-interactive-shell): Do
12444         `stty kill ^U' in case some system sets it to `@'.  Remove the
12445         `stty erase ^?' from yesterday.
12446         (tramp-open-connection-telnet): `tramp-wait-for-regexp' returns
12447         list of strings, not just one string.  Adjust call of
12448         `tramp-read-passwd' accordingly.
12449         (tramp-open-connection-su): Ditto.
12450
12451 2001-05-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12452
12453         * tramp.el (tramp-open-connection-setup-interactive-shell): Do
12454         `stty erase ^?' in case some system sets it to `@'.  Suggested by
12455         Stefan Monnier.
12456
12457 2001-05-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12458
12459         * tramp.el (tramp-send-command-and-check): Add a space in the
12460         shell command.  Suggested by Yuji Yamao.  (I don't really
12461         understand this.)
12462         New todo item.
12463
12464 2001-05-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12465
12466         * tramp.el (tramp-bug): Typo in variables list.  Only include
12467         backup-by-copying-when-privileged-mismatch if bound.
12468         (tramp-file-name-structure): Allow uppercase characters in file
12469         names.  [Would it have been better to bind case-fold-search?]
12470
12471 2001-04-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12472
12473         * tramp.el (tramp-do-copy-or-rename-file): When moving, be sure to
12474         delete the old file in all cases.
12475
12476 2001-04-23  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12477
12478         * tramp.el (tramp-send-command-and-check): `2>/dev/null'
12479         (tramp-check-ls-command): Don't `2>/dev/null', this is done in
12480         tramp-send-command-and-check.
12481
12482 2001-04-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12483
12484         * tramp.el (tramp-open-connection-setup-interactive-shell): Posix
12485         shells don't allow you to turn off the history, so we redirect it
12486         to an innocuous file and limits that file's size as much as
12487         possible.
12488         (tramp-find-executable): Be extra careful when searching for
12489         executables, include sentinel string to search for.
12490
12491 2001-04-12  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12492
12493         * tramp.el (tramp-handle-write-region): Don't use here document,
12494         just send encoded file on stdin.  Suggested by Stefan Monnier.
12495
12496 2001-03-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12497
12498         * tramp.el (tramp-multi-connect-su): Don't clobber `found'.
12499
12500 2001-03-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12501
12502         * tramp.el (tramp-methods, tramp-telnet-args): New method
12503         parameter `tramp-telnet-args'.
12504         (tramp-get-telnet-args): New function.
12505         (tramp-open-connection-telnet): Use it.
12506
12507 2001-03-07  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12508
12509         * tramp.el (tramp-line-end-position): New implementation, moved to
12510         beginning of file.
12511         (tramp-multi-connect-rlogin): Unused variable `pw' deleted.
12512         (tramp-discard-garbage-erase-buffer): More args.
12513         (tramp-open-connection-setup-interactive-shell): Pass more args.
12514         (tramp-wait-for-output): Unused variable `result' deleted.
12515         (tramp-wait-for-output): Wrong variable.
12516         (tramp-octal-to-decimal): Use `x'.
12517         (tramp-get-rcp-args): Error message typo.
12518         (tramp-temporary-file-directory): Pacify byte-compiler, use funcall.
12519
12520 2001-03-04  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12521
12522         * tramp.el (tramp-handle-file-directory-p): Use `test -d' rather
12523         than `cd' to check if a file is a directory.  Suggested by Stefan
12524         Monnier.
12525         (tramp-get-rcp-args): Typo in error message.  This should be
12526         `didn't specify rcp args' rather than `didn't specify tramp
12527         args'...  A relic of the Great Renaming from RCP to Tramp, no
12528         doubt.
12529
12530 2001-03-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12531
12532         * tramp.el (tramp-find-shell): Allow `$ ' as shell prompt after
12533         starting a shell for tilde expansion.
12534         (tramp-methods): Expand documentation for `tramp-methods'.
12535         (tramp-methods): New method `smx' which is like `sm' but
12536         unconditionally starts /bin/sh on the remote end.  This might
12537         avoid shell startup overhead.  Patch by Michael Kifer.
12538         (tramp-verbose): New default value `10', it seems most people need
12539         to set it to this value, anyway, to see what's happening.
12540         Suggested by Michael Kifer.
12541
12542 2001-02-28  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12543
12544         * tramp.el (tramp-open-connection-rsh): Doc bug.  Reported by Tom
12545         Roche.
12546
12547 2001-02-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12548
12549         * tramp.el (tramp-run-test2): Allow user1 and user2 to be nil.
12550         Reported by Michael Kifer.
12551
12552 2001-02-23  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12553
12554         * tramp.el:  Patch by Francesco Potortì, slightly modified.
12555         (tramp-discard-garbage): New variable.  When non-nil,
12556         expect that remote shell sends some garbage on startup, and delete
12557         it.
12558         (tramp-discard-garbage-erase-buffer): New function.
12559         (tramp-open-connection-setup-interactive-shell): Use it.
12560         (tramp-methods): New method for Kerberos and mimencode.
12561         (tramp-find-executable): Avoid mentioning all directories on the
12562         command line, instead send directory names on stdin.  Reported by
12563         Paul Stevenson.
12564
12565 2001-02-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12566
12567         * tramp.el (tramp-open-connection-setup-interactive-shell): Wait a
12568         bit at the very beginning, in case the remote end feels like
12569         sending some junk.  Reported by Francesco Potortì.
12570
12571 2001-02-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12572
12573         * tramp.el (tramp-open-connection-setup-interactive-shell): Also
12574         `unset CDPATH' for the ksh users.  Reported by Jim Greer.
12575
12576 2001-02-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12577
12578         * tramp.el (tramp-wait-for-output): Clearer message when prompt is
12579         not found.  Suggestion from Francesco Potortì.
12580         (tramp-wait-for-regexp): Clearer message when regexp is not
12581         found.  Suggestion from Francesco Potortì.
12582
12583 2001-02-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12584
12585         * tramp.el (tramp-find-executable): Use "test -x $f -a -f $f" to
12586         find out whether it's an executable.  Suggestion from Francesco
12587         Potortì.
12588
12589 2001-02-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12590
12591         * tramp-vc.el: Require vc-rcs for `vc-rcs-release' if necessary.
12592         (tramp-vc-workfile-unchanged-p): Compatibility with old and new VC.
12593         (vc-checkout): Avoid byte-compiler warning.
12594
12595         * tramp.el (tramp-find-executable): Make sure that file is not a
12596         directory.  Reported by Ed Sabol.
12597         (tramp-open-connection-telnet): Remote login default to local
12598         login, but only when actually sending the login name.  The other
12599         functions (for buffer name and stuff) continue to pass `nil' for
12600         the user.
12601
12602 2001-02-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12603
12604         * tramp.el: New todo item.
12605         (tramp-terminal-type): Don't hardwire $TERM value when
12606         opening a connection to the remote host.  Suggestion from rand at
12607         meridian-enviro dot com.
12608         (tramp-find-executable): Use a shell-based implementation for
12609         tramp-find-executable.  Suggestion from Francesco Potortì.
12610         (tramp-buffer-name, tramp-buffer-name-multi-method)
12611         (tramp-debug-buffer-name): Better buffer name format for omitted
12612         user names.
12613
12614 2001-01-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12615
12616         * tramp.el (tramp-handle-load): Call `load' on local copy with
12617         fewer args for XEmacs compatibility.
12618
12619 2001-01-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12620
12621         * tramp.el (tramp-open-connection-telnet)
12622         (tramp-open-connection-rsh, tramp-open-connection-su)
12623         (tramp-open-connection-multi): Locally bind TERM env var to "dumb"
12624         before starting the login on the remote host.
12625
12626 2001-01-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12627
12628         * tramp.el (tramp-handle-file-name-all-completions): Local
12629         variable `dirs' not necessary anymore.  Kudos to Bruce Ingalls for
12630         pointing this out.
12631
12632 2001-01-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12633
12634         * tramp.el (tramp-open-connection-setup-interactive-shell): `unset
12635         HISTFILE' rather than `set -o history' to turn off the history.
12636         Pete Forman says this works on bash1 and bash2, but not for ksh or
12637         a Posix sh.  He also says there's no way to turn history off for
12638         ksh and Posix shells, except by invoking non-interactively.  I
12639         won't do that, though, because I need the prompts.
12640
12641 2001-01-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12642
12643         * base64.el: New version from Oort Gnus as of today.
12644
12645 2000-12-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12646
12647         * tramp.el (tramp-post-connection): Search for a shell before
12648         finding a command to check if a file exists.
12649
12650 2000-11-18  Daniel Pittman  <daniel@rimspace.net>
12651
12652         * tramp-vc.el (tramp-handle-vc-user-login-name): Support the case
12653         where the user name is `nil'
12654
12655 2000-11-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12656
12657         * tramp.el (tramp-send-command-and-check): Send command and "echo
12658         $?" as two separate commands.
12659
12660 2000-11-15  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12661
12662         * tramp.el (tramp-handle-shell-command): Return exit status.
12663
12664         * tramp-vc.el (tramp-vc-do-command): Return exit status.
12665         (tramp-vc-do-command-new): For the new VC that comes with Emacs
12666         21.
12667         (tramp-handle-vc-user-login-name): User part of a Tramp file name
12668         structure might be empty.
12669         (vc-user-login-name): Protect against `file' unbound.  (Assumes
12670         local call in this case!)  Kudos to Hannu Koivisto for reporting
12671         this.
12672
12673 2000-11-09  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12674
12675         * tramp.el (tramp-methods): Change tramp-remote-sh to "/bin/sh"
12676         from "" for the sudu and sudm methods.
12677
12678 2000-11-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12679
12680         * tramp.el (tramp-dos-coding-system): New variable.
12681         (tramp-open-connection-telnet, tramp-open-connection-rsh)
12682         (tramp-open-connection-su, tramp-open-connection-multi): Use it.
12683         (tramp-coding-system-change-eol-conversion): New compat function.
12684         (tramp-open-connection-setup-interactive-shell): Use it.
12685
12686 2000-10-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12687
12688         * tramp.el (tramp-open-connection-telnet): Missed occurrences of
12689         match-string.
12690         (tramp-open-connection-rsh): Dito.
12691         (tramp-open-connection-su): Dito.
12692         (tramp-multi-connect-telnet): Dito.
12693         (tramp-multi-connect-rlogin): Dito.
12694         (tramp-multi-connect-su): Dito.
12695
12696 2000-10-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12697
12698         * tramp.el (tramp-open-connection-telnet): Don't bind
12699         `coding-system-for-read' on Emacs 21.
12700         (tramp-open-connection-rsh): Dito.
12701         (tramp-open-connection-su): Dito.
12702         (tramp-open-connection-multi): Dito.
12703
12704 2000-10-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12705
12706         * tramp.el (tramp-wait-for-regexp): Return list of match-strings.
12707         This way, communication with callers isn't done via global state.
12708         (tramp-open-connection-telnet): Use it.
12709         (tramp-open-connection-rsh): Dito.
12710         (tramp-open-connection-su): Dito.
12711         (tramp-multi-connect-telnet): Dito.
12712         (tramp-multi-connect-rlogin): Dito.
12713         (tramp-multi-connect-su): Dito.
12714         (tramp-wait-for-output): From match data, compute list of
12715         match-strings.  Used by tramp-wait-for-regexp.
12716
12717 2000-10-06  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12718
12719         * tramp.el (tramp-handle-load): Tentative first implementation.
12720
12721 2000-09-26  Henrik Holm  <henrik@ece.umn.edu>
12722
12723         * tramp.el (tramp-make-tramp-file-user-nil-format): New variable.
12724         (tramp-open-connection-telnet): Work when USER is nil.
12725         (tramp-open-connection-rsh): dito.
12726         (tramp-open-connection-su): dito.
12727         (tramp-multi-connect-telnet): dito.
12728         (tramp-multi-connect-rlogin): dito.
12729         (tramp-multi-connect-su): dito.
12730         (tramp-make-rcp-program-file-name): dito.
12731         (tramp-open-connection-multi): Don't grok default USER.
12732         (tramp-pre-connection): Not changed.  tramp-current-user will be
12733         set to nil when no user is given in the file name.
12734         (tramp-dissect-multi-file-name): dito.
12735         (tramp-dissect-file-name): Return nil when no user is given in
12736         file name.
12737
12738 2000-09-25  Henrik Holm  <henrik@ece.umn.edu>
12739
12740         * tramp.el: `An rcp file' --> `a tramp file', in various places.
12741         (tramp-buffer-name): Correct typo.
12742
12743 2000-09-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12744
12745         * tramp.el (tramp-file-exists-command): New Variable.
12746         (tramp-handle-file-exists-p): Use it.
12747         (tramp-find-file-exists-command): New function to initialize new
12748         variable.
12749         (tramp-post-connection): Use it.
12750         (tramp-get-file-exists-command): Access variable.
12751         (tramp-bug): Report a few more variable settings.
12752
12753 2000-09-16  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12754
12755         * tramp.el (tramp-open-connection-setup-interactive-shell): Set
12756         TERM=dumb as suggested by V. Balaji <vb@gfdl.gov>.
12757
12758 2000-09-14  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12759
12760         * tramp.el (tramp-methods): Method `scpx' was missing a setting
12761         for `tramp-remote-sh'.
12762
12763 2000-09-09  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12764
12765         * tramp.el (tramp-handle-insert-directory): Try to improve the
12766         logic as to what exactly is displayed.  The `/.' idea was snarfed
12767         from the standard `insert-directory'.
12768
12769 2000-09-01  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12770
12771         * tramp.el (tramp-file-name-structure): Move `-' to beginning of
12772         [...].  Is this really necessary?  Well, it won't hurt.
12773
12774 2000-08-31  Hilko Bengen  <bengen@vdst-ka.inka.de>
12775
12776         * tramp.el (tramp-file-name-structure): Allow `-' in user names.
12777
12778 2000-08-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12779
12780         * Makefile (tramp.elc): Wrap long line.
12781         (tramp-vc.elc): Frob load-path for byte-compilation because of
12782         required libraries.
12783
12784         * tramp-vc.el: Move `provide' to end of file.
12785         Require some needed libraries to avoid byte-compiler errors.
12786
12787         * tramp.el (tramp-handle-file-name-all-completions): Expand
12788         DIRECTORY so that this also works with abbreviated file names.
12789         (tramp-handle-file-newer-than-file-p): Bug with `signal'.
12790         (tramp-handle-make-symbolic-link): Check that method, user, and
12791         host are the same when making symlinks.
12792         (tramp-bug): Report on more variables, change intro msg.
12793
12794 2000-08-25  Yuji Yamano <yyamano@kt.rim.or.jp>
12795
12796         * tramp.el (tramp-perl-file-attributes): Use 0170000 as the right
12797         value of Bitwise And instead of 0120000 and 040000. It works fine
12798         with block devices and sockets now.
12799
12800 2000-08-25  Yuji Yamano <yyamano@kt.rim.or.jp>
12801
12802         * tramp.el (tramp-remote-path): Add "/usr/pkg/bin" to
12803         tramp-remote-path for the NetBSD packages.
12804
12805 2000-08-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12806
12807         * tramp.el (tramp-multi-connect-su): Defer (erase-buffer) until
12808         after the buffer contents are used.
12809
12810 2000-08-18  Paul D. Smith  <pausmith@nortelnetworks.com>
12811
12812         * tramp.el (tramp-pre-connection): Locally (to the connection
12813         buffer) set inhibit-eol-conversion to nil.
12814
12815 2000-08-18  KOIE Hidetaka  <hide@koie.org>
12816
12817         * tramp.el (tramp-handle-insert-file-contents): Don't use
12818         `no-conversion' coding system on the local copy.
12819
12820 2000-08-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
12821
12822         * tramp.el (tramp-handle-file-exists-p): Use `test -e', not `ls
12823         -d'.
12824         (tramp-open-connection-setup-interactive-shell)
12825         (tramp-open-connection-telnet)
12826         (tramp-open-connection-rsh)
12827         (tramp-open-connection-su)
12828         (tramp-open-connection-multi)
12829         (tramp-multi-connect-telnet)
12830         (tramp-multi-connect-telnet)
12831         (tramp-multi-connect-rlogin)
12832         (tramp-multi-connect-su): Erase buffer before sending next
12833         command.
12834         (tramp-handle-make-directory): Correct order of arguments for
12835         tramp-barf-unless-okay.  Maybe I should be using keyword arguments
12836         in this case...
12837         (tramp-handle-insert-directory): Make it work with wildcards, too.
12838
12839 ;; Local Variables:
12840 ;; coding: utf-8
12841 ;; add-log-time-zone-rule: t
12842 ;; End: