]> git.eshelyaron.com Git - emacs.git/commitdiff
(math-read-plain-expr,math-format-flat-expr-fancy): Let
authorJay Belanger <jay.p.belanger@gmail.com>
Wed, 20 Jun 2007 04:14:24 +0000 (04:14 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Wed, 20 Jun 2007 04:14:24 +0000 (04:14 +0000)
math-expr-opers equal the function math-standard-ops rather
than the variable math-standard-opers.

lisp/calc/calc-ext.el

index ca89928d46e9be0573e534b30079a4bd8aedcb53..bd85bee7dc14d80753685f2c892d82e9fa5a29bc 100644 (file)
@@ -2960,7 +2960,7 @@ calc-kill calc-kill-region calc-yank))))
 
 (defun math-read-plain-expr (exp-str &optional error-check)
   (let* ((calc-language nil)
-        (math-expr-opers math-standard-opers)
+        (math-expr-opers (math-standard-ops))
         (val (math-read-expr exp-str)))
     (and error-check
         (eq (car-safe val) 'error)
@@ -3116,7 +3116,7 @@ calc-kill calc-kill-region calc-yank))))
     (concat (substring (symbol-name (car a)) 9)
            "(" (math-vector-to-string (nth 1 a) t) ")"))
    (t
-    (let ((op (math-assq2 (car a) math-standard-opers)))
+    (let ((op (math-assq2 (car a) (math-standard-ops))))
       (cond ((and op (= (length a) 3))
             (if (> prec (min (nth 2 op) (nth 3 op)))
                 (concat "(" (math-format-flat-expr a 0) ")")