From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#10554: 24.0.92; No units specified (dimensionless quantities in Emacs Calc) Date: Thu, 19 Jan 2012 16:33:31 -0600 Message-ID: <20248.39483.716850.185512@gargle.gargle.HOWL> References: <8762g8i7s6.fsf@niu.edu> <87bopz5pt8.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327012500 18923 80.91.229.12 (19 Jan 2012 22:35:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2012 22:35:00 +0000 (UTC) Cc: 10554@debbugs.gnu.org To: jay.p.belanger@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 19 23:34:55 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ro0ZJ-0006l5-94 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2012 23:34:53 +0100 Original-Received: from localhost ([::1]:57168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro0ZI-0006t5-3a for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2012 17:34:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro0ZF-0006sz-NI for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 17:34:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro0ZE-0002fR-7i for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 17:34:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro0ZE-0002fN-4n for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 17:34:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ro0aP-0006xU-KG for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 17:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jan 2012 22:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10554-submit@debbugs.gnu.org id=B10554.132701250726668 (code B ref 10554); Thu, 19 Jan 2012 22:36:01 +0000 Original-Received: (at 10554) by debbugs.gnu.org; 19 Jan 2012 22:35:07 +0000 Original-Received: from localhost ([127.0.0.1]:35805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro0ZX-0006w4-15 for submit@debbugs.gnu.org; Thu, 19 Jan 2012 17:35:07 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:37930) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro0ZV-0006vy-Ft for 10554@debbugs.gnu.org; Thu, 19 Jan 2012 17:35:06 -0500 Original-Received: from [83.175.202.27] (port=54491 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Ro0YH-0007XC-Ht; Thu, 19 Jan 2012 17:33:51 -0500 In-Reply-To: <87bopz5pt8.fsf@gmail.com> X-Mailer: VM 8.2 trial under 24.0.92.1 (x86_64-unknown-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55861 Archived-At: On Thu Jan 19 2012 Jay Belanger wrote: > > > In Calc type > ... > > Convert this to SI units with u c si RET > > - That's perfect. We get a dimensionless number. > ... > > Now when we type again u c, Calc remembers what we did before. > > So as a unit it offers "default 1". > > Calc should probably offer "si" as the default in this case. Yes: If previously one explicitly used "si" as an arg to calc-convert-units, then it would be reasonable if calc-convert-units remembered this choice, independent of the actual SI unit that calc-convert-units obtained at the end of the previous calculation. > I'll also change it so that Calc can offer unit systems and composite > units as default units, but that should probably wait until after 24.1 > comes out. Agreed. This is nothing urgent. >From a different perspective, I'd say that "dimensionless" is as valid a unit as "kg" or "hbar / c". In that sense I'd say that there should be a possibility to pass this unit "dimensionless" as an arg to calc-convert-units, similar to any other unit that this function should use for its final result. I'd say that "1" appears to be a natural choice in order to express the fact that Calc should obtain a dimensionless number. Or is there some other recommended way to do this that I have overlooked? Roland