diff options
| author | Eli Zaretskii | 2001-11-03 15:50:05 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-11-03 15:50:05 +0000 |
| commit | 9ca8a5a0ed3c42ef75d1fca3e457a78edbca1fe6 (patch) | |
| tree | f6515357350297cf1df3da129c3a6965d810ef28 | |
| parent | b2e92d3ea449790dec95a11f06897d79aabd7e2f (diff) | |
| download | emacs-9ca8a5a0ed3c42ef75d1fca3e457a78edbca1fe6.tar.gz emacs-9ca8a5a0ed3c42ef75d1fca3e457a78edbca1fe6.zip | |
(timeclock-out): Signal an error if timeclock-last-event is nil.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/timeclock.el | 2 |
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 @@ | |||
| 1 | 2001-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 | |||
| 1 | 2001-11-02 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2001-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' | |||
| 370 | interactively -- call the function `timeclock-get-reason-function' to | 370 | interactively -- call the function `timeclock-get-reason-function' to |
| 371 | discover the reason." | 371 | discover 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 |