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.
This commit is contained in:
Daniel - 2021-04-16 17:31:55 +02:00
parent cf86962d6f
commit 77f2dfc0eb
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 1 deletions

View File

@ -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)