On Wednesday, 7 Jun 2017 at 19:56, Nicolas Goaziou wrote: [...] > What about simply removing macros in :noexport: trees from > a pre-processing-hook? Hi Nicolas, Thanks for the suggestion. It makes sense but the problem (for me) is the "simply" in the above. ;-) But Charles's solution works perfectly so I'm happy! I do wonder, philosophically, about the use cases for macro expansion and the resulting implementation. My understanding is that macros are only for export so should they not pay attention to export exclusion directives? Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113