From 77f2dfc0eb40ed17be9e3f5eacd0d8558d3781c0 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 16 Apr 2021 17:31:55 +0200 Subject: [PATCH] Fix missing specification of default buffer when inserting links The `default-buffer` is apparently not optional when the current buffer is not associated with a file. If `default-buffer` is missing and the current buffer is not a file-buffer, e.g., a note buffer, then `org-refile-get-targets` fails. --- site-lisp/db-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 75ea152..10d42c3 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -689,7 +689,7 @@ linking to any item." :maxlevel . 9) (nil :maxlevel . 9)) '((nil :maxlevel . 9)))) - (target-pointer (org-refile-get-location)) + (target-pointer (org-refile-get-location nil default-buffer)) (pom (nth 3 target-pointer))) (cond ((markerp pom) pom)