[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7383: 24.0.50; end-of-line style on remote files
From: |
Michael Albinus |
Subject: |
bug#7383: 24.0.50; end-of-line style on remote files |
Date: |
Wed, 04 May 2011 15:04:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Dani Moncayo <dmoncayo@gmail.com> writes:
> So now I wonder two things:
> 1. In what cases do we want to have text-mode ftp transfers when
> working with remote files?
> Because, IMO TRT would be to always use binary mode, i.e., always
> work with the file
> in its actual EOL format. I think that is what users expect, don't they?
See the code of `ange-ftp-write-region'. Binary transfer is explicitely
disabled for Emacsen on MS Windows machines, if not said otherwise by
`ange-ftp-binary-file-name-regexp':
(binary (or (ange-ftp-binary-file filename)
(and (not (memq system-type
'(ms-dos windows-nt)))
(memq (ange-ftp-host-type host user)
'(unix dumb-unix)))))
Similar (but not identical) checks are in `ange-ftp-insert-file-contents'
and `ange-ftp-copy-file-internal'.
And there are comments about it, like "Binary file transfers between
machines of different architectures can be a risky business.".
> 2. This bug report has showed that the modeline flag corresponding to the EOL
> format isn't always correct. So I think this should be fixed if possible,
> and if not, this limitation should be documented at least.
Emacs can show only, what it knows. It sends a given file to the FTP
client. It cannot know, whether that external program changes EOL
conversion.
Likely, we shall add a note to section 8.3 of the "GNU Emacs FAQ for MS
Windows", see
<http://www.gnu.org/software/emacs/windows/Network-access.html#Network-access>
> Thanks for your time, Michael.
Best regards, Michael.
- bug#7383: 24.0.50; end-of-line style on remote files,
Michael Albinus <=
- bug#7383: 24.0.50; end-of-line style on remote files, Stefan Monnier, 2011/05/04
- bug#7383: 24.0.50; end-of-line style on remote files, Michael Albinus, 2011/05/04
- bug#7383: 24.0.50; end-of-line style on remote files, Eli Zaretskii, 2011/05/04
- bug#7383: 24.0.50; end-of-line style on remote files, Stefan Monnier, 2011/05/04
- bug#7383: 24.0.50; end-of-line style on remote files, Eli Zaretskii, 2011/05/04
- bug#7383: 24.0.50; end-of-line style on remote files, Michael Albinus, 2011/05/05
- bug#7383: 24.0.50; end-of-line style on remote files, Glenn Morris, 2011/05/06
- bug#7383: 24.0.50; end-of-line style on remote files, Michael Albinus, 2011/05/06
- bug#7383: 24.0.50; end-of-line style on remote files, Dani Moncayo, 2011/05/06