(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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.