all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Pretest-Bug" <emacs-pretest-bug@gnu.org>
Subject: RE: [sdl.web@gmail.com: 23.0.0; (thing-at-point 'url) returns invalid urls]
Date: Sat, 1 Sep 2007 09:39:02 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEEKDPAA.drew.adams@oracle.com> (raw)
In-Reply-To: <m2ps135erx.fsf@cam.ac.uk>

> Stefan gets my idea right. It is definitely not about aliveness.

Fine. So what is the heuristic to use to recognize something that "is likely
to be meant as a URL"? Presence of a URL scheme (e.g. http://, ftp://)?
Presence of a URL scheme or "www." (e.g. www.whatever.anything)? There are
already regexps defined to recognize URLs, with and without schemes. How
should they be used or modified?

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)?

Let's stop being so vague and go beyond saying things like (1) just DTRT and
(2) we'll have a heuristic that recognizes TRT. Which value do you want
returned for which text at point? And what heuristic do you propose to use
to recognize a likely URL intention?

The only difficult problem seen so far is knowing what is being requested.
It's not an alligator. It's bigger than a breadbox. It doesn't contain
chlorophyll. OK, so what is it?

  reply	other threads:[~2007-09-01 16:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30  7:15 [sdl.web@gmail.com: 23.0.0; (thing-at-point 'url) returns invalid urls] Richard Stallman
2007-08-31  8:32 ` Glenn Morris
2007-08-31 14:42   ` Stefan Monnier
2007-08-31 16:18     ` Drew Adams
2007-08-31 20:27       ` Stefan Monnier
2007-08-31 20:34         ` Drew Adams
2007-08-31 21:35           ` Thien-Thi Nguyen
2007-08-31 23:57             ` Drew Adams
2007-09-01 19:13               ` Johannes Weiner
2007-09-01 19:59                 ` Leo
2007-09-01 20:04                   ` Johannes Weiner
2007-09-01  1:57           ` Leo
2007-09-01 16:39             ` Drew Adams [this message]
2007-09-01 20:57               ` Leo
2007-09-02  6:39                 ` David Kastrup
2007-09-02 19:20                   ` Glenn Morris
2007-09-04 22:37                 ` Davis Herring
2007-09-03 20:51               ` Stefan Monnier
2007-09-04 22:40               ` Davis Herring
2007-09-01  4:06   ` Richard Stallman
2007-09-01 21:00 ` (thing-at-point 'defun) always returns NIL (was: [sdl.web@gmail.com: 23.0.0; (thing-at-point 'url) returns invalid urls]) Leo
2007-09-01 21:41   ` (thing-at-point 'defun) always returns NIL (was:[sdl.web@gmail.com: " Drew Adams

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=DNEMKBNJBGPAOPIJOOICMEEKDPAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-pretest-bug@gnu.org \
    /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.