all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 7614@debbugs.gnu.org
Subject: bug#7614: Is (thing-at-point 'url) hallucinating too much?
Date: Thu, 30 Jun 2011 04:00:53 +0200	[thread overview]
Message-ID: <m362no6pt6.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <AANLkTi=K_kkUe4kGaixEJa=UyUVxu+NO6r30Zjcx35iP@mail.gmail.com> (Lennart Borgman's message of "Sat, 11 Dec 2010 02:06:32 +0100")

Lennart Borgman <lennart.borgman@gmail.com> 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/





  reply	other threads:[~2011-06-30  2:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11  1:06 bug#7614: Is (thing-at-point 'url) hallucinating too much? Lennart Borgman
2011-06-30  2:00 ` Lars Magne Ingebrigtsen [this message]
     [not found] ` <mailman.696.1309399332.785.bug-gnu-emacs@gnu.org>
2011-06-30  2:06   ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m362no6pt6.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=7614@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.