(fix)capture: correctly update org-id-locations-file after capture (#2086)

This commit is contained in:
Noboru Ota
2022-02-08 18:12:42 +01:00
committed by GitHub
parent 0432b00485
commit b163c900b8
2 changed files with 2 additions and 0 deletions

View File

@ -714,6 +714,7 @@ the current value of `point'."
(when (find-buffer-visiting new-file)
(kill-buffer (find-buffer-visiting new-file)))
(delete-file new-file))
(org-id-add-location (org-roam-capture--get :id) (org-roam-capture--get :new-file))
(when-let* ((finalize (org-roam-capture--get :finalize))
(org-roam-finalize-fn (intern (concat "org-roam-capture--finalize-"
(symbol-name finalize)))))