fix org-roam-capture--goto-location (#1514)

Fix regression introduced in 7ed51329.

The function should return an ID.
This commit is contained in:
Mykhailo Shevchuk
2021-05-08 09:14:00 +02:00
committed by GitHub
parent 377d39bfff
commit 32c0f3d2ec

View File

@@ -570,8 +570,9 @@ Return the ID of the location."
(org-end-of-subtree t t))))
(save-excursion
(goto-char p)
(prog1
(org-id-get-create)
(run-hooks 'org-roam-capture-new-node-hook))))
(run-hooks 'org-roam-capture-new-node-hook)))))
(defun org-roam-capture-find-or-create-olp (olp)
"Return a marker pointing to the entry at OLP in the current buffer.