aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/timeclock.el2
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8fe3b20fae8..b8f44cf28bd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * calendar/timeclock.el (timeclock-out): Signal an error if
4 timeclock-last-event is nil.
5
12001-11-02 Stefan Monnier <monnier@cs.yale.edu> 62001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2 7
3 * international/mule-diag.el (list-character-sets) 8 * international/mule-diag.el (list-character-sets)
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el
index e570f9bf2f7..a7f3c73d32d 100644
--- a/lisp/calendar/timeclock.el
+++ b/lisp/calendar/timeclock.el
@@ -370,6 +370,8 @@ FIND-REASON is non-nil -- or the user calls `timeclock-out'
370interactively -- call the function `timeclock-get-reason-function' to 370interactively -- call the function `timeclock-get-reason-function' to
371discover the reason." 371discover the reason."
372 (interactive "P") 372 (interactive "P")
373 (or timeclock-last-event
374 (error "You haven't clocked in!"))
373 (if (equal (downcase (car timeclock-last-event)) "o") 375 (if (equal (downcase (car timeclock-last-event)) "o")
374 (error "You've already clocked out!") 376 (error "You've already clocked out!")
375 (timeclock-log 377 (timeclock-log