]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-read-parse-table-part, calc-edit-macro-repeats): Replace
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 2 May 2005 19:44:43 +0000 (19:44 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 2 May 2005 19:44:43 +0000 (19:44 +0000)
string-to-int by string-to-number.

lisp/calc/calc-prog.el

index 05ec668cce9e3d6ea2f70b1eca96283da0c88ddd..01ca770ba27315b7888f16528d91512acdcc7e8c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; calc-prog.el --- user programmability functions for Calc
 
-;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
+;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2005 Free Software Foundation, Inc.
 
 ;; Author: David Gillespie <daveg@synaptics.com>
 ;; Maintainer: Jay Belanger <belanger@truman.edu>
             (setq part (nconc part (list (if (= (match-beginning 1)
                                                 (match-end 1))
                                              0
-                                           (string-to-int
+                                           (string-to-number
                                             (buffer-substring
                                              (1+ (match-beginning 1))
                                              (match-end 1)))))))
   (goto-char calc-edit-top)
   (while
       (re-search-forward "^\\([0-9]+\\)\\*" nil t)
-    (let ((num (string-to-int (match-string 1)))
+    (let ((num (string-to-number (match-string 1)))
           (line (buffer-substring (point) (line-end-position))))
       (goto-char (line-beginning-position))
       (kill-line 1)