From 93da18174a562034e856d37b6c7e87a77c64608e Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sun, 17 Mar 2013 10:20:10 +0100 Subject: [PATCH] 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. --- lisp/org-macro.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-macro.el b/lisp/org-macro.el index 0bd0da69a..153b3b114 100644 --- a/lisp/org-macro.el +++ b/lisp/org-macro.el @@ -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))))