summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-08 14:29:19 +0200
committerThanos Apollo <[email protected]>2024-01-08 14:29:19 +0200
commit83a1e5d9c4a8dfb7e13ef67df1cf1913de917e05 (patch)
treec680696440854b3fee3fb1d2a27a8c90456da234 /gnosis.el
parent0914485532f0a85f08eeead75a40ebe39e203044 (diff)
gnosis-review--session: Fix message for no notes
Redo with if statement & update message
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/gnosis.el b/gnosis.el
index 6661bd9..e37e9aa 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -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