From mboxrd@z Thu Jan 1 00:00:00 1970 From: vdyadov@elvees.com (=?utf-8?B?0JTRj9C00L7QsiDQktCw0YHQuNC7INCh0YI=?= =?utf-8?B?0L7Rj9C90L7Qsg==?=) Subject: 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: Wed, 13 Feb 2013 15:09:20 +0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5aDn-0002c1-KN for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 06:09:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5aDd-0003h2-K5 for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 06:09:51 -0500 Received: from mail.elvees.com ([80.90.126.250]:51879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5aDd-0003gH-5p for emacs-orgmode@gnu.org; Wed, 13 Feb 2013 06:09:41 -0500 Received: from canopus-pc.elvees.com.elvees.com (horse.elvees.com [80.90.126.253]) (authenticated bits=0) by mail.elvees.com (8.14.3/8.14.2) with ESMTP id r1DB9F7k011295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 13 Feb 2013 15:09:16 +0400 (MSK) (envelope-from vdyadov@elvees.com) 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: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Hi! I've an issue with radio targets and ordinary external links. #+begin_src org #+ATTR_HTML: border="1" frame="border" style="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 Emacs : GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of 2012-12-25 on canopus-pc.elvees.com Package: Org-mode version 7.9.3e (7.9.3e-956-g3943be.dirty @ /home/vdyadov/Work/Tools/emacs/org-mode/lisp/) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien 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: Fri, 15 Feb 2013 22:08:39 +0100 Message-ID: <87liapcmjs.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6SbN-000260-Qt for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:13:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6SbK-0005eN-Bq for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:13:49 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:57122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6SbK-0005e6-3r for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 16:13:46 -0500 Received: by mail-wi0-f181.google.com with SMTP id hm6so1679047wib.2 for ; Fri, 15 Feb 2013 13:13:44 -0800 (PST) In-Reply-To: (=?utf-8?B?ItCU0Y8=?= =?utf-8?B?0LTQvtCyINCS0LDRgdC40Lsg0KHRgtC+0Y/QvdC+0LIiJ3M=?= message of "Wed, 13 Feb 2013 15:09:20 +0400") 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: =?utf-8?B?0JTRj9C00L7QsiDQktCw0YHQuNC7INCh0YLQvtGP?= =?utf-8?B?0L3QvtCy?= Cc: emacs-orgmode@gnu.org Hi, vdyadov@elvees.com (Дядов Васил Стоянов) writes: > I've an issue with radio targets and ordinary external links. > > #+begin_src org > #+ATTR_HTML: border="1" frame="border" style="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. Thanks, -- Bastien 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