Explorar o código

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.
Eric Schulte %!s(int64=12) %!d(string=hai) anos
pai
achega
ce3aa4ab2b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/ob-calc.el

+ 1 - 1
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