diff options
author | Thanos Apollo <[email protected]> | 2024-04-02 16:55:50 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-02 16:55:50 +0300 |
commit | cee8aa43f8e1bc4dacec63630051bbc1d4c1d246 (patch) | |
tree | c5202965bb8b82eea74b9a1eb8c2f06185277f86 | |
parent | a76e0d19da9ea6c4620a1f963c7d8ce5e81376ef (diff) |
gnosis-select-by-tag: Use cl-assert
-rw-r--r-- | gnosis.el | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -888,8 +888,7 @@ Optionally, add cusotm PROMPT." (defun gnosis-select-by-tag (input-tags) "Return note ID's for every note with INPUT-TAGS." - (unless (listp input-tags) - (error "`input-tags' need to be a list")) + (cl-assert (listp input-tags) t "Input tags must be a list") (cl-loop for (id tags) in (gnosis-select '[id tags] 'notes) when (and (cl-every (lambda (tag) (member tag tags)) input-tags) (not (gnosis-suspended-p id))) |