all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ange-ftp on w32 - I can not get it to work
@ 2006-12-12  3:18 Lennart Borgman
  2006-12-12  6:36 ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2006-12-12  3:18 UTC (permalink / raw)


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.)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ange-ftp on w32 - I can not get it to work
  2006-12-12  3:18 ange-ftp on w32 - I can not get it to work Lennart Borgman
@ 2006-12-12  6:36 ` Michael Albinus
  2006-12-12 10:24   ` Lennart Borgman
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2006-12-12  6:36 UTC (permalink / raw)
  Cc: Emacs Devel

Lennart Borgman <lennart.borgman.073@student.lu.se> 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 <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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ange-ftp on w32 - I can not get it to work
  2006-12-12  6:36 ` Michael Albinus
@ 2006-12-12 10:24   ` Lennart Borgman
  2006-12-12 11:53     ` Jason Rumney
  2006-12-14 21:20     ` Michael Albinus
  0 siblings, 2 replies; 6+ messages in thread
From: Lennart Borgman @ 2006-12-12 10:24 UTC (permalink / raw)
  Cc: Emacs Devel

Michael Albinus wrote:
> Lennart Borgman <lennart.borgman.073@student.lu.se> 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 <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 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ange-ftp on w32 - I can not get it to work
  2006-12-12 10:24   ` Lennart Borgman
@ 2006-12-12 11:53     ` Jason Rumney
  2006-12-14 21:20     ` Michael Albinus
  1 sibling, 0 replies; 6+ messages in thread
From: Jason Rumney @ 2006-12-12 11:53 UTC (permalink / raw)
  Cc: Michael Albinus, Emacs Devel

Lennart Borgman wrote:   
>
> 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?
Because if you have an ftp gateway, it is not likely to be a Windows 
machine.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ange-ftp on w32 - I can not get it to work
  2006-12-12 10:24   ` Lennart Borgman
  2006-12-12 11:53     ` Jason Rumney
@ 2006-12-14 21:20     ` Michael Albinus
  2006-12-14 21:36       ` Lennart Borgman
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2006-12-14 21:20 UTC (permalink / raw)
  Cc: Emacs Devel

Lennart Borgman <lennart.borgman.073@student.lu.se> writes:

> Hi Michael,

Hi Lennart,

> 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?

I'm not so much related with the w32 incarnation of Emacs, so I don't
know whether this is preferable. The decision should be given rather
to the people who work on this platform regularly.

Maybe one should give a hint in the documentation?

Best regards, Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ange-ftp on w32 - I can not get it to work
  2006-12-14 21:20     ` Michael Albinus
@ 2006-12-14 21:36       ` Lennart Borgman
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2006-12-14 21:36 UTC (permalink / raw)
  Cc: Emacs Devel

Michael Albinus wrote:
> Lennart Borgman <lennart.borgman.073@student.lu.se> writes:
>
>   
>> Hi Michael,
>>     
>
> Hi Lennart,
>
>   
>> 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?
>>     
>
> I'm not so much related with the w32 incarnation of Emacs, so I don't
> know whether this is preferable. The decision should be given rather
> to the people who work on this platform regularly.
>
> Maybe one should give a hint in the documentation?
>
> Best regards, Michael.
>   

Thanks Michael, I really do not know what to do. I would like to hear 
more about how other people solves this, but I suspect that most people 
here does not use ftp that much. Is there anyone using w32 who has 
experience with this? Maybe I am still doing something wrong, or?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-14 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12  3:18 ange-ftp on w32 - I can not get it to work Lennart Borgman
2006-12-12  6:36 ` Michael Albinus
2006-12-12 10:24   ` Lennart Borgman
2006-12-12 11:53     ` Jason Rumney
2006-12-14 21:20     ` Michael Albinus
2006-12-14 21:36       ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.