emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] cautionary tale: avoid creating/using a macro called "title"


From: Eric S Fraga
Subject: [O] cautionary tale: avoid creating/using a macro called "title"
Date: Wed, 14 Mar 2018 17:37:36 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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!

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-303-g6cf5fc.dirty

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]