Mercurial > emacs
changeset 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 | dda44460de33 |
children | 86f3ab4179bd |
files | lisp/obsolete/hilit19.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)))