From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: cautionary tale: avoid creating/using a macro called "title" Date: Wed, 14 Mar 2018 17:37:36 +0000 Message-ID: <87y3iuh82n.fsf@gmail.com> 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]:36278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewALV-0007ON-3l for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 13:37:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewALR-0007Mv-8L for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 13:37:48 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:40446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewALR-0007MC-0P for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 13:37:45 -0400 Received: by mail-wm0-x234.google.com with SMTP id t6so5651470wmt.5 for ; Wed, 14 Mar 2018 10:37:44 -0700 (PDT) Received: from t3610 ([95.150.179.127]) by smtp.gmail.com with ESMTPSA id m9sm4432610wrf.13.2018.03.14.10.37.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Mar 2018 10:37:42 -0700 (PDT) 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 Content-Transfer-Encoding: quoted-printable Dear all, I have, until now, used a macro #+macro title The title of the document to be subsequently used in the actual #+title line, as in #+title: @@latex:...@@ {{{title}}} @@latex:...@@ (LaTeX details not important, I think.) but this now leads to a recursive evaluation of the line when exporting, causing an infinite loop. Changing the name of the macro to something else avoids the issue. I'm not entirely sure why a macro expansion of the #+title line would be recursive but there you are! =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-303-g6cf5fc.dirty --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWqld4AAKCRDIkZPY//z2 fYgCAKCQeXPE8H3b+Av1+MLTa9c3LTXnIwCeNlDF4P0uZwnQh3bIzrZBCMLGAAY= =SnH4 -----END PGP SIGNATURE----- --=-=-=--