From ca968bee5a935229370555e9ad915d12e2eb22ab Mon Sep 17 00:00:00 2001 From: David Maus Date: Thu, 9 Sep 2010 15:38:07 +0200 Subject: [PATCH] Provide new macro to insert entry property * org-exp.el (org-infile-export-plist): Provide new macro to insert entry property. Format: {{{property(PROP)}}}, where PROP is the name of the property. This currently only works for single value properties and fails with an error if used above the first headline. --- lisp/org-exp.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index c16bec8..64ad454 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -771,6 +771,7 @@ modified) list.") ;; Add macro definitions (setq p (plist-put p :macro-date "(eval (format-time-string \"$1\"))")) (setq p (plist-put p :macro-time "(eval (format-time-string \"$1\"))")) + (setq p (plist-put p :macro-property "(eval (org-entry-get nil \"$1\"))")) (setq p (plist-put p :macro-modification-time (and (buffer-file-name) -- 1.7.1