emacs-devel
[Top][All Lists]
Advanced

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

RE: address@hidden: 23.0.0; (thing-at-point 'url) returns invalid urls]


From: Davis Herring
Subject: RE: address@hidden: 23.0.0; (thing-at-point 'url) returns invalid urls]
Date: Tue, 4 Sep 2007 15:40:58 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

> And what to return when probably-intended-URL recognition fails? nil?
> Whatever is currently at point, without prepending http://? Should http://
> ever be prepended (e.g. if "www." satisfies the test for likely URL, as in
> www.google.com)?

In the context of the uneager URL-at-point function (which, as Stefan has
said, should not replace the current behavior of (thing-at-point 'url)):

If we think it's not a URL, we return nil.  Otherwise, we prepend
"http://"; (customizable) if there's no scheme present and it doesn't look
like an email address (to which "mailto:"; should be prepended, of course,
to make it a URL).  On a somewhat-related note, such things as "www." and
".com" should in no circumstances be added; it is a misfeature of (many)
Web browsers that they conflate keyword searches with the DNS.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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