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:
parent
cf86962d6f
commit
77f2dfc0eb
|
@ -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…
Reference in New Issue