From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Henney Subject: Re: URLs are not always linked properly Date: Tue, 1 Dec 2009 19:19:36 -0800 Message-ID: <41c818190912011919y264db3aau2bfe1270fdd9d44a@mail.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFfkh-0004CZ-Vx for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 22:19:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFfkh-0004CN-L5 for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 22:19:39 -0500 Received: from [199.232.76.173] (port=33681 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFfkh-0004CK-FW for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 22:19:39 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:1147) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFfkf-00009j-Oz for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 22:19:39 -0500 Received: by fg-out-1718.google.com with SMTP id e21so1392197fga.12 for ; Tue, 01 Dec 2009 19:19:36 -0800 (PST) In-Reply-To: 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: Carsten Dominik Cc: PT , emacs-orgmode 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 part of t= he >> 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. =A0 Please surround su= ch > 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 --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia