emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/moe-theme 623becd9da 282/352: Fixed string-to-int warning


From: ELPA Syncer
Subject: [nongnu] elpa/moe-theme 623becd9da 282/352: Fixed string-to-int warning
Date: Fri, 7 Jan 2022 03:59:40 -0500 (EST)

branch: elpa/moe-theme
commit 623becd9da6458bf447c6ba4987cbf5a17bb05fb
Author: Steven <stevenspasbo@gmail.com>
Commit: kuanyui <azazabc123@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]