Björn Kettunen <[email protected]> writes:
>>> Ideally I would like that similar to single file-with-archices that
>>> archive and the their files are shown as one file.
>>> But not sure how to do that.
>>
>> That's possible to do by combining the results coming from file and its
>> archives together.
>
> How would you do this?
(mapcar (lambda (file)
(with-current-buffer (find-buffer-visiting file)
(save-excursion
(save-restriction
(org-clock-get-table-data file params)))))
files)
In the above, you will need to merge table data coming from files and their
archives.
> Some tests still fail I haven't figured out why.
>
> Here's an example test that fails:
> Updating dynamic block ‘clocktable’ at line 1...
> Test test-org-clock/clocktable/compact backtrace:
That's because FILES variable can be '(nil) when you build a clock table
in a buffer that is not associated with any file.
Try
1. emacs -Q
2. M-x org-mode
3. Insert
* Foo
CLOCK: [2016-12-27 Wed 13:09]--[2016-12-28 Wed 15:09] => 26:00
4. M-x org-dynamic-block-insert-dblock RET clocktable RET
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>