From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: ange-ftp on w32 - I can not get it to work Date: Tue, 12 Dec 2006 11:24:08 +0100 Message-ID: <457E8348.1000002@student.lu.se> References: <457E1F91.8020409@student.lu.se> <87irgh1uyj.fsf@gmx.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165919076 27786 80.91.229.10 (12 Dec 2006 10:24:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 10:24:36 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 11:24:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gu4oI-0000of-SP for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 11:24:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gu4oI-0007BB-58 for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 05:24:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gu4nx-000794-9X for emacs-devel@gnu.org; Tue, 12 Dec 2006 05:24:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gu4nv-00077G-Nc for emacs-devel@gnu.org; Tue, 12 Dec 2006 05:24:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gu4nv-00076z-9f for emacs-devel@gnu.org; Tue, 12 Dec 2006 05:24:07 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gu4nu-0002Y8-Rd for emacs-devel@gnu.org; Tue, 12 Dec 2006 05:24:07 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:63189 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Gu4nr-0002bU-9c; Tue, 12 Dec 2006 11:24:05 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Michael Albinus In-Reply-To: <87irgh1uyj.fsf@gmx.de> X-Antivirus: avast! (VPS 0657-0, 2006-12-12), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Gu4nr-0002bU-9c. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Gu4nr-0002bU-9c 6882ee45d070a5aef545bf08aba78a21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63613 Archived-At: Michael Albinus wrote: > Lennart Borgman 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:user@ftp.thehost.com:/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 . 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 myuser@ftp.myhost.com*. 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 myuser@ftp.myhost.com* ------------------ 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.