emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp


From: Kaushal Modi
Subject: Re: [O] :EXPORT_FILE_NAME: containing a date-stamp
Date: Wed, 07 Feb 2018 17:37:31 +0000

On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles <address@hidden> wrote:
Use an `eval' macro.

In a more recent version than you use, this works:

* abc
  :PROPERTIES:
  :EXPORT_TITLE: {{{etitle(my title)}}}
  :END:

#+macro: etitle (eval (concat (format-time-string "%Y-%m-%d") " " $1))

That works for EXPORT_TITLE!

So I tried for EXPORT_FILE_NAME, but it doesn't work there, because org-export-output-file-name should be getting called internally *before* the macro expansion is done.
--

Kaushal Modi


reply via email to

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