Fix: Warning: `string-to-int' is an obsolete function (as of 22.1); use `string-to-number' instead.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Mar 2015 13:32:03 +0200
changeset 1247 6de0de0a4033
parent 1246 abd80227aa4b
child 1248 19234649ba68
Fix: Warning: `string-to-int' is an obsolete function (as of 22.1); use `string-to-number' instead.
my-log-mode.el
--- a/my-log-mode.el	Sun Mar 01 13:30:14 2015 +0200
+++ b/my-log-mode.el	Sun Mar 01 13:32:03 2015 +0200
@@ -29,8 +29,7 @@
       (string-match fregex line)
       (setq fname (match-string 1 line))
       (when fname
-        (setq fline (string-to-int (match-string 2 line)))
-        )
+        (setq fline (string-to-number (match-string 2 line))))
       )
     (cond
      ( (and fname (file-exists-p fname))