From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#7383: 24.0.50; end-of-line style on remote files Date: Wed, 04 May 2011 15:04:22 +0200 Message-ID: <87ei4eaa7d.fsf@gmx.de> References: <871v0mllx7.fsf@gmx.de> <87wriek4ke.fsf@gmx.de> <87oc3qjxbl.fsf@gmx.de> <87bozmitut.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304514442 13080 80.91.229.12 (4 May 2011 13:07:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 13:07:22 +0000 (UTC) Cc: 7383@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 04 15:07:18 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHbnO-0006Rw-PU for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2011 15:07:14 +0200 Original-Received: from localhost ([::1]:44242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbnO-00086b-7o for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2011 09:07:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbnI-00080V-Ca for bug-gnu-emacs@gnu.org; Wed, 04 May 2011 09:07:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHbnD-0001T0-Ct for bug-gnu-emacs@gnu.org; Wed, 04 May 2011 09:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbnD-0001Sw-B7 for bug-gnu-emacs@gnu.org; Wed, 04 May 2011 09:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QHblF-0002v8-Np; Wed, 04 May 2011 09:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2011 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7383-submit@debbugs.gnu.org id=B7383.130451427811192 (code B ref 7383); Wed, 04 May 2011 13:05:01 +0000 Original-Received: (at 7383) by debbugs.gnu.org; 4 May 2011 13:04:38 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHbkr-0002uT-VO for submit@debbugs.gnu.org; Wed, 04 May 2011 09:04:38 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QHbkl-0002uC-3i for 7383@debbugs.gnu.org; Wed, 04 May 2011 09:04:36 -0400 Original-Received: (qmail invoked by alias); 04 May 2011 13:04:24 -0000 Original-Received: from p57BB92AF.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.146.175] by mail.gmx.net (mp014) with SMTP; 04 May 2011 15:04:24 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18PDklGl4YPFvJqeAAzLNuyljM4RTfhQjQVYC7E6I mDUjotKZ29URkM In-Reply-To: (Dani Moncayo's message of "Wed, 4 May 2011 11:32:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 04 May 2011 09:05:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46201 Archived-At: Dani Moncayo 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 > Thanks for your time, Michael. Best regards, Michael.