Add: (org-ql-agenda--agenda) org-super-agenda-mode error
If groups are specified but the mode isn't active, the user will be confused. We might as well raise an error.
This commit is contained in:
parent
efb6938748
commit
ed3741de4b
1 changed files with 2 additions and 0 deletions
|
|
@ -110,6 +110,8 @@ agenda in, rather than the default."
|
||||||
(cl-defun org-ql-agenda--agenda (buffers-files query &key sort buffer narrow super-groups)
|
(cl-defun org-ql-agenda--agenda (buffers-files query &key sort buffer narrow super-groups)
|
||||||
"FIXME: Docstring"
|
"FIXME: Docstring"
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
|
(when (and super-groups (not org-super-agenda-mode))
|
||||||
|
(user-error "`org-super-agenda-mode' must be activated to use grouping"))
|
||||||
;; I think it's reasonable to use `eval' here.
|
;; I think it's reasonable to use `eval' here.
|
||||||
(let* ((org-super-agenda-groups super-groups)
|
(let* ((org-super-agenda-groups super-groups)
|
||||||
(entries (--> (eval `(org-ql ',buffers-files
|
(entries (--> (eval `(org-ql ',buffers-files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue