diff --git a/org-roam-doctor.el b/org-roam-doctor.el index 0f3c275..66c334b 100644 --- a/org-roam-doctor.el +++ b/org-roam-doctor.el @@ -308,7 +308,8 @@ If CHECKALL, run the check for all Org-roam files." (let ((buf (find-file-noselect f))) (org-roam-doctor--check buf checkers) (unless (memq buf existing-buffers) - (save-buffer buf) + (with-current-buffer buf + (save-buffer)) (kill-buffer buf)))))) (org-roam-message "Linting completed."))