Commit graph

31 commits

Author SHA1 Message Date
Lute Kamstra
6a8cf8833d (timeclock): Docstring fix. 2005-04-05 18:35:17 +00:00
Juanma Barranquero
1c226f2ba5 (timeclock-time-less-p): Remove.
(timeclock-generate-report): Use `time-less-p'.
2004-04-27 22:44:39 +00:00
Eli Zaretskii
a9dfccd6ae (timeclock-relative)
(timeclock-get-project-function, timeclock-get-workday-function)
(timeclock-query-out, timeclock-when-to-leave)
(timeclock-when-to-leave-string, timeclock-log-data)
(timeclock-generate-report, timeclock-in): Doc fixes.
2004-04-04 21:30:49 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Glenn Morris
145570df04 Minor commentary changes.
(timeclock-relative, timeclock-ask-before-exiting)
(timeclock-use-display-time): Doc changes.
(timeclock-modeline-display): Give a message if
`timeclock-use-display-time' is non-nil but `display-time-mode' is not
active.
2003-07-11 13:15:05 +00:00
Glenn Morris
4ee3e788bd (timeclock-use-display-time, timeclock-day-over-hook)
(timeclock-workday-remaining, timeclock-status-string)
(timeclock-when-to-leave, timeclock-when-to-leave-string)
(timeclock-log-data, timeclock-find-discrep, timeclock-day-base)
(timeclock-generate-report, timeclock-visit-timelog): Doc fix.
(timeclock-modeline-display): Set the variable `timeclock-modeline-display'.
(timeclock-update-modeline): Doc fix.  Respect value of `timeclock-relative'.
2003-07-10 01:02:11 +00:00
Glenn Morris
b9c3a97d1d (display-time-hook, timeclock-modeline-display): Define for byte-compiler.
(timeclock-time-to-date, timeclock-workday-remaining)
(timeclock-time-to-seconds, timeclock-seconds-to-time): Move earlier
in the file so defined before used.
(timeclock-status-string): No need for `let*' so use `let'.
(timeclock-query-out): Always return a non-nil value.
2003-06-12 17:28:48 +00:00
Glenn Morris
9d1137ce04 Update copyright.
(timeclock-ask-before-exiting): Put `timeclock-query-out' on
`kill-emacs-query-functions' rather than `kill-emacs-hook'.
(timeclock-mode-string): Doc fix.
(timeclock-modeline-display): Doc fix.  Use `global-mode-string' rather
than `mode-line-format'.
(timeclock-query-out): Doc fix.
(timeclock-update-modeline): No need for `let*', so use `let'.
Add some help-echo text to `timeclock-mode-string'.
(timeclock-mode-string): Give it the risky-local-variable property,
so that help-echo text will display.
(timeclock-find-discrep): Set `accum' to 0 if `timeclock-discrepancy' is nil.
2003-05-27 18:36:40 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
John Wiegley
dc0868e1ce (timeclock-modeline-display): Use assq as well as memq to find
`global-mode-string' within `mode-line-format'.  The structure of
that variable has changed in 21.3.
2002-11-08 20:28:55 +00:00
Glenn Morris
4105dd524e (timeclock-in): Run the new day section if, after rereading the log file,
timeclock-last-event is nil, indicating no log file exists yet. Take
account of the fact that timeclock-discrepancy will be nil in that case.
2002-07-13 18:56:04 +00:00
Glenn Morris
a3dd6af2b5 (timeclock-get-workday-function): `timeclock-workday' is not a valid
option for this, rather it is a value that may be returned.
2002-07-12 23:38:01 +00:00
Juanma Barranquero
69a04106be (timeclock-workday-remaining): Fix typo.
(timeclock-workday-elapsed): Likewise.
2002-07-03 13:18:53 +00:00
Eli Zaretskii
9ca8a5a0ed (timeclock-out): Signal an error if timeclock-last-event is nil. 2001-11-03 15:50:05 +00:00
John Wiegley
8c9245e2a5 One more variable coming up nil on the first time around, needing
guarding.
2001-05-10 02:46:38 +00:00
John Wiegley
cb89da0f8f *** empty log message *** 2001-05-10 01:57:04 +00:00
John Wiegley
3b774a0c20 (timeclock-find-discrep): Set `timeclock-last-event-workday' if it's
still nil.
2001-05-10 01:55:51 +00:00
John Wiegley
4bd0908bff (timeclock-find-discrep): Initialize `elapsed' to 0. 2001-05-10 01:00:50 +00:00
John Wiegley
1c8c9fb88e (timeclock-workday-remaining): Changed logic for determining how much
time is remaining.
(timeclock-workday-elapsed): Don't accept a "relative" argument for
the current day's elapsed time.  What could that have meant?
(timeclock-workday-elapsed-string): No "relative" argument anymore.
(timeclock-when-to-leave): Changed logic, similarly to what was done
for `timeclock-workday-remaining'.
(timeclock-find-discrep): Removed "today-only" argument, which had no
meaning.  Fixed some more math problems.  The function now returns a
three member list: (TOTAL-TIME-DISCREPANCY TODAYS-TIME-DISCREPANCY
TODAYS-ELAPSED-TIME).
2001-05-08 21:12:41 +00:00
John Wiegley
3dc630b9e1 (timeclock-day-required): If the time required for a particular day is
not set, use `timeclock-workday'.
(timeclock-find-discrep): Added some sample code in a comment.
2001-04-24 01:39:55 +00:00
John Wiegley
978bd3eafc (timeclock-completing-read): new function.
(timeclock-ask-for-project, timeclock-ask-for-reason): Call
`timeclock-completing-read', which works under XEmacs as well.
2001-04-11 15:51:19 +00:00
John Wiegley
40e7276a9b (timeclock-generate-report): Added a missing insert of the project
name.
2001-04-09 23:36:36 +00:00
John Wiegley
db730662c2 *** empty log message *** 2001-03-16 21:50:15 +00:00
John Wiegley
9165cab870 see ChangeLog 2001-03-16 21:48:27 +00:00
John Wiegley
9329ea14c5 see ChangeLog 2001-03-16 21:39:31 +00:00
Dave Love
3becc0163d *** empty log message *** 2001-02-15 00:14:17 +00:00
John Wiegley
dace60cfea See ChangeLog 2000-10-29 05:18:48 +00:00
John Wiegley
d7103dda28 Removed all external URL references, and changed one, since my
www.emacs.org is not longer being used.
2000-10-13 10:32:23 +00:00
John Wiegley
16908a3f0d Bug fix for timeclock.el 2000-10-13 09:35:36 +00:00
Eli Zaretskii
e437b49194 (timeclock-file): Run .timelog through convert-standard-filename. 2000-08-15 08:25:50 +00:00
Gerd Moellmann
90cbf47ef1 *** empty log message *** 2000-08-14 12:45:50 +00:00