emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* cautionary tale: avoid creating/using a macro called "title"
@ 2018-03-14 17:37 Eric S Fraga
  2018-03-21  1:06 ` Bastien
  0 siblings, 1 reply; 15+ messages in thread
From: Eric S Fraga @ 2018-03-14 17:37 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-04-26 23:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-14 17:37 cautionary tale: avoid creating/using a macro called "title" Eric S Fraga
2018-03-21  1:06 ` Bastien
2018-03-21 11:01   ` Eric S Fraga
2018-03-22  8:34     ` Bastien
2018-03-22  8:55       ` Eric S Fraga
2018-03-22  9:22       ` Eric S Fraga
2018-03-22  9:43         ` Bastien
2018-03-22 12:12           ` Eric S Fraga
2018-03-22 12:23             ` Kaushal Modi
2018-03-22 15:34               ` Eric S Fraga
2018-03-22 13:28           ` Nicolas Goaziou
2018-03-22 16:39             ` Eric S Fraga
2018-03-23 22:42               ` Nicolas Goaziou
2018-03-24 17:54                 ` Eric S Fraga
2018-04-26 23:34                   ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).