calccomp.el (math-compose-expr): Use parentheses when
authorJay Belanger <jay.p.belanger@gmail.com>
Fri, 27 Jul 2012 03:48:40 +0000 (22:48 -0500)
committerJay Belanger <jay.p.belanger@gmail.com>
Fri, 27 Jul 2012 03:48:40 +0000 (22:48 -0500)
there is a product in the denominator of a fraction.

lisp/ChangeLog
lisp/calc/calccomp.el

index 5e84813..99d41ee 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-27  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calccomp.el (math-compose-expr): Use parentheses when
+       there is a product in the denominator of a fraction.
+
 2012-07-26  Eli Zaretskii  <eliz@gnu.org>
 
        * makefile.w32-in ($(lisp)/calendar/cal-loaddefs.el)
index d8ad7e2..73e745b 100644 (file)
@@ -87,7 +87,8 @@
       sn)))
 
 (defun math-compose-expr (a prec)
-  (let ((math-compose-level (1+ math-compose-level))
+  (let ((calc-multiplication-has-precedence nil)
+        (math-compose-level (1+ math-compose-level))
         (math-expr-opers (math-expr-ops))
         spfn)
     (cond