# HG changeset patch # User Jay Belanger # Date 1101508741 0 # Node ID 1c7dfa5d5967e5d083faed88f7f89aa89b5d65c4 # Parent 59f299fd62dfe0bd0bf164294f45eb31d085b64b (math-format-radix-float): Make pos a local variable. (math-format-radix-float): Remove unnecessary setq. (math-radix-float-cache): Declare it. diff -r 59f299fd62df -r 1c7dfa5d5967 lisp/calc/calc-bin.el --- a/lisp/calc/calc-bin.el Fri Nov 26 22:38:31 2004 +0000 +++ b/lisp/calc/calc-bin.el Fri Nov 26 22:39:01 2004 +0000 @@ -3,8 +3,7 @@ ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc. ;; Author: David Gillespie -;; Maintainers: D. Goel -;; Colin Walters +;; Maintainer: Jay Belanger ;; This file is part of GNU Emacs. @@ -656,7 +655,8 @@ (let ((fmt (car calc-float-format)) (figs (nth 1 calc-float-format)) (point calc-point-char) - (str nil)) + (str nil) + pos) (if (eq fmt 'fix) (let* ((afigs (math-abs figs)) (fp (math-float-parts a (> afigs 0))) @@ -751,8 +751,8 @@ (if explo (let ((estr (let ((calc-number-radix 10) (calc-group-digits nil)) - (setq estr (math-format-number - (math-sub explo eadj)))))) + (math-format-number + (math-sub explo eadj))))) (setq str (if (or (memq calc-language '(math maple)) (> calc-number-radix 14)) (format "%s*%d.^%s" str calc-number-radix estr) @@ -774,6 +774,7 @@ math-radix-digits-cache)))))))) (defvar math-radix-float-cache-tag nil) +(defvar math-radix-float-cache) (defun math-radix-float-power (n) (if (eq n 0)