emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Henney <whenney@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: PT <spamfilteraccount@gmail.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: URLs are not always linked properly
Date: Tue, 1 Dec 2009 19:19:36 -0800	[thread overview]
Message-ID: <41c818190912011919y264db3aau2bfe1270fdd9d44a@mail.gmail.com> (raw)
In-Reply-To: <E16B64F8-FCB1-42A5-8E68-56AA915AB82C@gmail.com>

On Mon, Nov 30, 2009 at 11:47 AM, Carsten Dominik
<carsten.dominik@gmail.com> wrote:
>
> On Nov 30, 2009, at 8:10 PM, PT wrote:
>
>> For example, for this URL the bracketed part is not handled as part of the
>> URL,
>> though it should be:
>>
>> http://en.wikipedia.org/wiki/Lost_(TV_series)
>
> More often than not parenthesis are around a link, not part of it - this is
> why the plain link heuristics does not allow them.   Please surround such
> links with <..> or [[..]]
>
>

Coincidentally, just last Friday John Gruber posted a regex that deals
nicely with these cases:

http://daringfireball.net/2009/11/liberal_regex_for_matching_urls

I think it is a perl-style regex, but perhaps it could be ported to
emacs regexes.

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

  reply	other threads:[~2009-12-02  3:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 19:10 URLs are not always linked properly PT
2009-11-30 19:47 ` Carsten Dominik
2009-12-02  3:19   ` William Henney [this message]
2009-12-09 14:15     ` Carsten Dominik

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=41c818190912011919y264db3aau2bfe1270fdd9d44a@mail.gmail.com \
    --to=whenney@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=spamfilteraccount@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).