diff lisp/obsolete/hilit19.el @ 62195:db28615c678a

(hilit-add-pattern): Replace `string-to-int' by `string-to-number'.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 09 May 2005 08:45:47 +0000
parents 6e18b0aebeb3
children 18a818a2ee7c 62afea0771d8
line wrap: on
line diff
--- a/lisp/obsolete/hilit19.el	Mon May 09 08:44:58 2005 +0000
+++ b/lisp/obsolete/hilit19.el	Mon May 09 08:45:47 2005 +0000
@@ -1050,7 +1050,7 @@
 
   (and (equal pstart "") (error "Must specify starting regex"))
   (cond ((equal pend "") (setq pend 0))
-	((string-match "^[0-9]+$" pend) (setq pend (string-to-int pend))))
+	((string-match "^[0-9]+$" pend) (setq pend (string-to-number pend))))
   (or mode (setq mode major-mode))
   (let ((old-patterns (cdr (assq mode hilit-patterns-alist)))
 	(new-pat (list pstart pend face)))