unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: URL + efs confusion
Date: Tue, 16 Nov 2010 08:24:02 -0600	[thread overview]
Message-ID: <87eial8hz1.fsf@lifelogs.com> (raw)
In-Reply-To: 877hgdacmd.fsf@gmx.de

On Tue, 16 Nov 2010 09:36:42 +0100 Michael Albinus <michael.albinus@gmx.de> wrote: 

MA> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Although I'm not quite sure what the right fix here is.  The `url-file'
>> function is talking about ange-ftp and efs and has a lot of (featurep
>> 'xemacs) (by the way, is it OK to remove xemacs-related stuff from the
>> Emacs version of url?  Or is it maintained outside of Emacs, too?) and
>> stuff...  but here's the backtrace when I get prompted for my password:
>> 
>> tramp-file-name-handler(file-directory-p "/c:/thing/foo")
>> file-directory-p("/c:/thing/foo")
>> url-file-build-filename([cl-struct-url "file" nil nil nil 21
>> "/c:/thing/foo" nil nil nil nil])
>> url-file([cl-struct-url "file" nil nil nil 21 "/c:/thing/foo" nil
>> nil nil nil] ignore (nil))
>> url-retrieve-internal("file:/c:/thing/foo" ignore (nil) nil)

MA> With Emacs 24.0.50 (since July) and 23.2.50 (since August) it shouldn't
MA> happen anymore. On w32 systems, `tramp-file-name-regexp' has the value
MA> "\\`/\\([^[/:]\\{2,\\}\\|[^/]\\{2,\\}]\\):". Note the "\\{2,\\}"
MA> construct, which excludes volume letters.

Doesn't that also exclude hosts with one-character names?  It's a rare
situation, of course...

I think it's better to handle file:/// URLs explicitly in the
url-file.el code.  They always specify a local file.  So it should only
ask for the local filename handlers in that case.  Would there be any
situation where that's not appropriate?

Ted




  reply	other threads:[~2010-11-16 14:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15 20:06 URL + efs confusion Lars Magne Ingebrigtsen
2010-11-15 20:23 ` Ted Zlatanov
2010-11-15 22:45   ` Lars Magne Ingebrigtsen
2010-11-16  5:48     ` Stefan Monnier
2010-11-16 13:49       ` Lars Magne Ingebrigtsen
2010-11-16  8:36     ` Michael Albinus
2010-11-16 14:24       ` Ted Zlatanov [this message]
2010-11-16 14:33         ` Lars Magne Ingebrigtsen
2010-11-16 14:57           ` Davis Herring
2010-11-16 15:00           ` David Kastrup
2010-11-16 15:04             ` Lars Magne Ingebrigtsen
2010-11-16 15:05         ` Michael Albinus
2010-11-16 15:16           ` Ted Zlatanov
2010-11-16 15:26             ` Michael Albinus

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=87eial8hz1.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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).