From: Jay Belanger Date: Wed, 24 Oct 2007 01:51:40 +0000 (+0000) Subject: (math-simplify-units-quotient): Replace missing exponent. X-Git-Tag: emacs-pretest-23.0.90~10102 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0317ca7890ac8d703b0e167454fbee5cd0dbf696;p=emacs.git (math-simplify-units-quotient): Replace missing exponent. --- diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index 839bac77581..a7c4b20e30d 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el @@ -1222,7 +1222,9 @@ If EXPR is nil, return nil." (and un ud (if (and (equal (nth 4 un) (nth 4 ud)) (eq pow1 pow2)) - (math-to-standard-units (list '/ n d) nil) + (if (eq pow1 1) + (math-to-standard-units (list '/ n d) nil) + (list '^ (math-to-standard-units (list '/ n d) nil) pow1)) (let (ud1) (setq un (nth 4 un) ud (nth 4 ud))