macro: Implement argument extracting and escaping functions
commitec0706ea40efd4d6048fe031b216586f1e32c27b
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 20 Jan 2015 23:25:47 +0000 (21 00:25 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 20 Jan 2015 23:27:24 +0000 (21 00:27 +0100)
tree78d8dd2141aaab995a9add899f5110b93911b545
parenta84c467b8ee7b97218ac789ce11c417217c627d2
macro: Implement argument extracting and escaping functions

* lisp/org-macro.el (org-macro-escape-arguments,
  org-macro-extract-arguments): New functions.

* lisp/org-element.el (org-element-macro-parser): Use new function.

* testing/lisp/test-org-macro.el (test-org-macro/escape-arguments,
  test-org-macro/extract-arguments): New tests.
lisp/org-element.el
lisp/org-macro.el
testing/lisp/test-org-macro.el