fix macro expansion with separators and backslashes

* lisp/org-macro.el (org-macro-expand): Do not try to interpret the
  macro replacement text as a regex so that escaped backslashes and
  commas in macro arguments will be interpreted correctly.
This commit is contained in:
Achim Gratz 2013-03-17 10:20:10 +01:00
parent 41bd891d48
commit 93da18174a
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ default value. Return nil if no template was found."
(org-element-property :args macro))
;; No argument: remove place-holder.
""))
template)))
template nil 'literal)))
;; VALUE starts with "(eval": it is a s-exp, `eval' it.
(when (string-match "\\`(eval\\>" value)
(setq value (eval (read value))))