diff --git a/org-roam-db.el b/org-roam-db.el index 1ea7241..930a29a 100644 --- a/org-roam-db.el +++ b/org-roam-db.el @@ -381,12 +381,13 @@ If UPDATE-P is non-nil, first remove the file in the database." (defun org-roam-db-map-nodes (fns) "Run FNS over all nodes in the current buffer." - (org-map-region - (lambda () - (when (org-roam-db-node-p) - (dolist (fn fns) - (funcall fn)))) - (point-min) (point-max))) + (org-with-wide-buffer + (org-map-region + (lambda () + (when (org-roam-db-node-p) + (dolist (fn fns) + (funcall fn)))) + (point-min) (point-max)))) (defun org-roam-db-map-links (fns) "Run FNS over all links in the current buffer."