Subject: Re: bug#7614: Is (thing-at-point 'url) hallucinating too much?

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Thu, 30 Jun 2011 04:00:53 +0200

Lennart Borgman <[email-masked]> writes:

> (thing-at-point 'url) thinks WORD is the url http://WORD.
>
> (url-get-url-at-point) does not see any url there.
>
> I think thing-at-point is a bit too afraid of failing to find an url.
> Maybe the latter function could learn thing-at-point to be a bit
> braver and see reality a bit clearer?

Would it make sense just to have

(thing-at-point 'url)

just call

(url-get-url-at-point)

to avoid code duplication?  On the other hand, thingatpt is meant to be
really sloppy, so I'm not sure it's a bug at all.

For instance, `thing-at-point' will do the right thing with this "url":

gnus.org

while `url-get-url-at-point' doesn't...

So perhaps a sufficient fix would be to require that the word should
have a dot in it somewhere?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/