From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Link descriptions in org-element parser Date: Mon, 22 May 2017 01:11:33 +0200 Message-ID: <87y3tphkka.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCa0i-0001Cg-Um for emacs-orgmode@gnu.org; Sun, 21 May 2017 19:11:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCa0f-0008NC-Qu for emacs-orgmode@gnu.org; Sun, 21 May 2017 19:11:40 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:c:538::200]:36837) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dCa0f-0008N5-K8 for emacs-orgmode@gnu.org; Sun, 21 May 2017 19:11:37 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id 4DD40114C for ; Mon, 22 May 2017 01:11:35 +0200 (CEST) In-Reply-To: ("Erik =?utf-8?Q?Sj=C3=B6strand=22's?= message of "Sun, 21 May 2017 21:35:13 +0000") 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: Erik =?utf-8?Q?Sj=C3=B6strand?= Cc: emacs-orgmode@gnu.org Hello, Erik Sj=C3=B6strand writes: > 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. IIRC, this was fixed a while ago. You may want to update Org. Regards, --=20 Nicolas Goaziou