68 |
2003-02-05 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> |
2003-02-05 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> |
69 |
|
|
70 |
* net/tramp.el: Version 2.0.29 released. |
* net/tramp.el: Version 2.0.29 released. |
71 |
|
(tramp-send-region): Protect against tramp-chunksize being nil. |
72 |
* net/tramp.el (tramp-send-region): Protect against |
(tramp-chunksize): Set default to 500 as workaround for some ssh |
73 |
tramp-chunksize being nil. |
connections. |
74 |
|
(tramp-handle-directory-file-name): New implementation. Not sure |
75 |
|
if it works. |
76 |
|
(tramp-md5-function): Require md5 before checking function md5. |
77 |
|
If using md5-encode, put wrapper around it that converts vector of |
78 |
|
bytes to ascii text. |
79 |
|
(top-level): Avoid byte-compiler warnings of unused variables if |
80 |
|
the byte-compiler supports this. This is for the |
81 |
|
with-parsed-tramp-file-name macro which is wont to produce such |
82 |
|
stuff. |
83 |
|
|
84 |
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
85 |
|
|
86 |
* net/tramp.el (tramp-handle-directory-file-name): Handle the case |
* net/tramp.el (tramp-handle-directory-file-name): Handle the case |
87 |
PATH is "". |
PATH is "". |
88 |
(tramp-completion-handle-file-name-all-completions): |
(tramp-completion-handle-file-name-all-completions): Define |
89 |
Define `tramp-current-user' locally. See `tramp-parse-passwd'. |
`tramp-current-user' locally. See `tramp-parse-passwd'. |
90 |
(tramp-parse-passwd): For su-alike methods it would be desirable |
(tramp-parse-passwd): For su-alike methods it would be desirable |
91 |
to return "root@localhost" as default. Unfortunately, we have no |
to return "root@localhost" as default. Unfortunately, we have no |
92 |
information whether any user name has been typed already. So we |
information whether any user name has been typed already. So we |
93 |
(mis-)use tramp-current-user as indication, assuming it is set in |
(mis-)use tramp-current-user as indication, assuming it is set in |
94 |
`tramp-completion-handle-file-name-all-completions'. |
`tramp-completion-handle-file-name-all-completions'. |
95 |
(tramp-send-region): Handle the case `tramp-chunksize' is equal |
(tramp-send-region): Handle the case `tramp-chunksize' is equal 0. |
96 |
0. I did it accidently. Infinite loop ... |
I did it accidently. Infinite loop ... |
97 |
|
(tramp-get-device): `tramp-make-tramp-file-name' must not be |
98 |
* net/tramp-ftp.el (top-level): eval-after-load "ange-ftp" |
called with NIL path. It fails in case of multi-method. |
99 |
'(tramp-disable-ange-ftp). Suggested by Kai. |
(tramp-file-name-for-operation): Apply `expand-file-name' for |
100 |
(tramp-ftp-file-name-handler): `tramp-disable-ange-ftp' not needed |
relative file names only. Otherwise there might be problems if |
101 |
any longer. |
the default directory is another Tramp directory as the directory |
102 |
|
the file is based on. |
|
* net/tramp-smb.el (tramp-smb-file-name-handler-alist): |
|
|
Apply `tramp-handle-directory-file-name' in order to profit from Kai's |
|
|
yesterday changes. |
|
|
|
|
|
2003-02-05 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> |
|
|
|
|
|
* net/tramp.el (tramp-chunksize): Set default to 500 as workaround |
|
|
for some ssh connections. |
|
|
(tramp-handle-directory-file-name): New implementation. Not sure |
|
|
if it works. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp.el (tramp-get-device): `tramp-make-tramp-file-name' |
|
|
must not be called with NIL path. It fails in case of multi-method. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp.el (tramp-file-name-for-operation): |
|
|
Apply `expand-file-name' for relative file names only. Otherwise there |
|
|
might be problems if the default directory is another Tramp |
|
|
directory as the directory the file is based on. |
|
103 |
(tramp-find-foreign-file-name-handler): Check whether FILENAME is |
(tramp-find-foreign-file-name-handler): Check whether FILENAME is |
104 |
a Tramp file name. It isn't if it comes from an expanded file |
a Tramp file name. It isn't if it comes from an expanded file |
105 |
name (like "/xx:yy//zz"). |
name (like "/xx:yy//zz"). |
106 |
|
(tramp-devices): New variable. Keeps virtual device numbers. |
107 |
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
Devices must distinguish physical file systems. The device |
108 |
|
numbers provided by "lstat" aren't unique, because we operate on |
109 |
* net/tramp.el (tramp-devices): New variable. Keeps virtual |
different hosts. So we use virtual device numbers, generated by |
110 |
device numbers. Devices must distinguish physical file systems. |
`tramp-get-device'. Both Ange-FTP and EFS use device number -1. |
111 |
The device numbers provided by "lstat" aren't unique, because we |
In order to be different, we use device number (-1 x), whereby "x" |
112 |
operate on different hosts. So we use virtual device numbers, |
is unique for a given (multi-method method user host). Suggested |
113 |
generated by `tramp-get-device'. Both Ange-FTP and EFS use device |
by Kai. |
|
number -1. In order to be different, we use device number (-1 x), |
|
|
whereby "x" is unique for a given (multi-method method user host). |
|
|
Suggested by Kai. |
|
114 |
(tramp-perl-file-attributes): Always return device number -1. |
(tramp-perl-file-attributes): Always return device number -1. |
115 |
There will be a virtual device number set in |
There will be a virtual device number set in |
116 |
`tramp-handle-file-attributes', which replaces this one. |
`tramp-handle-file-attributes', which replaces this one. |
118 |
(tramp-get-device): New function. Returns the virtual device |
(tramp-get-device): New function. Returns the virtual device |
119 |
number. If it doesn't exist, generate a new one. |
number. If it doesn't exist, generate a new one. |
120 |
(tramp-handle-file-regular-p): Use Emacs file name primitives |
(tramp-handle-file-regular-p): Use Emacs file name primitives |
121 |
instead of calling tramp-handle-* equivalents directly. |
instead of calling tramp-handle-* equivalents directly. Needed |
122 |
Needed for tramp-smb. |
for tramp-smb. |
123 |
|
(tramp-completion-function-alist-ssh): Add parsing of |
124 |
* net/tramp-smb.el (tramp-smb-devices, tramp-smb-get-device): Removed. |
"/etc/ssh_config" and "~/.ssh/config". Suggested by Kai. |
|
Functionality moved to tramp.el. |
|
|
(tramp-smb-handle-file-attributes): |
|
|
Apply `tramp-get-device'. ATIME and CTIME are (0 0) now (= "don't |
|
|
know"), which is more honest. |
|
|
(tramp-smb-handle-make-directory): Use Emacs file name primitives |
|
|
instead of calling tramp-smb-handle-* equivalents directly. |
|
|
(tramp-smb-read-file-entry): Return size as a number but a string. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp.el (tramp-completion-function-alist-ssh): Add parsing |
|
|
of "/etc/ssh_config" and "~/.ssh/config". Suggested by Kai. |
|
125 |
(tramp-completion-function-alist, tramp-set-completion-function): |
(tramp-completion-function-alist, tramp-set-completion-function): |
126 |
Doc string update. |
Doc string update. |
127 |
(tramp-parse-sconfig, tramp-parse-sconfig-group): New functions. |
(tramp-parse-sconfig, tramp-parse-sconfig-group): New functions. |
128 |
Provide parsing of "~/.ssh/config" style files. |
Provide parsing of "~/.ssh/config" style files. |
129 |
|
(tramp-completion-handle-expand-file-name): Apply |
130 |
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
`tramp-drop-volume-letter'. Otherwise, there are problems on W32 |
|
|
|
|
* net/tramp.el (tramp-completion-handle-expand-file-name): |
|
|
Apply `tramp-drop-volume-letter'. Otherwise, there are problems on W32 |
|
131 |
systems. |
systems. |
132 |
|
(tramp-completion-mode): Perform check (integerp last-input-event) |
133 |
|
before (event-modifiers last-input-event) -- there might be |
134 |
|
problems if `last-input-event' is a mouse event. |
135 |
|
(tramp-parse-rhosts, tramp-parse-shosts) |
136 |
|
(tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc): Use |
137 |
|
`file-readable-p' instead of `file-exists-p'. Otherwise these |
138 |
|
functions might block. Reported by <kin@neoscale.com>. |
139 |
|
|
140 |
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
* net/tramp-ftp.el (top-level): eval-after-load "ange-ftp" |
141 |
|
'(tramp-disable-ange-ftp). Suggested by Kai. |
142 |
|
(tramp-ftp-file-name-handler): `tramp-disable-ange-ftp' not needed |
143 |
|
any longer. |
144 |
|
(top-level): Defaults for `tramp-default-method-alist' must be a |
145 |
|
list. |
146 |
|
|
147 |
* net/tramp-smb.el (tramp-smb-get-device, tramp-smb-get-inode): |
* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Apply |
148 |
New functions. Device number and inode number don't exist for SMB |
`tramp-handle-directory-file-name'. |
149 |
files. Therefore we must generate virtual ones. |
(tramp-smb-devices, tramp-smb-get-device): Removed. Functionality |
150 |
|
moved to tramp.el. |
151 |
|
(tramp-smb-handle-file-attributes): Apply `tramp-get-device'. |
152 |
|
ATIME and CTIME are (0 0) now (= "don't know"), which is more |
153 |
|
honest. |
154 |
|
(tramp-smb-handle-make-directory): Use Emacs file name primitives |
155 |
|
instead of calling tramp-smb-handle-* equivalents directly. |
156 |
|
(tramp-smb-read-file-entry): Return size as a number but a string. |
157 |
|
(tramp-smb-get-device, tramp-smb-get-inode): New functions. |
158 |
|
Device number and inode number don't exist for SMB files. |
159 |
|
Therefore we must generate virtual ones. |
160 |
(tramp-smb-devices, tramp-smb-inodes): New variables. Keep |
(tramp-smb-devices, tramp-smb-inodes): New variables. Keep |
161 |
generated virtual device numbers and inodes numbers for SMB files. |
generated virtual device numbers and inodes numbers for SMB files. |
162 |
(tramp-smb-handle-file-attributes): Apply them. |
(tramp-smb-handle-file-attributes): Apply them. |
163 |
|
(top-level): Defaults for `tramp-default-method-alist' must be a |
164 |
2003-02-05 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> |
list. |
|
|
|
|
* net/tramp.el (tramp-md5-function): Require md5 before checking |
|
|
function md5. If using md5-encode, put wrapper around it that |
|
|
converts vector of bytes to ascii text. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp.el (tramp-completion-mode): Perform check (integerp |
|
|
last-input-event) before (event-modifiers last-input-event) - |
|
|
there might be problems if `last-input-event' is a mouse event. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp.el (tramp-parse-rhosts, tramp-parse-shosts) |
|
|
(tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc): |
|
|
Use `file-readable-p' instead of `file-exists-p'. Otherwise these |
|
|
functions might block. Reported by <kin@neoscale.com>. |
|
|
|
|
|
2003-02-05 Michael Albinus <Michael.Albinus@alcatel.de> |
|
|
|
|
|
* net/tramp-ftp.el (top-level): Defaults for |
|
|
`tramp-default-method-alist' must be a list. |
|
|
|
|
|
* net/tramp-smb.el (top-level): Defaults for |
|
|
`tramp-default-method-alist' must be a list. |
|
|
|
|
|
2003-02-05 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> |
|
|
|
|
|
* net/tramp.el (top-level): Avoid byte-compiler warnings of unused |
|
|
variables if the byte-compiler supports this. This is for the |
|
|
with-parsed-tramp-file-name macro which is wont to produce such stuff. |
|
165 |
|
|
166 |
2003-02-05 Stefan Monnier <monnier@cs.yale.edu> |
2003-02-05 Stefan Monnier <monnier@cs.yale.edu> |
167 |
|
|