From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: URLs are not always linked properly Date: Wed, 9 Dec 2009 15:15:51 +0100 Message-ID: References: <41c818190912011919y264db3aau2bfe1270fdd9d44a@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NINKl-0005ti-0n for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 09:16:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NINKg-0005l0-9B for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 09:16:02 -0500 Received: from [199.232.76.173] (port=50599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NINKg-0005ke-3Y for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 09:15:58 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]:35134) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NINKf-0006MT-MY for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 09:15:57 -0500 Received: by ewy1 with SMTP id 1so190395ewy.8 for ; Wed, 09 Dec 2009 06:15:56 -0800 (PST) In-Reply-To: <41c818190912011919y264db3aau2bfe1270fdd9d44a@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: William Henney Cc: PT , emacs-orgmode On Dec 2, 2009, at 4:19 AM, William Henney wrote: > On Mon, Nov 30, 2009 at 11:47 AM, Carsten Dominik > wrote: >> >> On Nov 30, 2009, at 8:10 PM, PT wrote: >> >>> For example, for this URL the bracketed part is not handled as =20 >>> 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 - =20= >> this is >> why the plain link heuristics does not allow them. Please =20 >> 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. Yes, this one looks good. I am now using part of this expression (but in Org-mode we insist on a protocol like "http:"). This change *might* break matching in XEmacs, I have tried to make it work, but please, XEmacs users, let me know if there are problems. Thanks Will! - Carsten > > Cheers > > Will > > > --=20 > > Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, > Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia