fix(emacs/lean-option.el): don't use deprecated function, string-to-int
string-to-int was deprecated since Emacs 22. string-to-number should be used instead of string-to-int.
This commit is contained in:
parent
60861d7dea
commit
885c62648f
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@
|
|||
|
||||
(defun lean-option-read-int (prompt)
|
||||
(let* ((str (read-string prompt))
|
||||
(val (string-to-int str))
|
||||
(val (string-to-number str))
|
||||
tmp-str)
|
||||
(setq tmp-str (int-to-string val))
|
||||
(if (and (integerp val)
|
||||
|
@ -87,7 +87,7 @@
|
|||
|
||||
(defun lean-option-read-uint (prompt)
|
||||
(let* ((str (read-string prompt))
|
||||
(val (string-to-int str))
|
||||
(val (string-to-number str))
|
||||
tmp-str)
|
||||
(setq tmp-str (int-to-string val))
|
||||
(if (and (integerp val)
|
||||
|
|
Loading…
Reference in a new issue