[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL syntax (was: Re: Tramp, "[]" in file names, and file-expand-wild

From: William M. Perry
Subject: Re: URL syntax (was: Re: Tramp, "[]" in file names, and file-expand-wildcards)
Date: 29 Nov 2001 15:14:50 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

Richard Stallman <address@hidden> writes:

>     > One issue in url-setup-file-name-handlers is how to reconcile it with 
> the
>     > minibuffer feature that you can ignore the default directory and enter
>     > absolute file name.  If the default is ~/foo/, and you enter
>     > http://www.gnu.org/, the result is ~/foo/http://www.gnu.org/.  It looks
>     > difficult to ignore ~/foo/ in that case.
>     > 
>     > What can be done?
>     The regular expression actually looks like /?[-a-zA-Z0-9+.]+: so that you
>     could put /http://www.gnu.org/ in there in that case.
> I can't make head or tail of this.  What regexp are you talking about?
> You could put /http://www.gnu.org/ in where, in what case?

Sorry... the regular expression I am talking about is the one put onto
file-name-handler-alist so that a URL will be recognized even if it has a
leading '/' on it.

So you could do:

(find-file "http://www.gnu.org/";)


(find-file "/http://www.gnu.org/";)

And they would both work.  But I think the leading '/' is confusing.

Ceterum censeo vi esse delendam

reply via email to

[Prev in Thread] Current Thread [Next in Thread]