From d2e933cc3e4f5ee843bfca9525a30eb395c60990 Mon Sep 17 00:00:00 2001 From: Troy Hinckley Date: Sun, 2 May 2021 13:36:09 -0600 Subject: [PATCH] Fix auto save buffer in org-roam-doctor (#1493) --- org-roam-doctor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."))