org-clock.el: Fix clocktable scope parameter

* lisp/org-clock.el (org-dblock-write:clocktable): Make sure to eval
  the scope if it is a lisp expression, or to return the scope if it
  is just a list.

This adds back to the clocktable the capacity to have as scope both a
list of file paths or a function that returns such a list.

---
 lisp/org-clock.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 65c13fd..18bb443 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2370,7 +2370,8 @@ the currently selected interval size."
                    (`file-with-archives
                     (and buffer-file-name
                          (org-add-archive-files (list buffer-file-name))))
-                   ((pred consp) scope)
+                    ((and (pred #'listp) (pred (lambda (scope) (symbolp (car 
scope))))) (eval scope))
+                    ((pred listp) scope)
                    (_ (or (buffer-file-name) (current-buffer)))))
           (block (plist-get params :block))
           (ts (plist-get params :tstart))
--

TINYCHANGE

Attachment: signature.asc
Description: PGP signature

Reply via email to