Changeset 4140 for trunk/lisp/calendar/timeclock.el
- Timestamp:
- 08/10/06 11:19:54 (2 years ago)
- Files:
-
- trunk/lisp/calendar/timeclock.el (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/calendar/timeclock.el
r4037 r4140 96 96 97 97 (defcustom timeclock-relative t 98 "*Whether to make nreported time relative to `timeclock-workday'.98 "*Whether to make reported time relative to `timeclock-workday'. 99 99 For example, if the length of a normal workday is eight hours, and you 100 100 work four hours on Monday, then the amount of time \"remaining\" on … … 252 252 call `timeclock-workday-elapsed', to determine how much time has been 253 253 worked so far today. Also, if `timeclock-relative' is nil, this value 254 will be the same as `timeclock-discrepancy'.") ; ? gm 254 will be the same as `timeclock-discrepancy'.") 255 256 (defvar timeclock-use-elapsed nil 257 "Non-nil if the modeline should display time elapsed, not remaining.") 255 258 256 259 (defvar timeclock-last-period nil … … 425 428 worked today, ignoring the time worked on previous days." 426 429 (interactive "P") 427 (let ((remainder (timeclock-workday-remaining)) ; today-only? 430 (let ((remainder (timeclock-workday-remaining 431 (or today-only 432 (not timeclock-relative)))) 428 433 (last-in (equal (car timeclock-last-event) "i")) 429 434 status) … … 620 625 that variable's documentation." 621 626 (interactive) 622 (let ((remainder (timeclock-workday-remaining (not timeclock-relative))) 627 (let ((remainder 628 (if timeclock-use-elapsed 629 (timeclock-workday-elapsed) 630 (timeclock-workday-remaining (not timeclock-relative)))) 623 631 (last-in (equal (car timeclock-last-event) "i"))) 624 632 (when (and (< remainder 0)
