I want to get a clocktable for a list of files defined by a function, and I can't see a way to do that. In theory (according to this answer: Is there a simple way to use all org-files referenced in a main file for the org-mode clock table) you can just provide a function, but it doesn't seem to work.
Alternatively, I'd be happy calling clocktable programmatically with elisp (and providing the function of files that way), but can't figure out how from my scan and attempts in org-clock.el
.
For reference, here is an example function I would use to generate the list of files:
(load-library "find-lisp")
(defun current-dir-org-files () (find-lisp-find-files "." "\.org$"))