From 084ea2c3ee70f5403da0d0bbdda8b9a123c65636 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 9 May 2005 08:45:47 +0000 Subject: [PATCH] (hilit-add-pattern): Replace `string-to-int' by `string-to-number'. --- lisp/obsolete/hilit19.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/obsolete/hilit19.el b/lisp/obsolete/hilit19.el index a5fd33adcaa..8c5b64ed5ad 100644 --- a/lisp/obsolete/hilit19.el +++ b/lisp/obsolete/hilit19.el @@ -1050,7 +1050,7 @@ Optionally, place the new pattern first in the pattern list" (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))) -- 2.39.2