From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: order of evaluation upon export: macros are evaluated too soon Date: Thu, 08 Jun 2017 12:43:46 +0100 Message-ID: <87poeen1ql.fsf@delle7240.chemeng.ucl.ac.uk> References: <874lvriyuv.fsf@delle7240.chemeng.ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIvqz-0005ap-W1 for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 07:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIvqw-0005eW-TK for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 07:43:54 -0400 Received: from mail-eopbgr50098.outbound.protection.outlook.com ([40.107.5.98]:39280 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dIvqw-0005e4-Ha for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 07:43:50 -0400 In-Reply-To: (Nicolas Goaziou's message of "Wed, 7 Jun 2017 19:56:58 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWTk4cgAKCRDIkZPY//z2 faQnAJ4k33Lv887ObFsUZqQ0MLXcXOXiSgCgl/ahd06IUMnUdCkR4p5mAR/w5Is= =zejF -----END PGP SIGNATURE----- --=-=-=--