(fix): remove save-buffer on id creation (#1018)

This can trigger a lot of hooks, which may not be desirable.
This commit is contained in:
Jethro Kuan
2020-08-09 21:03:27 +08:00
committed by GitHub
parent 4fa966d366
commit 5d02e6407b

View File

@ -1225,9 +1225,7 @@ If there is no corresponding headline, return nil."
(goto-char marker) (goto-char marker)
(cons marker (cons marker
(when org-roam-auto-replace-fuzzy-links (when org-roam-auto-replace-fuzzy-links
(let ((id (org-id-get-create))) (org-id-get-create))))))))
(save-buffer)
id))))))))
(defun org-roam--get-fuzzy-link-location (link) (defun org-roam--get-fuzzy-link-location (link)
"Return the location of Org-roam fuzzy LINK. "Return the location of Org-roam fuzzy LINK.