aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calendar
diff options
context:
space:
mode:
authorJohn Wiegley <[email protected]>2001-05-10 01:55:51 +0000
committerJohn Wiegley <[email protected]>2001-05-10 01:55:51 +0000
commit3b774a0c201068fa0659b7d3fd3d6044ffde50e3 (patch)
tree67f064635becac0187bd8a3ca61c366de4ae24d8 /lisp/calendar
parentb2c9995061505419cc40c3bae07d19438a7fe5fa (diff)
(timeclock-find-discrep): Set `timeclock-last-event-workday' if it's
still nil.
Diffstat (limited to 'lisp/calendar')
-rw-r--r--lisp/calendar/timeclock.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el
index 53ff127713..2cd06f3ac6 100644
--- a/lisp/calendar/timeclock.el
+++ b/lisp/calendar/timeclock.el
@@ -1077,6 +1077,8 @@ See the documentation for the given function if more info is needed."
timeclock-workday))
(forward-line))
(setq timeclock-discrepancy accum))))
+ (unless timeclock-last-event-workday
+ (setq timeclock-last-event-workday timeclock-workday))
(setq accum timeclock-discrepancy
elapsed timeclock-elapsed)
(if timeclock-last-event