Fix auto save buffer in org-roam-doctor (#1493)

This commit is contained in:
Troy Hinckley
2021-05-02 13:36:09 -06:00
committed by GitHub
parent 15c1a46e41
commit d2e933cc3e

View File

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