emacs-devel
[Top][All Lists]
Advanced

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

Re: Add more URI schemes to thing-at-point-uri-schemes.


From: David Kastrup
Subject: Re: Add more URI schemes to thing-at-point-uri-schemes.
Date: Sun, 19 Nov 2006 22:15:11 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

Bob Rogers <address@hidden> writes:

>    From: Diane Murray <address@hidden>
>    Date: Sat, 18 Nov 2006 21:58:50 +0100
>
>    Running (thing-at-point 'url) on a URL starting with "irc:" returns
>    "http://irc:";.  This is because `thing-at-point-uri-schemes' doesn't
>    have "irc:" in its definition.
>
> This does fix the problem, but the "irc:" URL is currently being matched
> by thing-at-point-short-url-regexp in thing-at-point-url-at-point, which
> subsequently attaches the "http://"; prefix.  The attached patch avoids
> prefixing one scheme with another, which is incorrect regardless of how
> many schemes `thing-at-point-uri-schemes' knows about (and is therefore
> independent of your patch).

What does it do with

file:///C:/windows

or something similar?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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