Mercurial > emacs
changeset 58553:1c7dfa5d5967
(math-format-radix-float): Make pos a local variable.
(math-format-radix-float): Remove unnecessary setq.
(math-radix-float-cache): Declare it.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Fri, 26 Nov 2004 22:39:01 +0000 |
parents | 59f299fd62df |
children | aed8d65fbf66 |
files | lisp/calc/calc-bin.el |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 <daveg@synaptics.com> -;; Maintainers: D. Goel <deego@gnufans.org> -;; Colin Walters <walters@debian.org> +;; Maintainer: Jay Belanger <belanger@truman.edu> ;; 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)