]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-set-language,math-read-big-rec): Let math-expr-opers equal the
authorJay Belanger <jay.p.belanger@gmail.com>
Wed, 20 Jun 2007 04:15:12 +0000 (04:15 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Wed, 20 Jun 2007 04:15:12 +0000 (04:15 +0000)
function math-standard-ops rather than the variable
math-standard-opers.

lisp/calc/calc-lang.el

index 79c33b473c372b51ded60ab039ef64dedfe9d29c..c009dbe18aa14cbe73830897f0d56465e20b6c26 100644 (file)
@@ -35,7 +35,7 @@
 ;;; Alternate entry/display languages.
 
 (defun calc-set-language (lang &optional option no-refresh)
-  (setq math-expr-opers (or (get lang 'math-oper-table) math-standard-opers)
+  (setq math-expr-opers (or (get lang 'math-oper-table) (math-standard-ops))
        math-expr-function-mapping (get lang 'math-function-table)
        math-expr-special-function-mapping (get lang 'math-special-function-table)
        math-expr-variable-mapping (get lang 'math-variable-table)
                                         h (1+ v) (1+ h) math-rb-v2)
                                        (string-match "<=\\|>=\\|\\+/-\\|!=\\|&&\\|||\\|:=\\|=>\\|." line h)
                                        (assoc (math-match-substring line 0)
-                                              math-standard-opers)))
+                                              (math-standard-ops))))
                      (and (>= (nth 2 widest) prec)
                           (setq h (match-end 0)))
                    (and (not (eq (string-match ",\\|;\\|\\.\\.\\|)\\|\\]\\|:" line h)