From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Erik_Sj=C3=B6strand?= Subject: Bug: Link descriptions in org-element parser Date: Sun, 21 May 2017 21:35:13 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c192a103fbb0705500f8890" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCYVa-0005KK-8h for emacs-orgmode@gnu.org; Sun, 21 May 2017 17:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCYVZ-0000LU-GX for emacs-orgmode@gnu.org; Sun, 21 May 2017 17:35:26 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:33524) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCYVZ-0000LI-BQ for emacs-orgmode@gnu.org; Sun, 21 May 2017 17:35:25 -0400 Received: by mail-oi0-x22c.google.com with SMTP id w10so141581857oif.0 for ; Sun, 21 May 2017 14:35:25 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --94eb2c192a103fbb0705500f8890 Content-Type: text/plain; charset="UTF-8" When having an link where the link's description also look like a link, the description will be treated like a link by org-element. As an example: [[info:emacs#Directory%20Variables][info:Directory Variables]] If the above was an org-file, org-element-parse-buffer would find two links in the buffer, but the above is really just one link even though its description look like a link. A consequence of this is that the org-element-contents of the link above would be another link, which can cause bugs. I'm using org-mode 9.0.5 on Emacs 25.2.1. --94eb2c192a103fbb0705500f8890 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When having an link where the link's description = also look like a link,
the description will be treated like a link by or= g-element. As an
example:

=C2=A0=C2=A0=C2=A0 [[info:emacs#Directo= ry%20Variables][info:Directory Variables]]

If the above was an org-f= ile, org-element-parse-buffer would find two
links in the buffer, but th= e above is really just one link even though
its description look like a = link. A consequence of this is that the
org-element-contents of the link= above would be another link, which can
cause bugs.

I'm= using org-mode 9.0.5 on Emacs 25.2.1.
--94eb2c192a103fbb0705500f8890--