From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Bug: New Exporter macro expansion Date: Sat, 06 Oct 2012 10:53:29 +0200 Message-ID: <80r4pcugl2.fsf@somewhere.org> References: <87txu86lts.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nicolas, Nicolas Goaziou wrote: > Hello, > > Jonathan Leech-Pepin writes: > >> Hello all, >> >> I've found a few issues with the new exporter (tested using >> org-e-latex and org-e-ascii) with regards to macro expansion on >> export. >> >> Using the minimal org file below with Org-mode version 7.9.2 >> (release_7.9.2-402-ge5e49e @ d:/Apps/Emacs/site-lisp/org/) certain >> macros do not expand as expected. >> >> #+begin_src org >> ,#+TITLE: Test >> ,#+author: testing >> ,#+macro: sample export this text >> ,#+macro: sample2 {{{sample}}} and this text >> ,#+macro: table | hello | goodbye | >> ,#+macro: table2 | hello | {{{sample}}} | >> >> ,* Sample headline >> >> {{{title}}} >> >> | Test | 1 | >> | {{{TITLE}}} | {{{sample}}} | >> {{{table}}} >> {{{table2}}} >> #+end_src >> >> {{{title}}}, as well as {{{author}}} do not expand at all when >> exporting. In addition macros within table cells are treated as empty >> text. > > This should be fixed now. Thank you for the report. Did you go further in the thinking about what the macros will support in the future? Such as: multiline macros, recursive macros, Babel blocks, etc. Best regards, Seb -- Sebastien Vauban