From 888876594bf97dbbdffe0ba6d1d786ff136e71bb Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 4 Oct 2021 15:00:46 +0800 Subject: [PATCH] Clarify accepted value for list of files in :scope --- org-ql-search.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-ql-search.el b/org-ql-search.el index c8298c1..dbd3b7b 100644 --- a/org-ql-search.el +++ b/org-ql-search.el @@ -248,7 +248,7 @@ Valid parameters include: `buffer' the current buffer `org-agenda-files' all agenda files `org-directory' all org files - `(list-of-files ...)' a list of org files + `(\"path\" ...)' list of buffer names or file paths `all' all agenda files, and org-mode buffers :query An Org QL query expression in either sexp or string @@ -287,7 +287,7 @@ For example, an org-ql dynamic block header could look like: (org-ql--ask-unsafe-query query) query))) (columns (or columns '(heading todo (priority "P")))) - (scope (cond ((listp scope) scope) + (scope (cond ((and (listp scope) (seq-every-p #'stringp scope)) scope) ((string-equal scope "org-agenda-files") (org-agenda-files)) ((or (not scope) (string-equal scope "buffer")) (current-buffer)) ((string-equal scope "org-directory") (org-ql-search-directories-files))