]> git.eshelyaron.com Git - emacs.git/commitdiff
(ispell-check-minver): Declare.
authorGlenn Morris <rgm@gnu.org>
Thu, 8 Jan 2009 04:11:09 +0000 (04:11 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 8 Jan 2009 04:11:09 +0000 (04:11 +0000)
Use string-to-number rather than string-to-int.

lisp/textmodes/ispell.el

index 23a75369b386bf830c2ede9bf01c2b29dfc2f770..ffc54c881761d6d2368862ad2bce9cd900e25910 100644 (file)
 
 ;;; Compatibility code for xemacs and (not too) older emacsen:
 
+(declare-function ispell-check-minver "ispell" (v1 v2))
+
 (if (fboundp 'version<=)
     (defalias 'ispell-check-minver 'version<=)
   (defun ispell-check-minver (minver version)
@@ -214,10 +216,10 @@ compatibility function in case version<= is not available."
        (let (ver mver)
          (if (string-match "[0-9]+" version start-ver)
              (setq start-ver (match-end 0)
-                   ver (string-to-int (substring version (match-beginning 0) (match-end 0)))))
+                   ver (string-to-number (substring version (match-beginning 0) (match-end 0)))))
          (if (string-match "[0-9]+" minver start-mver)
              (setq start-mver (match-end 0)
-                   mver (string-to-int (substring minver (match-beginning 0) (match-end 0)))))
+                   mver (string-to-number (substring minver (match-beginning 0) (match-end 0)))))
 
          (if (or ver mver)
              (progn