From d78eba7efbf96ff80cce9f138ec7c2b73cb17207 Mon Sep 17 00:00:00 2001 From: David Maus Date: Thu, 9 Sep 2010 18:44:05 +0000 Subject: [PATCH] Add macro to insert property values into exported text Example: {{{property(id)}}} Will insert the ID property of current subtree if the Org buffer is exported. * lisp/org-exp.el (org-infile-export-plist): Define property macro TINYCHANGE --- lisp/org-exp.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index b4f6ab900..1f6ebf27c 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -770,6 +770,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\" 'selective))")) (setq p (plist-put p :macro-modification-time (and (buffer-file-name)