From 32c0f3d2ecae329f0f32564bdbe53e6ebda61ba4 Mon Sep 17 00:00:00 2001 From: Mykhailo Shevchuk Date: Sat, 8 May 2021 09:14:00 +0200 Subject: [PATCH] fix org-roam-capture--goto-location (#1514) Fix regression introduced in 7ed51329. The function should return an ID. --- org-roam-capture.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index df0bfab..d05a222 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -570,8 +570,9 @@ Return the ID of the location." (org-end-of-subtree t t)))) (save-excursion (goto-char p) - (org-id-get-create) - (run-hooks 'org-roam-capture-new-node-hook)))) + (prog1 + (org-id-get-create) + (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.