From 1f348e256d012a1b8f153c2321336fa2151897ec Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 1 Apr 2024 11:16:15 +0200 Subject: [PATCH] Disable refile verification when jumping to any Org item Any item could be of interest, not only those that are valid refile targets. This might be slow. May we should not be using the refile mechanism to jump to any item? --- site-lisp/db-org.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 4a1f613..5971434 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1051,7 +1051,11 @@ Current Task: %s(replace-regexp-in-string \"%\" \"%%\" (or org-clock-current-tas (->> (org-agenda-files :unrestricted) cl-first get-file-buffer) - (org-refile '(4))) + ;; Show all possible items, i.e. exclude refile verification; since the + ;; cache includes only verified items, also disable it locally. + (let ((org-refile-use-cache nil) + (org-refile-target-verify-function nil)) + (org-refile '(4)))) nil) ("s" (db/org-clock-goto-first-open-checkbox t) nil))