diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2018-10-08 22:33:22 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2018-10-08 22:33:22 -0400 |
commit | 333f0bfe766185c66952c6fbd4796c6bb97c868d (patch) | |
tree | 0fc63cae1bac3c940ba388ea73522c96d8093c8c /lisp/emacs-lisp/lisp.el | |
parent | cf1ebfa055fcd0749aa4ed2fc4c399470b9eb3de (diff) | |
download | emacs-333f0bfe766185c66952c6fbd4796c6bb97c868d.tar.gz emacs-333f0bfe766185c66952c6fbd4796c6bb97c868d.tar.bz2 emacs-333f0bfe766185c66952c6fbd4796c6bb97c868d.zip |
* lisp/calendar/timeclock.el: Use lexical-binding
Require cl-lib. Remove redundant :group args.
(timeclock-status-string): Avoid 'setq'.
(timeclock-ask-for-project, timeclock-ask-for-reason):
Completionu tables can be simple lists of strings.
(timeclock-read-moment): Doesn't deserve to be defsubst (most of the
others don't either, admittedly).
(timeclock-entry): New type.
(timeclock-entry-begin, timeclock-entry-end, timeclock-entry-project)
(timeclock-entry-comment): Define via 'cl-defstruct'.
(timeclock-entry-list-projects, timeclock-day-list-projects):
Avoid add-to-list on lexical vars.
(timeclock-day-list): Use 'push'.
(timeclock-log-data): Use 'pcase'.
(timeclock-mean): Simplify.
(timeclock-generate-report): Use dotimes.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions