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

    dashboard-output-notes: Remove run-with-timer.
---
 gnosis.el | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/gnosis.el b/gnosis.el
index 4a8bb0a1b5..ac263a30b6 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2628,16 +2628,14 @@ Skips days where no note was reviewed."
         tabulated-list-entries nil)
   (make-local-variable 'tabulated-list-entries)
   (tabulated-list-init-header)
-  (let ((inhibit-read-only t))
+  (let ((inhibit-read-only t)
+       (entries (gnosis-dashboard--output-notes note-ids)))
     (erase-buffer)
-    (insert (format "Loading %s notes..." (length note-ids))))
-  (run-with-timer 0.1 nil
-                  (lambda ()
-                    (let ((entries (gnosis-dashboard--output-notes note-ids)))
-                      (with-current-buffer gnosis-dashboard-buffer-name
-                        (setq tabulated-list-entries entries)
-                        (tabulated-list-print t)
-                        (setf gnosis-dashboard--current `(:type notes :ids 
,note-ids)))))))
+    (insert (format "Loading %s notes..." (length note-ids)))
+    (setq tabulated-list-entries entries)
+    (tabulated-list-print t)
+    (setf gnosis-dashboard--current
+         `(:type notes :ids ,note-ids))))
 
 (defun gnosis-dashboard-deck-note-count (id)
   "Return total note count for deck with ID."

Reply via email to