unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: Jason Rumney <jasonr@gnu.org>
Cc: Achim Gratz <Stromeko@nexgo.de>, emacs-devel@gnu.org
Subject: Re: file://host/location URLs
Date: Tue, 20 Nov 2012 12:07:16 -0800	[thread overview]
Message-ID: <50ABE2F4.1080203@dancol.org> (raw)
In-Reply-To: <87d2z84eov.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]

On 11/20/2012 4:54 AM, Jason Rumney wrote:
> Daniel Colascione <dancol@dancol.org> writes:
> 
>> Yes, my proposal violates the RFC. I maintain that nobody deliberately
>> constructs file URLs pointing to remote hosts
> 
> 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 started
> forcing them over to FTP).

Yes, the Windows remote access mechanism is good, party because applications
don't need to be aware of it to use it. They can just use normal filesystem
access APIs. If we treat file URIs as simple filenames, remote access under
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 appropriate.
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 host foo.
If someone wants to integrate Emacs with gnome-vfs, he can update the file-URI
code at that time.

File URI handling seems to be generally broken for local files anyway. Try
(find-file "file://localhost/etc/passwd").


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

  reply	other threads:[~2012-11-20 20:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-15 23:43 file://host/location URLs Daniel Colascione
2012-11-16 14:18 ` Stefan Monnier
2012-11-17  0:58 ` James Cloos
2012-11-17  3:00   ` Daniel Colascione
2012-11-17  8:25     ` Achim Gratz
2012-11-17 20:16       ` James Cloos
2012-11-18  8:12         ` Chong Yidong
2012-11-18 15:31       ` Daniel Colascione
2012-11-19  3:54         ` Stephen J. Turnbull
2012-11-19 17:16           ` Achim Gratz
2012-11-20 12:54         ` Jason Rumney
2012-11-20 20:07           ` Daniel Colascione [this message]
2012-11-20 20:52             ` Achim Gratz
2012-11-21  6:33         ` joakim
2012-11-21  8:29           ` Andreas Schwab
2012-11-22  8:50             ` joakim
2012-11-18 15:27   ` Stephen J. Turnbull

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50ABE2F4.1080203@dancol.org \
    --to=dancol@dancol.org \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).