From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.help Subject: emacs calc and unit (or variable) term gathering Date: Wed, 09 Jan 2019 10:34:11 +0000 Organization: On the Interweb somewhere Message-ID: <87r2dmxgpo.fsf@ucl.ac.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547030101 5433 195.159.176.226 (9 Jan 2019 10:35:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 10:35:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 11:34:57 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghBCG-0001Es-Us for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 11:34:53 +0100 Original-Received: from localhost ([127.0.0.1]:48360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghBEN-00071Q-Og for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2019 05:37:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghBBy-0005tM-V0 for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 05:34:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghBBx-0004OU-GF for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 05:34:34 -0500 Original-Received: from [195.159.176.226] (port=33478 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghBBn-0004J4-8T for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 05:34:25 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ghB9a-00060U-Bb for help-gnu-emacs@gnu.org; Wed, 09 Jan 2019 11:32:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org X-Url: http://www.ucl.ac.uk/~ucecesf/ Cancel-Lock: sha1:Or+ewFuAN4N2or/uI3TOhwUJziI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119097 Archived-At: Hello all, I am using embedded calc to do some simple algebraic calculations in an org buffer. I get the following annoying result: {{{calc(n1 := 1.500 kmol / min)}}} {{{calc(n2 := 6.800 kmol / min)}}} {{{calc(n3 := n1 + n2 => 1.500 kmol / min + 6.800 kmol / min)}}} in that the terms in the final expression are not gathered together. I would have expected (and other times do get) 8.300 kmol /min as the result. Does anybody have any pointers to how to get embedded calc to gather terms? If the units were just kmol, say, calc works as I would expect. thanks, -- Eric S Fraga via Emacs 27.0.50 & org 9.1.14 on Debian buster/sid