From 9b0415cf7590d0185d76fc99f454b4069e77b83a Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 16 Jun 2024 20:31:07 +0300 Subject: Refactor gnosis-review-actions Use gnosis-review-action--FUNC functions, breaking this into smaller parts & ensuring everything works properly. --- gnosis.el | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/gnosis.el b/gnosis.el index 1c56c24..48aa652 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1380,17 +1380,10 @@ NOTE-COUNT: Total notes reviewed" (?e "edit") (?q "quit")))) (?n (gnosis-review-result note success)) - (?o (setf success (if success nil t)) - (gnosis-display-next-review note success) - (gnosis-review-actions success note note-count)) - (?s (gnosis-suspend-note note)) - (?e (gnosis-edit-note note t) - (recursive-edit) - (gnosis-review-actions success note note-count)) - (?q (gnosis-review-result note success) - (gnosis-review-commit note-count) - ;; Break the loop of `gnosis-review-session' - (throw 'stop-loop t)))) + (?o (gnosis-review-action--override success note note-count)) + (?s (gnosis-review-action--suspend success note note-count)) + (?e (gnosis-review-action--edit success note note-count)) + (?q (gnosis-review-action--quit success note note-count)))) (defun gnosis-review-session (notes) "Start review session for NOTES. -- cgit v1.2.3