From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: [BUG] Interference of radio targets and external links [7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/)] Date: Sat, 16 Feb 2013 08:42:37 +0100 Message-ID: <8738ww7lhu.fsf@gmail.com> References: <87liapcmjs.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6cQB-0007da-7B for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 02:42:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6cQ9-0005wu-Cp for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 02:42:55 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:62913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6cQ9-0005wb-4E for emacs-orgmode@gnu.org; Sat, 16 Feb 2013 02:42:53 -0500 Received: by mail-wg0-f48.google.com with SMTP id 16so3285058wgi.15 for ; Fri, 15 Feb 2013 23:42:52 -0800 (PST) In-Reply-To: <87liapcmjs.fsf@bzg.ath.cx> (Bastien's message of "Fri, 15 Feb 2013 22:08:39 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: =?utf-8?B?0JTRj9C00L7QsiDQktCw0YHQuNC7INCh0YLQvtGP?= =?utf-8?B?0L3QvtCy?= , emacs-orgmode@gnu.org Hello, Bastien writes: > vdyadov@elvees.com (=D0=94=D1=8F=D0=B4=D0=BE=D0=B2 =D0=92=D0=B0=D1=81=D0= =B8=D0=BB =D0=A1=D1=82=D0=BE=D1=8F=D0=BD=D0=BE=D0=B2) writes: > >> I've an issue with radio targets and ordinary external links. >> >> #+begin_src org >> #+ATTR_HTML: border=3D"1" frame=3D"border" style=3D"max-width:50%;" >> | / | <> | <> | <> | >> | | Test | Description | Source file | >> |---+--------------+----------------+------------------------------| >> | | <<>> | Inverse DCT | [[file:test/idct.c][idct.c]] | >> |---+--------------+----------------+------------------------------| >> #+end_src >> >> In this case external link "[[file:test/idct.c][idct.c]]" in html file >> looks like: .c > > I confirm the bug, not only with the HTML exporter, but with the LaTeX > exporter -- and probably all of them. > > For HTMl, the description of the second link is already wrong when > `org-html-link' uses it as an argument. Probably something strange > when setting the radio targets that prevents the link desc to be > parsed correctly. > > I'll let Nicolas have a look when he has time. Indeed. This was a two-part bug. I fixed the first one, but the second one is non-trivial and yet to be fixed. The problem is that "idct" in the link description is recognized as a reference to the radio target <<>>. In a perfect world, links wouldn't be allowed within link description, and the problem wouldn't exist, but there's also the following construct in Org: [[http://orgmode.org][file:./unicorn.jpg]] Obviously, the contents of the link is a link, and, in this case it even makes sense. That's why links are allowed within links (and therefore links to radio targets). This is a limitation from Org syntax: it has no proper way to define an "image" so it relies on links to display them. If there was an "image" type object, I could easily allow images within links, but not links themselves. Anyway, I'll try to find a workaround. Regards, --=20 Nicolas Goaziou