emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] links in macros comments are fortified
@ 2015-02-24 17:48 Rasmus
  2015-02-25 23:27 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2015-02-24 17:48 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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.

—Rasmus

-- 
However beautiful the theory, you should occasionally look at the evidence

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [bug] links in macros comments are fortified
  2015-02-24 17:48 [bug] links in macros comments are fortified Rasmus
@ 2015-02-25 23:27 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-02-25 23:27 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-25 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 17:48 [bug] links in macros comments are fortified Rasmus
2015-02-25 23:27 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).