org-macro: Properly handle macros in setup files
commita82b06ae4b88f59b5f7d22578139555e947dc648
authorNicolas Goaziou <n.goaziou@gmail.com>
Mon, 1 Apr 2013 13:44:15 +0000 (1 15:44 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 1 Apr 2013 13:47:39 +0000 (1 15:47 +0200)
tree7d08aa47d43f716831e059c2c540d3fc38574222
parent55db57dc0a20ec7b6a4eb4c611c2bc9da1778c2f
org-macro: Properly handle macros in setup files

* lisp/org-macro.el (org-macro--collect-macros): Fix a bug where
  reading a macro in a setup file would remove other macros read so
  far from template.  Change function signature.
(org-macro-initialize-templates): Apply signature change from function
above.
* testing/lisp/test-org-macro.el: Add test.
lisp/org-macro.el
testing/lisp/test-org-macro.el