org-clock: Fix regression in Clock table
commitb897ab72230b165c72556447ad042a2e41973602
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Feb 2017 20:24:40 +0000 (13 21:24 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Feb 2017 20:28:59 +0000 (13 21:28 +0100)
treead9658174788a4dac3957bb6c66dd60e99cb1b93
parent990fd09ca86ef9bd6c64060d8cd668c80ed7ad9e
org-clock: Fix regression in Clock table

* lisp/org-clock.el (org-clocktable-write-default): Do not raise an
  error when :maxlevel is 0.  Small refactoring.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Split
into ...
(test-org-clock/clocktable/ranges):
(test-org-clock/clocktable/tags):
(test-org-clock/clocktable/scope):
(test-org-clock/clocktable/maxlevel):
(test-org-clock/clocktable/formula): ... these.  Add tests.

This fixes regression introduced in ccf832e83.

Reported-by: Christoph LANGE <math.semantic.web@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112091>
lisp/org-clock.el
testing/lisp/test-org-clock.el