From 817d8036fbf028d2c5c386720fbf9946d03fe891 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 19 Jan 2022 18:57:07 -0800 Subject: [PATCH] (fix)capture: return id in setup-target-location (#2052) Fixes #2051. --- org-roam-capture.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index 05c3770..fb2e1f6 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -577,7 +577,9 @@ Return the ID of the location." (if-let ((id (org-entry-get p "ID"))) (setf (org-roam-node-id org-roam-capture--node) id) (org-entry-put p "ID" (org-roam-node-id org-roam-capture--node))) - (run-hooks 'org-roam-capture-new-node-hook)))) + (prog1 + (org-id-get) + (run-hooks 'org-roam-capture-new-node-hook))))) (defun org-roam-capture--get-target () "Get the current capture :target for the capture template in use."