unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-devel@gnu.org
Subject: Re: file://host/location URLs
Date: Tue, 20 Nov 2012 21:52:06 +0100	[thread overview]
Message-ID: <877gpg9evd.fsf@Rainer.invalid> (raw)
In-Reply-To: 50ABE2F4.1080203@dancol.org

Daniel Colascione writes:
> 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.

It should go to a handler that determines the best protocol to use based
on what that authority part is.  If it doesn't find anything appropriate
it can still throw up its hands in despair.  And conditioning the whole
thing on whether the authority resolves to local or not may not be quite
appropriate either; I can be easily arranged so that one can't access a
file via the file system, but still get it via some other protocol.

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

The latter URI is malformed for many clients.  Last I looked you needed
five slashes for this to work consistently (two for the empty authority,
one for root, two for starting a UNC path).  But again, depending on
what the host part is, this may not be the correct thing to do (there
are files I can access over the network, but not via UNC path).

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

Yes, that needs fixing, too.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




  reply	other threads:[~2012-11-20 20:52 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
2012-11-20 20:52             ` Achim Gratz [this message]
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=877gpg9evd.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=emacs-devel@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).