~abcdw/rde-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] feature: org-roam-todo: Remove org-roam-db-sync.

Details
Message ID
<20230904160433.22144-1-ngraves@ngraves.fr>
DKIM signature
missing
Download raw message
Patch: +0 -1
This should not be necessary since org-roam-db-autosync-enable is called in
feature-org-roam. The point of the dynamic agenda is to record files
with todo when they are written, not to parse them each time we use the
agenda.

Users can always run this manually if necessary. It makes a huge performance
difference on some setups (if your org-roam directory is arbitrarily large).
---
src/rde/features/emacs-xyz.scm | 1 -
1 file changed, 1 deletion(-)

diff --git a/src/rde/features/emacs-xyz.scm b/src/rde/features/emacs-xyz.scm
index db1b810a..b04879b3 100644
--- a/src/rde/features/emacs-xyz.scm
+++ b/src/rde/features/emacs-xyz.scm
@@ -4414,7 +4414,6 @@ olivetti package."

    (defun rde-org-roam-list-todo-files ()
      "Return a list of org-roam files containing the \"todo\" tag."
      (org-roam-db-sync)
      (let ((todo-nodes (cl-remove-if-not
                         (lambda (n)
                           (member "todo" (org-roam-node-tags n)))
-- 
2.41.0
Reply to thread Export thread (mbox)