diff options
| author | Glenn Morris | 2011-05-06 18:24:04 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-05-06 18:24:04 -0700 |
| commit | a3961c3e4d2a127cbaf4e20397855867259a7788 (patch) | |
| tree | 0283e7e871ac7da5a4c431c536fa76604f6e27f1 | |
| parent | d306b4daa53acb043d79ce7fa35cc5a97e75826c (diff) | |
| download | emacs-a3961c3e4d2a127cbaf4e20397855867259a7788.tar.gz emacs-a3961c3e4d2a127cbaf4e20397855867259a7788.zip | |
timeclock.el trivia.
* lisp/calendar/timeclock.el (timeclock-log-data): Remove unused local.
Use let rather than let*.
(timeclock-find-discrep): Remove unused local.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/calendar/timeclock.el | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8528460f4f9..026d5b78bbe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-05-07 Glenn Morris <rgm@gnu.org> | 1 | 2011-05-07 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/timeclock.el (timeclock-log-data): Remove unused local. | ||
| 4 | Use let rather than let*. | ||
| 5 | (timeclock-find-discrep): Remove unused local. | ||
| 6 | |||
| 3 | * calendar/diary-lib.el (diary-comment-start): Doc fix. | 7 | * calendar/diary-lib.el (diary-comment-start): Doc fix. |
| 4 | 8 | ||
| 5 | * calendar/appt.el (appt-time-msg-list): Doc fix. | 9 | * calendar/appt.el (appt-time-msg-list): Doc fix. |
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el index 49c44449b0c..8fc3f762f29 100644 --- a/lisp/calendar/timeclock.el +++ b/lisp/calendar/timeclock.el | |||
| @@ -1025,11 +1025,10 @@ lists: | |||
| 1025 | timeclock-current-debt LOG-DATA | 1025 | timeclock-current-debt LOG-DATA |
| 1026 | 1026 | ||
| 1027 | See the documentation for the given function if more info is needed." | 1027 | See the documentation for the given function if more info is needed." |
| 1028 | (let* ((log-data (list 0.0 nil nil)) | 1028 | (let ((log-data (list 0.0 nil nil)) |
| 1029 | (now (current-time)) | 1029 | (now (current-time)) |
| 1030 | (todays-date (timeclock-time-to-date now)) | 1030 | last-date-limited last-date-seconds last-date |
| 1031 | last-date-limited last-date-seconds last-date | 1031 | (line 0) last beg day entry event) |
| 1032 | (line 0) last beg day entry event) | ||
| 1033 | (with-temp-buffer | 1032 | (with-temp-buffer |
| 1034 | (insert-file-contents (or filename timeclock-file)) | 1033 | (insert-file-contents (or filename timeclock-file)) |
| 1035 | (when recent-only | 1034 | (when recent-only |
| @@ -1115,7 +1114,7 @@ discrepancy, today's discrepancy, and the time worked today." | |||
| 1115 | (let* ((now (current-time)) | 1114 | (let* ((now (current-time)) |
| 1116 | (todays-date (timeclock-time-to-date now)) | 1115 | (todays-date (timeclock-time-to-date now)) |
| 1117 | (first t) (accum 0) (elapsed 0) | 1116 | (first t) (accum 0) (elapsed 0) |
| 1118 | event beg last-date avg | 1117 | event beg last-date |
| 1119 | last-date-limited last-date-seconds) | 1118 | last-date-limited last-date-seconds) |
| 1120 | (unless timeclock-discrepancy | 1119 | (unless timeclock-discrepancy |
| 1121 | (when (file-readable-p timeclock-file) | 1120 | (when (file-readable-p timeclock-file) |