|
From: | Lennart Borgman |
Subject: | Re: ange-ftp on w32 - I can not get it to work |
Date: | Tue, 12 Dec 2006 11:24:08 +0100 |
User-agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
Michael Albinus wrote:
Lennart Borgman <address@hidden> writes:We have discussed this before and I checked again if I could get ange-ftp to work right out of the box on w32 with a pc running XP Pro. I can't. I tried emacs -Q and then C-x C-f /ftp:address@hidden:/path/file.txt I just got an empty buffer. Can someone else get this to work? (Yes, I tried setting ange-ftp-ftp-program-name explicitly to the full path of the ftp.exe that comes with w32.)I don't know your case exactly, but at least when a filename contains spaces, there might be a problem with some FTP servers which don't understand the ange-ftp way of quoting such filenames. See discussion at <http://thread.gmane.org/gmane.emacs.pretest.bugs/14612>. The example you gave above does not contain spaces, but I believe I have seen such examples from you before. Or am I wrong? Best regards, Michael.
Hi Michael,Thanks for the response. I followed the advice on the page above except that I used the ftp program that comes with XP Pro. This is in my path. I change these values but no other:
ange-ftp-gateway-tmp-name-template is a variable defined in `ange-ftp.el'. Its value is "c:/tmp" ange-ftp-tmp-name-template is a variable defined in `ange-ftp.el'. Its value is "c:/tmp"There is no space in my filename as you can see below where I have copied everything from the buffer *ftp address@hidden The file I am trying to access exists, but I just get an empty buffer.
If I try the ftp program mentioned on the page above, but change nothing else it works for me to open the same file as below. Since it does not work at all with the built in ftp program but without problem in a case like mine here I suggest that we ship an ftp program that works together with Emacs on w32. Would that be possible?
BTW I also see that ange-ftp-gateway-tmp-name-template is initialized to "/tmp/ange-ftp" on w32 which does not seem correct. Why not initialize it to the same value as ange-ftp-tmp-name-template?
------------------ The buffer *ftp address@hidden ------------------ Invalid help command foo. open ftp.myhost.com Connected to ftp.myhost.com. 220 Myhost FTP Server ready user "myuser" Turtle Power! 331 Password required for myuser. 230 User myuser logged in. hash Hash mark printing On ftp: (2048 bytes/hash mark) . pwd 257 "/" is current directory. cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/ 250 CWD command successful ls -al c:/tmp3236c-x 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 504 bytes received in 0.02Seconds 31.50Kbytes/sec. cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/ 250 CWD command successful ls -al c:/tmp3236ocN 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 504 bytes received in 0.00Seconds 504000.00Kbytes/sec. cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/Emacs/EmacsW32.html/ 550 /htdocs/Emacs/EmacsW32.html/: Not a directory cd /htdocs/ 250 CWD command successful ls -al c:/tmp3236P7f 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 334 bytes received in 0.28Seconds 1.19Kbytes/sec. cd /htdocs/Emacs/ 250 CWD command successful ls -al c:/tmp3236cFm 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 504 bytes received in 0.02Seconds 31.50Kbytes/sec. cd /htdocs/ 250 CWD command successful ls -al c:/tmp3236pPs 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 334 bytes received in 0.00Seconds 334000.00Kbytes/sec. cd /htdocs/Emacs/ 250 CWD command successful ls -al c:/tmp32362Zy 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 504 bytes received in 0.00Seconds 504000.00Kbytes/sec. cd /htdocs/ 250 CWD command successful ls -al c:/tmp3236ojB 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 334 bytes received in 0.00Seconds 334000.00Kbytes/sec. cd /htdocs/Emacs/ 250 CWD command successful ls -al c:/tmp32361tH 200 PORT command successful 150 Opening ASCII mode data connection for file list 226 Transfer complete. ftp: 504 bytes received in 0.01Seconds 33.60Kbytes/sec.
[Prev in Thread] | Current Thread | [Next in Thread] |