From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: :EXPORT_FILE_NAME: containing a date-stamp Date: Wed, 07 Feb 2018 17:37:31 +0000 Message-ID: References: <2018-02-07T16-21-12@devnull.Karl-Voit.at> <990C9C49-F7EB-42F6-B925-A1E299B4F1F9@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f4030435b23097eff40564a2c05d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejTfE-0006wL-4E for emacs-orgmode@gnu.org; Wed, 07 Feb 2018 12:37:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejTfD-0001L7-5J for emacs-orgmode@gnu.org; Wed, 07 Feb 2018 12:37:44 -0500 Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:44933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejTfC-0001Kt-Vd for emacs-orgmode@gnu.org; Wed, 07 Feb 2018 12:37:43 -0500 Received: by mail-yw0-x229.google.com with SMTP id x62so605150ywg.11 for ; Wed, 07 Feb 2018 09:37:42 -0800 (PST) In-Reply-To: <990C9C49-F7EB-42F6-B925-A1E299B4F1F9@ucsd.edu> 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: "Berry, Charles" Cc: Karl Voit , "emacs-orgmode@gnu.org" --f4030435b23097eff40564a2c05d Content-Type: text/plain; charset="UTF-8" On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles 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 --f4030435b23097eff40564a2c05d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Feb 7,= 2018 at 12:22 PM Berry, Charles <cc= berry@ucsd.edu> wrote:
Use a= n `eval' macro.

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

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

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

That works for EXPORT_T= ITLE!

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

--f4030435b23097eff40564a2c05d--