branch: elpa/moe-theme
commit 623becd9da6458bf447c6ba4987cbf5a17bb05fb
Author: Steven <[email protected]>
Commit: kuanyui <[email protected]>

    Fixed string-to-int warning
    
    * Replaced obsolete function
---
 moe-theme-switcher.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/moe-theme-switcher.el b/moe-theme-switcher.el
index d475f10780..502921de52 100644
--- a/moe-theme-switcher.el
+++ b/moe-theme-switcher.el
@@ -39,7 +39,7 @@ Take Keelung, Taiwan(25N,121E) for example, you can set like 
this:
                   (setq moe-theme-which-enabled 'dark)))))) ;[FIXME] Maybe 
unnecessary
 
 (defun switch-at-fixed-time ()
-  (let ((now (string-to-int (format-time-string "%H"))))
+  (let ((now (string-to-number (format-time-string "%H"))))
     (if (and (>= now 06) (<= now 18))
         (moe-load-theme 'light)
       (moe-load-theme 'dark))

Reply via email to