branch: elpa/gnosis
commit 179957230b8f88e56c997abc840f1f42d8a3175f
Author: Thanos Apollo <pub...@thanosapollo.org>
Commit: Thanos Apollo <pub...@thanosapollo.org>

    dashboard-suspend-note: Use toggle-suspend-notes.
    
    + Major performance improvements for batch actions.
---
 gnosis.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index b4ef0161fa4..6d9b5c6030e 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2430,13 +2430,12 @@ DATE: Integer, used with `gnosis-algorithm-date' to get 
previous dates."
 
 (defun gnosis-dashboard-suspend-note ()
   "Suspend note."
-  (interactive)
+  (interactive nil gnosis-dashboard-notes-mode)
   (let ((current-line (line-number-at-pos)))
-    (if gnosis-dashboard--selected-ids
-       (gnosis-dashboard-marked-suspend)
-      (gnosis-suspend-note (tabulated-list-get-id))
-      (gnosis-dashboard-output-notes gnosis-dashboard-note-ids)
-      (revert-buffer t t t))
+    (gnosis-toggle-suspend-notes
+     (or gnosis-dashboard--selected-ids (list (tabulated-list-get-id))))
+    (gnosis-dashboard-output-notes gnosis-dashboard-note-ids)
+    (revert-buffer t t t)
     (forward-line (- current-line 1))))
 
 (defun gnosis-dashboard-delete ()

Reply via email to