Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions org-time-budgets.el
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ See this example:
(org-agenda-files))))

(defun org-time-budgets-format-block (block)
(let ((current (case block
(let ((current (cl-case block
(day (org-time-budgets-time `(:match ,match :block today)))
(workday (org-time-budgets-time `(:match ,match :block today)))
(week (org-time-budgets-time `(:match ,match :tstart ,tstart-s :tend ,tend-s)))))
(budget (case block
(budget (cl-case block
(day (/ range-budget 7))
(workday (/ range-budget 5))
(week range-budget))))
Expand All @@ -134,7 +134,7 @@ See this example:
(match (or (plist-get budget :match)
(plist-get budget :tags))) ;; support for old :tags syntax
(blocks (or (plist-get budget :blocks)
(case (plist-get budget :block) ;; support for old :block syntax
(cl-case (plist-get budget :block) ;; support for old :block syntax
(week '(day week))
(workweek '(workday week)))
'(day week)))
Expand Down