From 336bef91edcd233106c9922c9aca7c4ca27966f5 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 2 Apr 2024 19:27:29 +0300 Subject: gnosis-tag-prompt: Use error for "No due notes" --- gnosis.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnosis.el') diff --git a/gnosis.el b/gnosis.el index fed4b0e..757be50 100644 --- a/gnosis.el +++ b/gnosis.el @@ -931,7 +931,7 @@ MATCH: Require match, t or nil value DUE: if t, return tags for due notes from `gnosis-due-tags'." (let ((tags '())) (cond ((and due (null (gnosis-review-get-due-notes))) - (message "No due notes.")) + (error "No due notes")) (t (cl-loop for tag = (completing-read (concat prompt (format " (%s) (q for quit): " (mapconcat #'identity tags " "))) (cons "q" (if due (gnosis-review-get-due-tags) -- cgit v1.2.3