From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#27765: 26.0.50; Calc b% and relch are inconsistent in algebraic and rpn modes Date: Fri, 3 Sep 2021 11:22:15 +0200 Message-ID: <58A8A2B5-D624-4279-811C-3E652A449BBD@acm.org> References: <8760eopppv.fsf@gmail.com> <871spcpmde.fsf@gmail.com> <87k234nw8w.fsf@gmail.com> <87y28e13j2.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14844"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andreas Schwab , Eythan Weg , 27765@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 03 11:25:20 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM5Ro-0003b7-3Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 11:25:20 +0200 Original-Received: from localhost ([::1]:40722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM5Rn-0006zK-0y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Sep 2021 05:25:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM5Pa-0002sj-Mg for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 05:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mM5Pa-0004GT-EN for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 05:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mM5Pa-0005cv-8s for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2021 05:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2021 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27765 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 27765-submit@debbugs.gnu.org id=B27765.163066094321563 (code B ref 27765); Fri, 03 Sep 2021 09:23:02 +0000 Original-Received: (at 27765) by debbugs.gnu.org; 3 Sep 2021 09:22:23 +0000 Original-Received: from localhost ([127.0.0.1]:42957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM5Ow-0005bi-TU for submit@debbugs.gnu.org; Fri, 03 Sep 2021 05:22:23 -0400 Original-Received: from mail71c50.megamailservers.eu ([91.136.10.81]:45228 helo=mail92c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM5Ou-0005bW-TY for 27765@debbugs.gnu.org; Fri, 03 Sep 2021 05:22:22 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1630660938; bh=YeRGL/5SViW0bKAanR7X7AYVoOkn2bKD6tvfUy2srl0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=qzeBhUfYkUtaFzcwWphKvD06F+xWlSb72niOl2Foy3yq7gUvekvvscBT2+1DEGezH Tvsk4QCaSgT52vPao9HNF1vc6pydKG3CpQUv9FAeUUOCxMnXV2/63+1zetwp70MxIE VHJLyXHtGk3Pa7TSPYTRczpSJGck0vytLA25R7Kk= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-b952e353.032-75-73746f71.bbcust.telenor.se [83.227.82.185]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 1839MGDn013704; Fri, 3 Sep 2021 09:22:17 +0000 In-Reply-To: <87y28e13j2.fsf@gnus.org> X-Mailer: Apple Mail (2.3445.104.21) X-CTCH-RefID: str=0001.0A742F24.6131E94A.0038, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.4 cv=C7OKdSD+ c=1 sm=1 tr=0 ts=6131e94a a=von4qPfY+hyqc0zmWf0tYQ==:117 a=von4qPfY+hyqc0zmWf0tYQ==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=OocQHUDgAAAA:8 a=rx6jr36Lqgsd1T_fzzkA:9 a=CjuIK1q_8ugA:10 a=xUZTl98r3Qw_uB5NK3jt:22 X-Origin-Country: SE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213345 Archived-At: 3 sep. 2021 kl. 10.12 skrev Lars Ingebrigtsen : > But perhaps others have other opinions; I've added Mattias to the CCs = -- > perhaps he has some comments. I'm afraid I have nothing clever to say about it. It seems = understandable that `relch`, or `calcFunc-relch` in Lisp, follows the = convention of just returning the value and not concern itself with its = presentation. `b%` is an interactive command and therefore may take an = interest in how the result is presented to the user. A weak argument, = but perhaps it makes some sort of sense. I have no idea what would break if we changed `calcFunc-relch` to return = something like `(calcFunc-percent 25)` instead of 0.25. Maybe it just = works. Regarding the uniform display of percentages in org-mode: spreadsheet = applications tend to use formatting of cells or columns when a certain = presentation (like percentage or a certain number of decimals) is = desirable. On the other hand, some functions in popular spreadsheets do = return values adorned with a presentation hint; this is the case for = financial functions that compute interest, for example. Maybe Calc assumes that someone who uses b% is a HP-12C type of person = and wants a percentage, while those using algebraic mode get plain = values.