1

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$"))
0

You can use a function, but there seems to be a simple mistake in the answer you linked to. Drop the brackets and it should work.

Or, refer to the answer I posted on your link: https://emacs.stackexchange.com/a/38342/17462

  • I fixed the accepted answer in the link. – NickD Apr 21 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.