diff options
author | Thanos Apollo <[email protected]> | 2024-01-08 14:29:19 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-01-08 14:29:19 +0200 |
commit | 83a1e5d9c4a8dfb7e13ef67df1cf1913de917e05 (patch) | |
tree | c680696440854b3fee3fb1d2a27a8c90456da234 /gnosis.el | |
parent | 0914485532f0a85f08eeead75a40ebe39e203044 (diff) |
gnosis-review--session: Fix message for no notes
Redo with if statement & update message
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -920,21 +920,21 @@ NOTE-NUM: The number of notes reviewed in the session." (defun gnosis-review--session (notes) "Start review session for NOTES." - (when (null notes) - (message "No due notes.")) (let ((note-count 0)) - (when (y-or-n-p (format "You have %s total notes for review, start session?" (length notes))) - (cl-loop for note in notes - do (progn (gnosis-review-note note) - (setf note-count (1+ note-count)) - (pcase (read-char-choice "Note Action: [n]ext, [s]uspend, [e]dit, [q]uit: " '(?n ?s ?e ?q)) - (?n nil) - (?s (gnosis-suspend-note note)) - (?e (progn (gnosis-edit-note note) - (recursive-edit))) - (?q (progn (gnosis-review-commit note-count) - (cl-return))))) - finally (gnosis-review-commit note-count))))) + (if (null notes) + (message "No notes for review.") + (when (y-or-n-p (format "You have %s total notes for review, start session?" (length notes))) + (cl-loop for note in notes + do (progn (gnosis-review-note note) + (setf note-count (1+ note-count)) + (pcase (read-char-choice "Note Action: [n]ext, [s]uspend, [e]dit, [q]uit: " '(?n ?s ?e ?q)) + (?n nil) + (?s (gnosis-suspend-note note)) + (?e (progn (gnosis-edit-note note) + (recursive-edit))) + (?q (progn (gnosis-review-commit note-count) + (cl-return))))) + finally (gnosis-review-commit note-count)))))) ;; Editing notes |