summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-06-16 20:29:48 +0300
committerThanos Apollo <[email protected]>2024-06-16 20:29:48 +0300
commit8d31b7883a19b513dca76572c97f710f27bd1e74 (patch)
tree22a55aa3ed7eb586561b075d0ebd98c411303ce8 /gnosis.el
parentb573f1d2238976e0d8d8e17737a0ce290b7465f3 (diff)
Add gnosis-review-action--suspend
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 0c16c25..00af476 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1348,6 +1348,15 @@ the review session."
(gnosis-review-commit note-count)
;; Break the loop of `gnosis-review-session'
(throw 'stop-loop t))
+
+(defun gnosis-review-action--suspend (success note note-count)
+ "Suspend/Unsuspend NOTE.
+
+This function should be used with `gnosis-review-actions', which
+should be recursively called using SUCCESS, NOTE, NOTE-COUNT."
+ (gnosis-suspend-note note)
+ (gnosis-review-actions success note note-count))
+
(defun gnosis-review-actions (success note note-count)
"Specify action during review of note.