From: Johannes Weiner <hannes@saeurebad.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: [sdl.web@gmail.com: 23.0.0; (thing-at-point 'url) returns invalid urls]
Date: Sat, 1 Sep 2007 21:13:26 +0200 [thread overview]
Message-ID: <20070901191326.GA8025@saeurebad.de> (raw)
In-Reply-To: <BNELLINCGFJLDJIKDGACIEPMCBAA.drew.adams@oracle.com>
[-- Attachment #1.1: Type: text/plain, Size: 1694 bytes --]
Hi,
On Fri, Aug 31, 2007 at 04:57:04PM -0700, Drew Adams wrote:
> > That's OK too. I thought people were asking for the ability to
> > get only "valid" URLs in the sense of having live
> > targets. Isn't that what the initial request was for?
> >
> > iiuc the initial request was to disambiguate the two cases whereby
> > (thing-at-point 'url) when point is on one of:
> > something
> > http://something
> > (both cases return "http://something").
>
> Admittedly, the text of the initial bug report (OP) is not too clear:
>
> >> 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 and other posts seem to suggest that the requested (optional, perhaps)
> behavior is to return nil unless the URL under point contains a scheme (e.g.
> http://, ftp://). For example, "something" at point and www.google.com at
> point would each return nil.
>
> However, other posts seem to suggest that the perceived problem is that
> http://something is not a "valid" URL because the target is not (currently
> or perhaps usually) live (accessible):
>
> >> Because a url created by concat "http://" and the word under point is
> >> unlikely to be accessible by a browser.
Come on, people. If the point is above `something' and I don't want EMACS to
return an URL-string but NIL, why would I run (thing-at-point 'url) in the
first place? This is bogus.
I like the behaviour as it is right now. Returning nil is as unusable as
http://something for most, but for some people, http://something can still be
of use.
Hannes
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-09-01 19:13 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 [this message]
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
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=20070901191326.GA8025@saeurebad.de \
--to=hannes@saeurebad.de \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@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.