From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edmund Kademan Newsgroups: gmane.emacs.bugs Subject: bug#12687: 24.2.50; calc volume units conversion Date: Fri, 19 Oct 2012 18:25:39 -0400 Message-ID: <876266cd5o.fsf@dl.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350687056 30668 80.91.229.3 (19 Oct 2012 22:50:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 22:50:56 +0000 (UTC) To: 12687@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 00:51:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TPLPA-00024D-26 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 00:51:00 +0200 Original-Received: from localhost ([::1]:60633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLP2-0004fN-Tl for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 18:50:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLOu-0004Wd-9T for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:50:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPLOh-00027w-Ia for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:50:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPLOh-00027g-CX for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:50:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPLQA-0002wp-ME for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Edmund Kademan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Oct 2012 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135068710311296 (code B ref -1); Fri, 19 Oct 2012 22:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2012 22:51:43 +0000 Original-Received: from localhost ([127.0.0.1]:52302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPLPp-0002w3-2F for submit@debbugs.gnu.org; Fri, 19 Oct 2012 18:51:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56042) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPL2N-0002Mf-Td for submit@debbugs.gnu.org; Fri, 19 Oct 2012 18:27:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPL0n-0003jh-RF for submit@debbugs.gnu.org; Fri, 19 Oct 2012 18:25:50 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:46061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPL0n-0003jN-OA for submit@debbugs.gnu.org; Fri, 19 Oct 2012 18:25:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPL0m-0005fo-1K for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:25:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPL0k-0003fC-Ir for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:25:47 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:50417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPL0k-0003cl-C6 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:25:46 -0400 Original-Received: by mail-vb0-f41.google.com with SMTP id v13so1290783vbk.0 for ; Fri, 19 Oct 2012 15:25:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type :x-gm-message-state; bh=m5riIMC+rpIxVwVu4ZCwnW0+SASPvHS3lSiFYrWoAM8=; b=Cp1Yu0Hm+p42jnp6TqWe0SAE7wajbmg0zEDmQxBXNtlkL/1ojZln1p8DUru7vNePvi didILO6rZhg7nCAD71hu1e8/3v30xkFQXKtL/6Ke8hgfMupS9K598OCin/Ngckwo8Fib iGcg0UxsWa3pREf06M74fTbALS8+5QzTVFdB/I8NAsozb8M5g/mXzTjP5j41T1TXpN+y o+BcV8BBKBT6gZ6U4BplaNoQo50OwTled1P2++tBlhVYdZMy3va/ZAXFe1YOA1xH0+yK 8B9s9DDS7cc4Cyp5Y41VPhjsS+3xXEsP/MnPEYE+i/mWF9MF42IQIbUn3N0M7du3YzJ0 7btA== Original-Received: by 10.58.59.36 with SMTP id w4mr3756236veq.26.1350685543908; Fri, 19 Oct 2012 15:25:43 -0700 (PDT) Original-Received: from dl (rrcs-50-75-78-61.nys.biz.rr.com. [50.75.78.61]) by mx.google.com with ESMTPS id dq8sm2160430vdc.4.2012.10.19.15.25.40 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Oct 2012 15:25:42 -0700 (PDT) Original-Received: from ejk by dl with local (Exim 4.76) (envelope-from ) id 1TPL0d-0005g3-BL for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 18:25:39 -0400 X-Gm-Message-State: ALoCoQn5SxgdrBC/axdD7mTdUVcEoVXZOixFWxte6YQZSCQAZMvDdR/VpStGPXDmLDWzXCLQq1hI X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 19 Oct 2012 18:51:40 -0400 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:65765 Archived-At: emacs -Q C-x ** ;start calc 'gal RET ;enter 1 gallon uc ;try to convert to new units At this point calc should prompt for new units, but it does not. A workaround for me is to redefine the math-get-standard-units function: *** calc-units.el 2012-10-19 17:35:54.000000000 -0400 --- calc-units-changed.el 2012-10-19 18:14:30.000000000 -0400 *************** *** 383,390 **** (defun math-get-standard-units (expr) "Return the standard units in EXPR." ! (math-simplify-units ! (math-extract-units (math-to-standard-units expr nil)))) (defun math-get-units (expr) --- 383,390 ---- (defun math-get-standard-units (expr) "Return the standard units in EXPR." ! (math-extract-units ! (math-simplify-units (math-to-standard-units expr nil)))) (defun math-get-units (expr) In GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-10-19 on dl Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.1 LTS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)