[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master e3bbd66 06/13: Use decoded time accessors in appt
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master e3bbd66 06/13: Use decoded time accessors in appt |
Date: |
Tue, 30 Jul 2019 07:12:06 -0400 (EDT) |
branch: master
commit e3bbd665a9ab8208fdc9c20aee8ac0b4cee682d8
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Use decoded time accessors in appt
* lisp/calendar/appt.el (appt-check, appt-make-list): Use decoded
time accessors.
---
lisp/calendar/appt.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index b7aa212..944054e 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -325,7 +325,7 @@ displayed in a window:
(prev-appt-display-count appt-display-count)
;; Convert current time to minutes after midnight (12.01am = 1).
(now (decode-time))
- (now-mins (+ (* 60 (nth 2 now)) (nth 1 now)))
+ (now-mins (+ (* 60 (decoded-time-hour now)) (decoded-time-minute
now)))
appt-mins appt-warn-time min-to-app min-list string-list)
(save-excursion ; FIXME ?
;; At first check in any day, update appointments to today's list.
@@ -647,7 +647,8 @@ Any appointments made with `appt-add' are not affected by
this function."
;; Convert current time to minutes after midnight (12:01am = 1),
;; and remove elements in the list that are in the past.
(let* ((now (decode-time))
- (now-mins (+ (* 60 (nth 2 now)) (nth 1 now))))
+ (now-mins (+ (* 60 (decoded-time-hour now))
+ (decoded-time-minute now))))
(while (and appt-time-msg-list
(< (caar (car appt-time-msg-list)) now-mins))
(setq appt-time-msg-list (cdr appt-time-msg-list)))))))
- [Emacs-diffs] master updated (8a30f04 -> 74c5d68), Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 3c4eb0d 01/13: Use decoded time accessors in proced, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master bd3bc1c 05/13: Fix syntax error in previus calc-forms change, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 9f14c9a 04/13: Use decoded time accessors in calendar, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master e3bbd66 06/13: Use decoded time accessors in appt,
Lars Ingebrigtsen <=
- [Emacs-diffs] master c859bc0 08/13: Use decoded time accessors in timeclock, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 4134e6f 12/13: Use decoded time accessors in pop3, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 608832a 02/13: Use decoded time accessors in calc, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master bd26eff 03/13: Use decoded time accessors in Gnus, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master e9e1b0a 07/13: Use decoded time accessors in time-date, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 66a74f8 09/13: Use decoded time accessors in timer, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master bddd4d3 10/13: Use decoded time accessors in in em-ls, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 2b5fe44 11/13: Use decoded time accessors in esh-util, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 74c5d68 13/13: Use decoded time accessors in ediff-mult, Lars Ingebrigtsen, 2019/07/30