From unknown Thu Aug 14 21:52:52 2025 X-Loop: don@donarmstrong.com Subject: bug#937: In CVS Emacs, calc-eval gives multiplication higher precidence than division Reply-To: Stefan Monnier , 937@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Sep 2008 21:50:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 937 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122091014815672 (code B ref -1); Mon, 08 Sep 2008 21:50:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.8 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 21:42:28 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88LgNjA015559 for ; Mon, 8 Sep 2008 14:42:26 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcoV4-0003L3-Ru for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 17:42:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcoV3-0003Jn-0y for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 17:42:22 -0400 Received: from [199.232.76.173] (port=42324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcoV2-0003Jd-QL; Mon, 08 Sep 2008 17:42:20 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:53072 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcoV2-0000Oc-Oj; Mon, 08 Sep 2008 17:42:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAM44xUhFxIqP/2dsb2JhbACBZbRPgWSBBw X-IronPort-AV: E=Sophos;i="4.32,360,1217822400"; d="scan'208";a="26537334" Received: from 69-196-138-143.dsl.teksavvy.com (HELO pastel.home) ([69.196.138.143]) by ironport2-out.teksavvy.com with ESMTP; 08 Sep 2008 17:42:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id C219D7FDB; Mon, 8 Sep 2008 17:42:18 -0400 (EDT) From: Stefan Monnier To: merlyn@stonehenge.com (Randal L. Schwartz) Cc: "Lennart Borgman \(gmail\)" , bug-gnu-emacs@gnu.org, emacs-devel@gnu.org, Carsten Dominik Message-ID: References: <878wu3j4k2.fsf@gmail.com> <86wshn3df0.fsf@blue.stonehenge.com> <7D0B0AA3-AED7-456B-AAAB-D72CABD19CFB@gmail.com> <48C58D7B.1060707@gmail.com> <86k5dmxtaz.fsf@blue.stonehenge.com> Date: Mon, 08 Sep 2008 17:42:18 -0400 In-Reply-To: <86k5dmxtaz.fsf@blue.stonehenge.com> (Randal L. Schwartz's message of "Mon, 08 Sep 2008 13:43:16 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Lennart> Of course I can see that the behaviour you want saves you a lot of key Lennart> strokes. My question is really about the default value. You can easily Lennart> change that, of course. The question is really if you prefer the old Lennart> default and in that case what arguments you want to present for that. > There's no need to change the longstanding defaults, because it would break > things. You already have a knob you can tweak if you think that "2 a / 3 b" > should multiply by b, rather than divide by it. That's a personal choice. Nobody in this thread has said that "2 a / 3 b" should multiply by b. What I (and others) have said is that "2 * a / 3 * b" should multiply by b. Stefan