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.
master
Daniel Borchmann 1 year ago
parent cf86962d6f
commit 77f2dfc0eb
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
  1. 2
      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)

Loading…
Cancel
Save