From: Jay Belanger Date: Sat, 21 Jan 2006 04:52:06 +0000 (+0000) Subject: (math-add-symb-fancy): Check the length of the correct variable. X-Git-Tag: emacs-pretest-22.0.90~4654 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a056c5d38f7059b7c70e784dcdf62eb00d561d7;p=emacs.git (math-add-symb-fancy): Check the length of the correct variable. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d84868c746c..d8beecfd4a0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,6 +3,9 @@ * calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower limit is 0. + * calc/calc-arith.el (math-add-symb-fancy): Check the length of + the correct variable. + 2006-01-20 Carsten Dominik * textmodes/org.el: (org-open-at-point): Fixed bug with matching a diff --git a/lisp/calc/calc-arith.el b/lisp/calc/calc-arith.el index dc341cb7aec..64e0b4b7d10 100644 --- a/lisp/calc/calc-arith.el +++ b/lisp/calc/calc-arith.el @@ -1201,7 +1201,7 @@ (and (math-known-scalarp b) (math-add (nth 1 a) b)))) (and (eq (car-safe b) 'calcFunc-idn) - (= (length a) 2) + (= (length b) 2) (or (and (math-square-matrixp a) (math-add a (math-mimic-ident (nth 1 b) a))) (and (math-known-scalarp a)