From d68c69482013e408c20d0d940abc6bf41b71519c Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 20 Jul 2012 08:33:19 -0600 Subject: [PATCH] strip quotes from calc internal representations This allows more calculations to be performed, but at what cost? * lisp/ob-calc.el (org-babel-execute:calc): Strip single quotes from calc internal representations. --- lisp/ob-calc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-calc.el b/lisp/ob-calc.el index f8ad7e3..8f94bcd 100644 --- a/lisp/ob-calc.el +++ b/lisp/ob-calc.el @@ -74,7 +74,7 @@ ((listp res) (error "calc error \"%s\" on input \"%s\"" (cadr res) line)) (t (replace-regexp-in-string - "'\\[" "[" + "'" "" (calc-eval (math-evaluate-expr ;; resolve user variables, calc built in -- 1.7.11.2