From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] links in macros comments are fortified Date: Thu, 26 Feb 2015 00:27:53 +0100 Message-ID: <87r3tda7wm.fsf@nicolasgoaziou.fr> References: <8761ar2obw.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQlLt-0002vW-Mu for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 18:26:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQlLo-000891-My for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 18:26:49 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:46038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQlLo-00088x-Gp for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 18:26:44 -0500 In-Reply-To: <8761ar2obw.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 24 Feb 2015 18:48:03 +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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Consider the following macro that I'm employing hoping to export a > document as a odt (the document is optimized towards latex). > > #+MACRO: tikzgraph (eval (format "[[file:$1.%s]]" (if (org-export-derived-backend-p org-export-current-backend 'latex) "tikz" "png"))) > > In org this was displayed as > > #+MACRO: tikzgraph (eval (format "file:$1.%s" (if (org-export-derived-backend-p org-export-current-backend 'latex) "tikz" "png"))) > > Which let me to type > > #+MACRO: tikzgraph (eval (format "[[[[file:$1.%s]]]]" (if (org-export-derived-backend-p org-export-current-backend 'latex) "tikz" "png"))) > > Which gave a funky output that I fortunately found. At least in macros, > links should not be formatted IMO. This should be fixed in 37d2a2d1cfa58c5334eec4f7fbabc4a2f313ab33. Thank you. Regards, -- Nicolas Goaziou