Replace deprecated string-to-int with string-to-number.
authorJames Richardson <j@mesrichardson.com>
Thu, 1 Aug 2019 13:42:41 +0000 (09:42 -0400)
committerJames Richardson <j@mesrichardson.com>
Thu, 1 Aug 2019 13:42:41 +0000 (09:42 -0400)
.emacs.d/config/org.el

index 3c711c1426a9a4376e06b1caa29a6b590ba24657..bb3385aaf086305e389ae6b7251f4f735589dedc 100644 (file)
@@ -696,7 +696,7 @@ Skip project and sub-project tasks, habits, and loose non-project tasks."
          (subtree-end (save-excursion (org-end-of-subtree t))))
       (if (member (org-get-todo-state) org-todo-keywords-1)
          (if (member (org-get-todo-state) org-done-keywords)
-             (let* ((daynr (string-to-int (format-time-string "%d" (current-time))))
+             (let* ((daynr (string-to-number (format-time-string "%d" (current-time))))
                     (a-month-ago (* 60 60 24 (+ daynr 1)))
                     (last-month (format-time-string "%Y-%m-" (time-subtract (current-time) (seconds-to-time a-month-ago))))
                     (this-month (format-time-string "%Y-%m-" (current-time)))