From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: RE: link export confused when URL parameter is another URL Date: Thu, 21 Oct 2010 08:37:43 -0500 Message-ID: References: <87mxq888o1.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=50299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8vYx-0001z5-Qd for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 09:52:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8vL2-0001GQ-CC for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 09:37:49 -0400 Received: from mail01.stowers.org ([12.201.176.8]:61289 helo=stowers.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8vL2-0001G5-74 for emacs-orgmode@gnu.org; Thu, 21 Oct 2010 09:37:48 -0400 In-Reply-To: <87mxq888o1.wl%dmaus@ictsoc.de> Content-Language: en-US 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: 'David Maus' Cc: "'emacs-orgmode@gnu.org'" David, Thanks for your sleuthing..... I've not been digging on orgmode internals, so I defer to you of course. =20 But it seems to me that the [[link][text]] pattern might provide a context = in which embedded links are not sought (i.e. there is no link internal to t= op-level link). Just a thought.... perhaps expressible as a context-free-grammar. Cheers back, Malcolm =20 -----Original Message----- From: David Maus [mailto:dmaus@ictsoc.de]=20 Sent: Wednesday, October 20, 2010 11:36 PM To: Cook, Malcolm Cc: 'emacs-orgmode@gnu.org' Subject: Re: [Orgmode] link export confused when URL parameter is another U= RL At Thu, 30 Sep 2010 15:17:00 -0500, Cook, Malcolm wrote: > > > If find that this orgtext > > [[http://www.foo.com/foo?URL=3Dhttp://www.bar.com][test]] > > exports to html incorrectly as > > =09 > [[http://www.foo.com/foo?URL=3D[[http://www.bar.com][test][http://www.ba > r.com][test]]] > > using today's fresh git pull make install > > Any pointers? The problem here is that Org's (legacy) support for plain links (i.e. witho= ut square brackets) kicks in and transforms the fragment part to a normal s= quare bracket link. My regexp-foo is not as it should be, but I am on this one to fix it; What = we need to express in `org-export-normalize-link' is, that a plain link is = something that looks like a hyperlink but not preceded directly by a square= or angle bracket and not after a question mark followed by zero or more no= -whitespace-characters. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de