From 5d02e6407bcd4d94df656c4b7b931f669729a751 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sun, 9 Aug 2020 21:03:27 +0800 Subject: [PATCH] (fix): remove save-buffer on id creation (#1018) This can trigger a lot of hooks, which may not be desirable. --- org-roam.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org-roam.el b/org-roam.el index 5fbc283..a09e1b6 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1225,9 +1225,7 @@ If there is no corresponding headline, return nil." (goto-char marker) (cons marker (when org-roam-auto-replace-fuzzy-links - (let ((id (org-id-get-create))) - (save-buffer) - id)))))))) + (org-id-get-create)))))))) (defun org-roam--get-fuzzy-link-location (link) "Return the location of Org-roam fuzzy LINK.