From 3bb5b4481dab4f4b5abff7bdf55a5e38a61ff08e Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 2 Jul 2023 12:14:36 +0200 Subject: [PATCH] Search through all Org mode buffers when inserting backlinks This seems to be fast enough, and since I often find myself aborting a current backlink insertion query because I missed to include all Org mode buffers, making it the default only seems to be reasonable. --- site-lisp/db-org.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index e886e7e..f16cc24 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1563,14 +1563,12 @@ buffer at point." Add link at point to … … _c_urrent clock … _s_elect clock item from the recent clock history - … _o_ther item (from current file buffer or default Org file) - … _O_ther item (from all Org mode text search files) + … _o_ther item (from all Org mode text search files) Show _b_acklinks to current item." ("c" db/org-add-link-to-current-clock) ("s" db/org-add-link-to-org-clock-select-task) - ("o" (db/org-add-link-to-other-item nil)) - ("O" (db/org-add-link-to-other-item t)) + ("o" (db/org-add-link-to-other-item t)) ("b" db/org-find-links-to-current-item)) (defun db/org--backlinks-for-id (item-id &optional org-ql-match archives)