emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: Karl Voit <news1142@karl-voit.at>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: :EXPORT_FILE_NAME: containing a date-stamp
Date: Wed, 07 Feb 2018 17:37:31 +0000	[thread overview]
Message-ID: <CAFyQvY33A67d1OxPam87mecqGmrDnymQrAJa510jzu-M_6UfNg@mail.gmail.com> (raw)
In-Reply-To: <990C9C49-F7EB-42F6-B925-A1E299B4F1F9@ucsd.edu>

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

On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles <ccberry@ucsd.edu> 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

[-- Attachment #2: Type: text/html, Size: 958 bytes --]

  reply	other threads:[~2018-02-07 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-07 15:31 :EXPORT_FILE_NAME: containing a date-stamp Karl Voit
2018-02-07 16:41 ` Kaushal Modi
2018-02-07 17:05 ` Berry, Charles
2018-02-07 17:37   ` Kaushal Modi [this message]
2018-02-07 18:06     ` Berry, Charles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY33A67d1OxPam87mecqGmrDnymQrAJa510jzu-M_6UfNg@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=news1142@karl-voit.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).