mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 22:50:59 -08:00
(hilit-add-pattern): Replace string-to-int' by string-to-number'.
This commit is contained in:
parent
2b8f53dea4
commit
084ea2c3ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue