From ca1302a40a560521627fd6a2954a51a79d105a16 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Thu, 26 Jul 2012 22:48:40 -0500 Subject: [PATCH] calccomp.el (math-compose-expr): Use parentheses when there is a product in the denominator of a fraction. --- lisp/ChangeLog | 5 +++++ lisp/calc/calccomp.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e848134cb2..99d41ee19bc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-07-27 Jay Belanger + + * calc/calccomp.el (math-compose-expr): Use parentheses when + there is a product in the denominator of a fraction. + 2012-07-26 Eli Zaretskii * makefile.w32-in ($(lisp)/calendar/cal-loaddefs.el) diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el index d8ad7e2cede..73e745bcf75 100644 --- a/lisp/calc/calccomp.el +++ b/lisp/calc/calccomp.el @@ -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 -- 2.39.2