[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.0; (thing-at-point 'url) returns invalid urls
From: |
Tassilo Horn |
Subject: |
Re: 23.0.0; (thing-at-point 'url) returns invalid urls |
Date: |
Wed, 29 Aug 2007 21:49:56 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Leo <address@hidden> writes:
Hi Leo,
>>> Put the point in any word but not in a url and eval (thing-at-point
>>> 'url) it will returns a url like "http://something", where
>>> 'something' is the word under point.
>>
>> That looks good to me. Why do you think it is not a valid URL?
>
> Because a url created by concat "http://" and the word under point is
> unlikely to be accessible by a browser.
... unless the word is www.google.com or savannah.gnu.org. So to me the
behavior looks good. I think it's much better to return an URL that may
not exist than always returning nil if the URL lacks the protocol spec.
Bye,
Tassilo
--
People sometimes ask me if it is a sin in the Church of Emacs to use
vi. Using a free version of vi is not a sin; it is a penance. So happy
hacking. (Richard M. Stallman)
- 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29
- RE: 23.0.0; (thing-at-point 'url) returns invalid urls, Drew Adams, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls,
Tassilo Horn <=
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Davis Herring, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Davis Herring, 2007/08/29
- RE: 23.0.0; (thing-at-point 'url) returns invalid urls, Drew Adams, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29
- RE: 23.0.0; (thing-at-point 'url) returns invalid urls, Drew Adams, 2007/08/29
- Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Thien-Thi Nguyen, 2007/08/29
Re: 23.0.0; (thing-at-point 'url) returns invalid urls, Leo, 2007/08/29