From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: bug#914: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Tue, 09 Sep 2008 18:41:02 +0200 Message-ID: <48C6A71E.3070907@gmail.com> 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> <48C590E2.4040804@gmail.com> <87abeijlb9.fsf@gmail.com> <18630.41933.774692.297613@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220978498 29497 80.91.229.12 (9 Sep 2008 16:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2008 16:41:38 +0000 (UTC) Cc: Francis Litterio , emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 09 18:42:33 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kd6IJ-0007G0-R8 for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2008 18:42:24 +0200 Original-Received: from localhost ([127.0.0.1]:48953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd6HJ-00029r-Tu for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2008 12:41:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kd6HG-00029W-15 for emacs-devel@gnu.org; Tue, 09 Sep 2008 12:41:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kd6HE-00029F-IF for emacs-devel@gnu.org; Tue, 09 Sep 2008 12:41:17 -0400 Original-Received: from [199.232.76.173] (port=59013 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd6HE-00029C-DE for emacs-devel@gnu.org; Tue, 09 Sep 2008 12:41:16 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:40388) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kd6HE-0003rt-Dh for emacs-devel@gnu.org; Tue, 09 Sep 2008 12:41:16 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64485 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kd6HB-0003BB-5Z; Tue, 09 Sep 2008 18:41:14 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <18630.41933.774692.297613@a1ihome1.kph.uni-mainz.de> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080908-0, 2008-09-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kd6HB-0003BB-5Z. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Kd6HB-0003BB-5Z 5d27dadd5e13f02264bc1ec3ae7f3c99 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103736 Archived-At: Ulrich Mueller wrote: >>>>>> On Tue, 09 Sep 2008, Francis Litterio wrote: > >> But we should be prepared for more bug reports about this, unless some >> means can be devised to alert Calc users about the precedence rule. > >> Would it be in appropriate to append a comment to the result when Calc >> is used interactively? > > I thought the problem (if there is one) existed only when evaluating > algebraic notation? If used interactively, calc is using RPN and there > is no ambiguity: > > 1 RET 2 / 1000 * is (1 / 2) * 1000 > 1 RET 2 RET 1000 * / is 1 / (2 * 1000) > > Am I mising something? Yes, there is an "algebraic mode". This is described in (info "(Calc) Algebraic Tutorial") On top of this is a big remark which tells about the non-standard precedence rule we have been discussing: *Warning:* Note that `/' has lower precedence than `*', so that `a/b*c' is interpreted as `a/(b*c)'. See below for details.