org-export: Include title, author, date and email macros
commit58b42debb18f8988cae7358642cbdc0287e3f2a5
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 6 Oct 2012 08:27:57 +0000 (6 10:27 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 6 Oct 2012 08:29:37 +0000 (6 10:29 +0200)
tree20e1c89664b2203e9c425cd22c76448f2bdfe8da
parent0af2f6068f48f09c4e6feb26e0a72dff869ec7ea
org-export: Include title, author, date and email macros

* contrib/lisp/org-export.el (org-export-expand-macro): New function.
(org-export-as): Use new function.
* lisp/org.el (org-macro-expand, org-macro-replace-all): Change
  signature.  The function now accepts an alist of templates so it
  doesn't have to rely only on `org-macro-templates'.
(org-macro-initialize-templates): {{{date}}} is not anymore an alias
for {{{time}}}.  During export, it will provide the value stored in
DATE keyword instead.
* testing/lisp/test-org-export.el: Add tests.
* testing/lisp/test-org.el: Update tests.
contrib/lisp/org-export.el
lisp/org.el
testing/lisp/test-org-export.el
testing/lisp/test-org.el