From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: file://host/location URLs Date: Tue, 20 Nov 2012 12:07:16 -0800 Message-ID: <50ABE2F4.1080203@dancol.org> References: <50A57E1A.4040109@dancol.org> <50A6FDD7.4090304@dancol.org> <87a9ugljpg.fsf@Rainer.invalid> <50A8FF48.6090007@dancol.org> <87d2z84eov.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6CD27F4C19066F152EB5DBA7" X-Trace: ger.gmane.org 1353442048 18940 80.91.229.3 (20 Nov 2012 20:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2012 20:07:28 +0000 (UTC) Cc: Achim Gratz , emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 20 21:07:39 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tau6b-0008Rj-1P for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2012 21:07:37 +0100 Original-Received: from localhost ([::1]:39339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tau6Q-0004yK-KR for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2012 15:07:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tau6N-0004xR-TN for emacs-devel@gnu.org; Tue, 20 Nov 2012 15:07:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tau6M-0002ye-Le for emacs-devel@gnu.org; Tue, 20 Nov 2012 15:07:23 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:37402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tau6M-0002yT-Eu for emacs-devel@gnu.org; Tue, 20 Nov 2012 15:07:22 -0500 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Tau6K-0000Vo-Pc; Tue, 20 Nov 2012 12:07:20 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <87d2z84eov.fsf@gnu.org> X-Enigmail-Version: 1.4.6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155003 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6CD27F4C19066F152EB5DBA7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/20/2012 4:54 AM, Jason Rumney wrote: > Daniel Colascione writes: >=20 >> Yes, my proposal violates the RFC. I maintain that nobody deliberately= >> constructs file URLs pointing to remote hosts >=20 > I do it all the time. Windows has a well defined default protocol for > accessing remote files on named hosts, and such URLs mostly work (they > even used to work on Emacs IIRC until url-handler came along and starte= d > forcing them over to FTP). Yes, the Windows remote access mechanism is good, party because applicati= ons don't need to be aware of it to use it. They can just use normal filesyst= em access APIs. If we treat file URIs as simple filenames, remote access und= er Windows will continue to work. > GNOME, KDE and others may also have mechanisms for dealing with remote > file URLs that we could use. All right, let me make a different proposal: by default, we'll treat file= :// URIs with non-localhost host parts as errors, since FTP is seldom appropr= iate. On Windows and Cygwin systems, we'll treat file://foo/bar/qux as file:///foo/bar/qux since the underlying OS understands how to access hos= t foo. If someone wants to integrate Emacs with gnome-vfs, he can update the fil= e-URI code at that time. File URI handling seems to be generally broken for local files anyway. Tr= y (find-file "file://localhost/etc/passwd"). --------------enig6CD27F4C19066F152EB5DBA7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlCr4vcACgkQ17c2LVA10Vu9/wCgpW0JChng10I60ItcGM3F5X36 PnsAn2iElgdY//a1MaC/JPO4qx2rGL79 =44tC -----END PGP SIGNATURE----- --------------enig6CD27F4C19066F152EB5DBA7--