(math-compose-expr): Fix a check for language type.
authorJay Belanger <jay.p.belanger@gmail.com>
Tue, 8 Feb 2005 05:02:09 +0000 (05:02 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Tue, 8 Feb 2005 05:02:09 +0000 (05:02 +0000)
lisp/calc/calccomp.el

index 26ae8c1..eff7df2 100644 (file)
                       (setq func (substring func 0 (- n)))
                       (while (>= (setq n (1- n)) 0)
                         (setq func (concat func " prime")))))
-                (cond ((and (eq calc-language '(tex latex))
+                (cond ((and (memq calc-language '(tex latex))
                             (or (> (length a) 2)
                                 (not (math-tex-expr-is-flat (nth 1 a)))))
                        (setq left "\\left( "